JPedal Support

The Ultimate Java PDF Library SDK

Download Trial Purchase

This topic contains 4 replies, has 3 voices, and was last updated by  Pooja Bhargavi 1 month, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3595Reply

    Pooja Bhargavi

    Hi,

    We have been using OpenViewerFX for the past one year in our project, version 6.2. OpenViewerFX works for smaller pdfs (sizes in kBs). When opening larger pdfs whose sizes are in MBs, it takes time to load the pdf and also the scrolling is very slow. Even after increasing the memory of the application also we still notice that the scroll does not happen seamlessly. After trying to increase the memory of the application to 2GB also, the scroll was very slow.

    Opening default file in OpenViewerFX code:
    openViewer = new OpenViewerFX(scroll_pane, “null”);
    openViewer.setupViewer();
    openViewer.openDefaultFile(pdfFilePath);

    Can you please suggest us how this issue can be resolved? Does OpenViewerFX support large pdf files at all?
    Also are there new releases on the open source version of OpenViewerFX or is it stopped?
    Are there some documentations for OpenViewerFX which we could use to solve our problem?

    Thank you

    #3597Reply

    Bethan
    Keymaster

    Hi Pooja,
    We are no longer updating the separate OpenViewerFX-src. Instead we are focusing on our NetBeans plugin which uses OpenViewerFX to display PDF files.

    #3598Reply

    Pooja Bhargavi

    Hi Bethan,

    Our project is not NetBeans project. Can this NetBeans plugin be used in eclipse project? If so would it support larger pdfs and is this an open source?

    Or is there a way to support large pdfs in OpenViewerFX itself?

    Could you please suggest?

    Thank you

    #3599Reply

    Mark Stephens
    Keymaster

    NetBeans plugin project is aimed at NetBeans platform development.

    Unless you are streaming PDF across an http connection (in which case it needs to download the whole PDF before it can access), size should not be an issue. The PDF file format is designed to scale with file size. We have lots of useful articles on how the PDF file format works at https://blog.idrsolutions.com/2013/01/understanding-the-pdf-file-format-overview/

    If the pages in OpenViewerFX are slow to decode it may be due to the content. It uses imageIO (which is slow for the image changes you need in Java and the main reason we wrote our own Image library – JDeli). If it is slow to render, it may be down to the number of elements on the page – this is a bottleneck in JavaFX itself. I would stick to single page display.

    #3600Reply

    Pooja Bhargavi

    Okay Thank you

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: OpenViewerFX slows down while opening large pdfs
Your information: