I once thought of doing an embed/unembed/change font utility and it's
not that hard to do for single byte fonts. For fonts like TT with
Identity-H it requires to go to the content stream and change the
string. Of course, this is always assuming that a valid mapping to
Unicode can be found, and that's not always true.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Leonard Rosenthol
> Sent: Friday, April 15, 2005 5:38 PM
> To: Philip Kaplan; [email protected]
> Subject: Re: [iText-questions] Embedding fonts in an EXISTING document
> 
> At 12:31 PM 4/15/2005, Philip Kaplan wrote:
> >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
> 


-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to