Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 072EA4D35 for ; Mon, 11 Jul 2011 10:12:39 +0000 (UTC) Received: (qmail 26209 invoked by uid 500); 11 Jul 2011 10:12:36 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 26091 invoked by uid 500); 11 Jul 2011 10:12:26 -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 26074 invoked by uid 99); 11 Jul 2011 10:12:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 10:12:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2011 10:12:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F2B7B4509C for ; Mon, 11 Jul 2011 10:11:59 +0000 (UTC) Date: Mon, 11 Jul 2011 10:11:59 +0000 (UTC) From: "Gilad Denneboom (JIRA)" To: dev@pdfbox.apache.org Message-ID: <391697945.2550.1310379119990.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1753786472.2537.1310379000101.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (PDFBOX-1060) convertToImage includes "ghost" annotation outlines MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PDFBOX-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilad Denneboom updated PDFBOX-1060: ------------------------------------ Description: When using PDPage.convertToImage() to export PNG files of pages with annotations on them, "ghost" outlines of the annotations sometimes appear on the generated image. The outlines do not correspond to the location of the annotations. See the attached files. Code used: String inputFilePath = "C:/Gilad/input/3 Pages from batch_sequences.pdf"; PDDocument doc = PDDocument.load(inputFilePath); for (int p=0; p convertToImage includes "ghost" annotation outlines > --------------------------------------------------- > > Key: PDFBOX-1060 > URL: https://issues.apache.org/jira/browse/PDFBOX-1060 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 1.6.0 > Environment: Windows 7, Eclipse Helios SR2 > Reporter: Gilad Denneboom > Labels: convertToImage > Attachments: 3 Pages from batch_sequences.pdf, PAGE0.png, PAGE1.png, PAGE2.png > > > When using PDPage.convertToImage() to export PNG files of pages with annotations on them, "ghost" outlines of the annotations sometimes appear on the generated image. The outlines do not correspond to the location of the annotations. See the attached files. > Code used: > String inputFilePath = "C:/Gilad/input/3 Pages from batch_sequences.pdf"; > > PDDocument doc = PDDocument.load(inputFilePath); > for (int p=0; p PDPage page = (PDPage) doc.getDocumentCatalog().getAllPages().get(p); > BufferedImage bImg = page.convertToImage(); > String imagePath = FilenameUtils.getFullPath(inputFilePath) + "PAGE"+ Integer.toString(p) + ".png"; > File yourImageFile = new File(imagePath); > ImageIO.write(bImg,"png",yourImageFile); > } -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira