Op 31/12/2010 8:59, zhouxiang schreef: > hi,guys.i'm new to itext. Please SUBSCRIBE to the mailing list or this is the only answer you'll receive (I've put you in Cc: of this mail). If you don't subscribe, your mail risks to get lost in the SPAM that is sent to the list (and that is kept on hold), and you're also giving people boring administrative work they prefer to avoid. > i encounter a prob. > i have a pdf using this font: > 楷体_GB2312 > TYPE:TrueType(CID) > Encoding:GBK-EUC-H > ActualFont:楷体_GB2312 > ActualFont Type:TrueType > > it isn't embedded. > How can i replace it with another font which won't embedded either? That's very difficult: if the metrics of the original font are different from the metrics of the replacing font are different, the end result will be very ugly. The best solution is to take the source that was used to create the original PDF and to create the new PDF from scratch. > this is the font i want to replace with: > STXHei > Type:TrueType(CID) > Encoding:UniGB-UCS2-H > ActualFont:STXHei > ActualFont Type:TrueType > > any advice will be appreciated.thanks However, there is an example in the book "iText in Action - Second Edition" that explains how to embed a font "after the fact." See section 16.1.4, titled "Replacing a font" on p531-533.
You need to have access to (and permission to use) a font program for this to work, and again: don't expect the result to look nice if the fonts have different metrics. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ 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
