RenderPageToGdPictureImage very slow...

Discussions about PDF management.
Post Reply
mdelbene
Posts: 31
Joined: Wed May 11, 2011 10:03 am

RenderPageToGdPictureImage very slow...

Post by mdelbene » Mon Mar 04, 2013 12:00 pm

Hi all,
I'm using GdPicture rel. 8.5 and I have some trouble loading a PDF file.
Its size is only 259KB and my application spends about 2 minutes to render this file!

I tried to do the same using one of your sample (Csharp-OCR.csproj) and these are the times:
--- Start GdViewer1.DisplayFromFile: 04/03/2013 10:37:05
--- End GdViewer1.DisplayFromFile: 04/03/2013 10:37:55
--- Start gdPDF.RenderPageToGdPictureImage: 04/03/2013 10:37:55
--- End gdPDF.RenderPageToGdPictureImage: 04/03/2013 10:38:56

For other biggest files the same operation is very fast.
During RenderPageToGdPictureImage operation the process in Windows TaskManager occupies a large slot in memory.
I converted the same file with PDFCreator, and load operation is immediate (less than 1 second).
I upload the two files in a zip.

Please can you check these files and tell me where is the problem?

Thanks in advance.
Michela
Attachments
RenderTest.zip
Two file samples
(223.21 KiB) Downloaded 282 times

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: RenderPageToGdPictureImage very slow...

Post by Loïc » Mon Mar 04, 2013 7:32 pm

Hello,

This performance leak has been fixed in the 9.4.

With best regards,

Loïc

mdelbene
Posts: 31
Joined: Wed May 11, 2011 10:03 am

Re: RenderPageToGdPictureImage very slow...

Post by mdelbene » Tue Mar 05, 2013 10:23 am

Thanks for the answer.
Can you can explain me what are the differences between the two files that generate this problem?
So I can do some preventive checks to the file I'm processing.

Thank you again.
Michela

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: RenderPageToGdPictureImage very slow...

Post by Loïc » Tue Mar 12, 2013 3:13 pm

Hello Michela,

Basically, one fine is embedding too much font information that is needed. In PDF font can contain a max number of 256 characters. In your file the font file includes 65535 chars.

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest