I think that the usecase of replacing & merging fonts is pretty usual.
Anyone who merges a lot of small pdfs will need this. Therefore it would help also others if this feature would be included in the main iText distribution. Paulo, What are the criterias of the code so that it could be added to iText? You said that the scope is too narrow. Aren't most iText users handling pdfs with truetype fonts (or document fonts) using single byte encoding (winansi)? Is it possible that the first version only supports ttf + winansi encoding? Anyways, Could we do some kind of requirements analysis for the full scope? required features: - support for all font types: T1, T3, TTF, TTF unicode, CJK, document fonts - support for all font encodings (winansi, macroman, macexpert, unicode, identity) - support for merging differences arrays - this means that the pagestreams have to be re-written so that one merged differences array can be used - is there code available in iText for parsing and modifying the pagestream? - support rewriting string in text-showing PDF operators (' , ", Tf) - rewriting acroform fields? - restriction: the original font file has to be available in order to do font merging (no need to merge font glyphs in that case). Lari Paulo Soares wrote: > > Classes in the same iText package is not a patch to iText. Licensewise > as long as you don't change iText you don't have to tell anybody what > you are doing even if your classes are in the com.lowagie package. About > your changes, as I said, the scope is too narrow (supporting only > truetype, no difference array, etc.). Without going into Unicode fonts, > it's possible to extend you code without too much work to support a lot > more single byte font features. > > Paulo > -- View this message in context: http://www.nabble.com/How-to-remove-embedded-fonts-from-a-pdf-document-tp14033717p16000144.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/