Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 322E310D57 for ; Fri, 13 Jun 2014 08:50:34 +0000 (UTC) Received: (qmail 9191 invoked by uid 500); 13 Jun 2014 08:50:34 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 9182 invoked by uid 500); 13 Jun 2014 08:50:33 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 9172 invoked by uid 99); 13 Jun 2014 08:50:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 08:50:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.82.172] (HELO mail-we0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 08:50:31 +0000 Received: by mail-we0-f172.google.com with SMTP id u57so2483397wes.17 for ; Fri, 13 Jun 2014 01:50:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=x+FgmF7IN7qMulK9CvvgCQEo2NccreGxrTX8VErvY/s=; b=ito8KGfCvjavhoWA+6QHdJjU/SVg/aX871EfIHEIsOMN539fyiHTNQaVGQx0CcGahy r2IEM00AHWrH32neQMKm2CzzAMyU6mDVnGLFZtVap5la2QBvx6Xl0P2Jyh/P/n0SN2/e r0v7PPn9T0b5wFz6gyn8BnMbnrVucLYqntUBjkUmhK1uwSrSodw2b/CUnuJW3QSVwDCQ YTWC4KLzSgGmTHGbNAGuy0Q5vNtpJYtLlhEi8VeV0AB51MBF3FMU1XNkB93ScOYRf8Pe sN2fx2EK24WKY19GR/cSeM9oBBt7WeniKW8yWsihx+sRbnNcVEMy3zGsxyxz8O9bK4jn Rk+w== X-Gm-Message-State: ALoCoQlnpU2fbl7HXZPEY13PoFyia7UPS5KpR0UIF9289UoKPGxmbxi0TGex3D2zmaPWn5WGces/ MIME-Version: 1.0 X-Received: by 10.194.243.104 with SMTP id wx8mr2207524wjc.32.1402649407260; Fri, 13 Jun 2014 01:50:07 -0700 (PDT) Received: by 10.217.99.130 with HTTP; Fri, 13 Jun 2014 01:50:07 -0700 (PDT) Date: Fri, 13 Jun 2014 09:50:07 +0100 Message-ID: Subject: PDFImageWriter From: Matt Pryor To: users@pdfbox.apache.org Content-Type: multipart/mixed; boundary=089e014940f0aa39c404fbb3c34e X-Virus-Checked: Checked by ClamAV on apache.org --089e014940f0aa39c404fbb3c34e Content-Type: multipart/alternative; boundary=089e014940f0aa39be04fbb3c34c --089e014940f0aa39be04fbb3c34c Content-Type: text/plain; charset=UTF-8 Hello, Do you know if there is an issue with PDFImageWriter for searchable PDFs? I have attached an example PDF, and the following code: PDFImageWriter imageWriter = new PDFImageWriter(); PDDocument document = PDDocument.load(new File("c:\\temp\\fax-2014-06-11-16_04_47.pdf")); int numPages = document.getNumberOfPages(); imageWriter.writeImage(document, "jpg", null, 1, numPages, "c:\\temp\\pdftoimage", BufferedImage.TYPE_BYTE_BINARY, Toolkit.getDefaultToolkit().getScreenResolution()); document.close(); Which appears to render a blank image. If I use a non-searchable PDF it renders correctly. Many thanks in advance for any suggestions. -- -- Matt Pryor The International Presence Group of Companies Registered Office:10 Coppergate Mews, 109 - 111 Brighton Road, Surbiton, Surrey KT6 5NE TEL UK: +44 (0)845 130 6458, FAX: +44 (0)845 130 6459 TEL US: +1 321 726 9941, FAX +1 321 726 6210 EMAIL: pryor@presencebpm.com URL: www.International-presence.com International Presence Limited: Registered in England and Wales No.3709669 This E-mail and any attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient please destroy this message and kindly notify the sender by reply E-Mail. Opinions, conclusions and other information in this message that do not relate to the official business of International Presence Limited do not necessarily reflect the views of the company. International Presence Ltd Unit 10, Coppergate Mews Surbiton Surrey KT6 5NE --089e014940f0aa39be04fbb3c34c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Do you know if there is an issue= with PDFImageWriter for searchable PDFs? I have attached an example PDF, a= nd the following code:

PDFImageWriter imageWriter =3D new PDFImageWr= iter();
PDDocument documen= t =3D PDDocument.load(new File("c:\\temp\\fax-2014-06-11-16_04_47.pdf&= quot;));
int = numPages =3D document.getNumberOfPages();
imageWriter.writeI= mage(document, "jpg", null,
1, numPages, "c:\\temp\\pdftoimage", B= ufferedImage.TYPE_BYTE_BINARY, Toolkit.getDefaultToolkit().getScreenResolut= ion());
document.close();<= /div>

Which appears to render a blank image.
<= br>
If I use a non-searchable PDF it renders correctly.

Many thanks in advance for any suggestions.

--
--
Matt Pryor

The International Presence Group of Comp= anies
Registered Office:10 Coppergate Mews, 109 - 111 Brighton Road, Sur= biton, Surrey KT6 5NE

TEL UK: +44 (0)845 130 6458,=C2=A0 FAX: +44 (0)845 130 6459
TEL US: = +1 321 726 9941, FAX +1 321 726 6210
EMAIL: pryor@presencebpm.com

URL: www.International-presence.com

International Presence Limited: Registered in England and Wales No.3709= 669

This E-mail and any attachments transmitted with it are confiden= tial and intended solely for the use of the individual or entity to whom th= ey are addressed. If you are not the intended recipient please destroy this= message and kindly notify the sender by reply E-Mail. Opinions, conclusion= s and other information in this message that do not relate to the official = business of International Presence Limited do not necessarily reflect the v= iews of the company.

International Presence Ltd
Unit 10, Coppergate Mews
Surbiton
S= urrey KT6 5NE
--089e014940f0aa39be04fbb3c34c-- --089e014940f0aa39c404fbb3c34e--