Op 22/12/2010 11:26, zhouxiang schreef: > hi guys. our group just want remove the embedded font from pdf,or make > that font not embedded,or replace it with another font.because the > embedded font take up too much space i've searched a lot in this > forum,but found nothing helpfull. is it possible to read that pdf with > embedded font by using itext, and then create a new pdf have the same > content as older pdf,but the font is not embedded any more? Please read section 16.1.4 of the Second Edition of "iText in Action." It is titled "Replacing a font," and it explains how to replace a non-embedded font with an embedded font (which is more common than what you want to do). It should be fairly easy to adapt that example so that it does the opposite. Use ISO-32000-1 to find out which keys are needed.
Note that what you're trying to do can seriously screw up your document. The metrics of the original font can be completely different from the metrics of the new font, and that will make your document look very ugly (maybe even illegible). The only way to avoid this is to rewrite all the content streams in the document from scratch. ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
