You are missing the cb.endText(). Best Regards, Paulo Soares
--- Jochen Dürr <[EMAIL PROTECTED]> wrote: > Hi there, > i have created a pdf-File with the > itext-0.96-package. I have used the > following code: > > Document document = new > Document(PageSize.A4,0,0,0,0);; > PdfWriter writer = PdfWriter.getInstance(document, > new > FileOutputStream("test.pdf")); > PdfContentByte cb = writer.getDirectContent(); > cb.beginText(); > BaseFont adressfont = > BaseFont.createFont(BaseFont.HELVETICA, > BaseFont.CP1252, BaseFont.NOT_EMBEDDED); > cb.setFontAndSize(adressfont, 12); > cb.setTextMatrix(40,200); > cb.showText("test"); > document.close(); > > I can show the PDF-File with Acrobat Reader 4 on > Linux but not with Acrobat > Reader 5 on Windows2000. On Windows i see only a > blank white paper. Whats the > Problem?? > > regards > Jochen > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net > +++ > Bitte lächeln! Fotogalerie online mit GMX ohne > eigene Homepage! > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The debugger > for complex code. Debugging C/C++ programs can leave > you feeling lost and > disoriented. TotalView can help you find your way. > Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions