Hey, First of all, great library! I have one problem tho, and don't really know how to get rid of it: when I add text using a bold font to a *landscape* page, the text is invisible in older versions of acrobat (5.x certainly has this problem). Any suggestions on how to fix it? I am using CP1257 (lithuanian) charset, but it doesn't seem to be dependent on that. The same thing works flawlessly with acrobat 7.x. The location of the arial font is hardcoded in this testcase.
Attached is a simple test case to illustrate the problem I'm seeing: // --- start cutting here --- import com.lowagie.text.Document; import com.lowagie.text.PageSize; import com.lowagie.text.Paragraph; import com.lowagie.text.Font; import com.lowagie.text.pdf.PdfWriter; import com.lowagie.text.pdf.BaseFont; import java.io.FileOutputStream; public class PdfTest { public static void main(String arg[]) throws Exception { BaseFont f = BaseFont.createFont("c:/windows/fonts/arial.ttf", BaseFont.CP1257, BaseFont.EMBEDDED); Font font = new Font(f, 8); Font boldFont = new Font(f, 8, Font.BOLD); Document document = new Document(PageSize.A4.rotate()); PdfWriter.getInstance(document, new FileOutputStream("c:/work/rcmfa/1landscapeportraitPDF.pdf")); document.open(); document.add(new Paragraph("Simple landscape text. ąčęėįšųū90žĄČĘĖĮŠŲŪŽ", font)); document.add(new Paragraph("Bold landscape text. ąčęėįšųū90žĄČĘĖĮŠŲŪŽ", boldFont)); document.setPageSize(PageSize.A4); document.newPage(); document.add(new Paragraph("Simple portrait text, ąčęėįšųū90žĄČĘĖĮŠŲŪŽ", font)); document.add(new Paragraph("Bold portrait text, ąčęėįšųū90žĄČĘĖĮŠŲŪŽ", boldFont)); document.close(); } } // --- end cutting here --- -- View this message in context: http://www.nabble.com/Bold-text-invisible-in-older-Acrobat-%285.x%29-in-landscape-mode-tp17147902p17147902.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