The image type is .jpg. Each image is about 25-30 KB. A document can contain apprx. 168 – 288 images.

 


From: Rochana Attale
Sent: Wednesday, January 26, 2005 6:00 PM
To: '[email protected]'
Subject: Why are the results of" Image.getInstance(URL uRL)" and "Image.getInstance(Image image, Color color)" different ?

 

Hi,

 

I need to generate PDFs with 30-50 pages of images per document. Since these PDFs are generated dynamically for a web application, I am concerned about the PDF generation time and the resulting file size.

 

First I tried the constructor getInstance(Image image, Color color) and Generated a PDF of 33 pages. The results were as follows:

 

            PDF generation time: 9914 milliseconds

            File size: 372 KB

 

Then I tried Image.getInstance(URL uRL) and generated the same PDF.

 

            PDF generation time: 3616 milliseconds

            File size: 4.47 MB

 

What is the cause of the difference in time and file size in these two cases?

 

Rochana.

 

Reply via email to