Your results are impossible. In the first case the size should be much bigger.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Rochana Attale > Sent: Friday, January 28, 2005 7:06 AM > To: [EMAIL PROTECTED] > Subject: [iText-questions] Why are the results of" > Image.getInstance(URL uRL)" and "Image.getInstance(Image > image, Color color)" different ? > > 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. > > > > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
