Paulo Soares <psoares <at> consiste.pt> writes:

> 
> It can be done with BaseFont.getDocumentFonts(). This will get you the
> font name and the reference to the font dictionary. From there on refer
> to the PDF reference to add the actual font stream to the font
> descriptor.
> 
> Paulo 




Thanks for your (Bruno and Paulo) answers!

So, I start to write the java code (follow the BaseFont.getDocumentFonts step):

ArrayList fonts = BaseFont.getDocumentFont(pdfReader);
for (int i=0; i<fonts.size(); i++) {
    Object[] font = (Object[])fonts.get(i);
    String fontName = (String)font[0];
    PRIndirectReference fontRef = (PRIndirectReference)font[1];
    // ???
}

But how can I "overwrite" the font (replace the used (old) font to an another 
(new))?
I can't find that method in PRIndirectReference, or else.
So, how can I do this?

Thanks and best regards
Tibi


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to