dorairaj wrote: > Hi > > i have generated two pdf pages > > 1) pdf_acrobat.pdf created by acrobat reader
Acrobat READER doesn't create PDF documents! The file was created by Acrobat Distiller 9.0.0. > from selecting abode pdf from > the java print dialog. http://old.nabble.com/file/p28140188/pdf_acrobat.pdf > pdf_acrobat.pdf http://old.nabble.com/file/p28140188/pdf_itext.pdf > pdf_itext.pdf > > could you please review the both pdf? Both PDFs look OK. The main difference is the use of fonts. With distiller, the fonts ArialNarrow and TimesNewRoman are NOT embedded. There are two embedded subsets of the font ArialMT: one using WinAnsi, another one using Identity-H. Furthermore there's a subset of MicrosoftJhengHei. With iText, four subsets of fonts are embedded. There are no unembedded fonts, which is safer. You can count on a PDF viewer to have a replacement font for Times Roman (one of the standard Type 1 fonts), but IMO it's not safe NOT to embed ArialNarrow. The MicrosoftJhengHei font is treated the same way as in Distiller, but there's only one entry for ArialMT: Identity-H is used; WinAnsi isn't. Both files show up correctly, but if I had to choose, I'd prefer the iText version, as it's safer to have all the glyphs embedded in the document, and as Identity-H is more and more recommended. If you don't agree, then it's up to you to adapt the FontMapper so that it uses non-embedded versions of ArialNarrow and Times Roman (instead of Times New Roman), and to adapt PdfGraphics2D so that it uses WinAnsi or another encoding with 256 code points instead of the CID encoding whenever possible. However, you won't get any help from me if that is your choice, as it's my honest opinion that this would be a bad idea. Please note that I made an exception, looking at your two PDF files as there is no real problem with the iText generated document. Don't let this be a precedent. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
