Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Viewing large PDF files is consuming huge memory
Started by Valentin Strazdin at 03-05-2008 12:02. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  03-05-2008, 12:02
Valentin Strazdin is not online. Last active: 3/6/2008 10:21:19 AM Valentin Strazdin

Not Ranked
Joined on 03-05-2008
Posts 1
Viewing large PDF files is consuming huge memory
Reply Quote
I am using LEADTools v 15.0 to display PDF files in RasterImageViewer.
I have PDF file that contains about 100 pages. Opening this file takes about 3 minutes. After that the process is consuming from 250MB to 500MB of memory (I see it in Task Manager) depending on resolution.
If I open the same file in Acrobat Reader it takes 3 seconds and the process is consuming only 23MB of memory.

Is there any way for optimizing memory consumption?
Is it inevitable: better quality (resolution) requires more memory?
   Report 
  03-06-2008, 9:09
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 406
Re: Viewing large PDF files is consuming huge memory
Reply Quote

Our RasterImageViewer takes more time because it loads every page, converting it to raster (bitmap) image, this process takes time and it is different than what Acrobat Reader is doing.

Acrobat Reader keeps the document in its original format, and I don't know whether it loads all pages into memory at once or not.

If you want to reduce memory needed, and also speed the loading process, you can decrease the DPI value but this will reduce the quality of the image.

Another approach which might be better, depending on your application, is not to load all pages to memory at once. Instead, load one or more pages as needed, display or process that page or pages, and when other pages are needed you can load them alone without the need to begin from page 1. This means you can do 100 separate load operations instead of one long call.


Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » PDF » Re: Viewing large PDF files is consuming huge memory

Powered by Community Server, by Telligent Systems