Suspeito que uma das páginas tem transparência e a outra não. Paulo
----- Original Message ----- From: "NCA" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, January 02, 2007 11:31 AM Subject: [iText-questions] Font and color render problem Hello, I have a problem when I create a Pdf file, some pages render my text different than it should be (on Acrobat Reader, but when printed, it's OK)... I use an embeded font ( Frutiger45-Light.ttf, size 10, #0C2577 ) for all my text but it looks different on some pages ( text on the top of the image should look like the text on the bottom... ) Here is the code I use to write the text ------------------------------------------------------------------------- p_pdfContentByte.beginText(); p_pdfContentByte.setColorFill( font.color()); p_pdfContentByte.setTextRenderingMode( PdfContentByte.TEXT_RENDER_MODE_FILL); p_pdfContentByte.setFontAndSize( font.getBaseFont(), font.size()); p_pdfContentByte.showTextAligned( alignment, text, x, y, 0); p_pdfContentByte.endText(); p_pdfContentByte.resetRGBColorStroke(); p_pdfContentByte.resetRGBColorFill(); ---------------------------------------------------------------------------- Thanks for your answers. -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
