Return-Path: Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: (qmail 50746 invoked from network); 6 Oct 2010 13:45:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 13:45:53 -0000 Received: (qmail 91619 invoked by uid 500); 6 Oct 2010 13:45:53 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 91603 invoked by uid 500); 6 Oct 2010 13:45:52 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 91595 invoked by uid 99); 6 Oct 2010 13:45:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 13:45:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 13:45:51 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o96DjVPx006434 for ; Wed, 6 Oct 2010 13:45:31 GMT Message-ID: <26779220.6611286372731447.JavaMail.jira@thor> Date: Wed, 6 Oct 2010 09:45:31 -0400 (EDT) From: "MH (JIRA)" To: dev@pdfbox.apache.org Subject: [jira] Created: (PDFBOX-854) PDPageContentStream.drawString() doesn't work with all PDFs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 PDPageContentStream.drawString() doesn't work with all PDFs ----------------------------------------------------------- Key: PDFBOX-854 URL: https://issues.apache.org/jira/browse/PDFBOX-854 Project: PDFBox Issue Type: Bug Components: PDModel Affects Versions: 1.3.0 Environment: JDK 1.6.0_21 Reporter: MH I add custom text to misc exsiting PDF files. Now I wondered why my text doesn't appear for a specific PDF. It is not encrypted, has the same page size and adding Text with iText 2.1.7 works as expected. My code to add text is: ---------------------------------- final PDPage page = (PDPage) allPages.get(i); final PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, false); contentStream.beginText(); contentStream.setFont(font, sizeOfFont); contentStream.moveTextPositionByAmount(xf, yf); contentStream.drawString(text); contentStream.endText(); contentStream.close(); --------------------------------- I tried to find differences between this PDF and other PDFs. What I noticed: the PDF where I can't see the text has a PDF-Version "1.3" and was created by "AFPL Ghostscript 8.54". Is there some known issue with PDFBox and such "older" PDF formats? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.