Thanks Leonard. I am still surprised, however, that I could not walk a document page by page and interrogate the page to determine which fonts are in use...
Well, it's a bit trickier than that - since you not only have to do it page by page - but potentially recurse into the myriad of other content types that can reference fonts (eg. Form XObjects, Type 3 Fonts, Annotations, Patterns).
But sure, that's all those applications are you doing - you could do that with iText as well.
and then embed them (sort of a hybrid of the merge document example).
I don't believe (and Paolo will correct me) that PdfStamper will allow that type of modification to the PDF object tree.
You'll also have to write your own font embedding, since the current embedding code fits into the generator pretty tightly. It might be possible to extracate it if you really tried.
And finally, you have to worry about the myriad of encodings and making sure that you are matching them correctly...
Leonard
--------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax)
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
