Hey,

In fact, I tried a few combinations of bold/non bold fonts, both embedded
and not. I didn't read the book tho - this report generation was supposed to
be just a small part of the project we did, so it seemed a little out of
scope. Pardon my ignorance. Anyway, I tried embedding a second font, it
still didn't work, but then I did one little modification:

...
BaseFont fb = BaseFont.createFont("c:/windows/fonts/arialbd.ttf",
        BaseFont.CP1257, BaseFont.EMBEDDED);
Font boldFont = new Font(bf, 8, Font.BOLD);

I changed the last line to:

Font boldFont = new Font(bf, 8, Font.NORMAL);

and voila, acrobat5 is happy.


Thanks a lot,
Andrius


1T3XT info wrote:
> 
> Did you look at the Fonts used in your PDF? There's only one font
> present. This should ring a bell; you'd know that you were using
> a technique for creating a bold font that works, but is certainly
> not recommended. Perhaps you didn't read the book yet.
> 

-- 
View this message in context: 
http://www.nabble.com/Bold-text-invisible-in-older-Acrobat-%285.x%29-in-landscape-mode-tp17147902p17160600.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to