I was profiling my application that creates a pdf from multiple files Yes, but regarding jpeg or other pdf, tiff decoding requires two or three times more memory for same size of source file and much more cpu.(pdf, jpeg, tiff) using iText2.0.1 and I saw that lots of memory and cpu are spent in : com.lowagie.text.pdf.codec.TIFFLZWDecoder.initializeStringTable com.lowagie.text.pdf.codec.TIFFLZWDecoder.addStringToTable com.lowagie.text.pdf.codec.TiffImage.getTiffImageColor But anyway I have no knowledge in Tiff specifications ; hence it mays be just the Tiff format which is a mess and not targeted for performance in reading. > Just wondering if there are some ways to improve this Tiff codec ?It was not the meaning. Just asking why it takes so much more memory and cpu to decode a tiff image, compare to a jpeg image (for same size of course) and if someone knows already a way to improve that. (like first convert the image with another library or use a specific iText class that just copy the tiff inside the pdf without decoding it). Notes: my tests are made on tiff images of 2Mo, color 24 bits, RGB, compression LZW, 1010x1294. But yes, I know it's an open-source project and I'm not asking the author to work on that right now; don't get upset please ;o) Pierre CONFIDENTIALITÉ Les informations contenues dans ce document sont de nature confidentielle et à l'usage exclusif des destinataires prévus. Si vous l'avez reçu par erreur, son utilisation sous quelque forme qu'elle soit est strictement interdite. Nous vous remercions dans ce cas de détruire le message et de prendre contact avec son expéditeur. L'intégrité des messages n'étant pas assurée sur Internet, Experian ne saurait être tenu responsable si ce message s'avérait modifié ou falsifié. CONFIDENTIAL The information contained in this message and any attachments hereto are confidential and intended solely for the addressee(s) intended. If you are not the intended addressee of this message, you are hereby notified that you have received this document in error. Any review, dissemination, distribution, or copying of this message is prohibited. Please delete it and inform the sender immediately. Thank you for your help. Messages are susceptible to alteration. Experian shall not be liable for the message if altered, changed or falsified. |
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
