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 7E2D710CDF for ; Mon, 1 Dec 2014 19:14:19 +0000 (UTC) Received: (qmail 49870 invoked by uid 500); 1 Dec 2014 19:14:19 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 49848 invoked by uid 500); 1 Dec 2014 19:14:19 -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 49833 invoked by uid 99); 1 Dec 2014 19:14:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 19:14:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_ABUSE_REDIR,URIBL_DBL_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wjherrmann@gmail.com designates 209.85.213.195 as permitted sender) Received: from [209.85.213.195] (HELO mail-ig0-f195.google.com) (209.85.213.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 19:14:13 +0000 Received: by mail-ig0-f195.google.com with SMTP id l13so2074225iga.6 for ; Mon, 01 Dec 2014 11:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=WGlDFyyGOBYEU0zbhz0J7cRAxP8cqyW3q0KPZvCHZrU=; b=pf1Q8fDzImjdaRp4btsI+eL0kRqq+IrIx5i12CoivQCzBcelI//pLaeL/WKnqLMJN/ hm38DigZzYdqpa51+MNOa3g3gt34umYwTNTwzsEofoxUj7q8FRlsy1zxmgSAJm9LJFxE B2+0kDEXXlhTaYELrxJQ+mFzi2ELQc5l/YqoJwQ8/RJNBL4SKxCb7VFx2L+byJmqZntp CFA6KIH/7MUsS91gXf1fcaW7+o1dPuXglaXRpYB8OPVpDlObExpkhe201moSz2B6jeZP CbaV+uC6upcY1d89fB+hmEmoxYRN9h97yYWbnfMOfyM7v3zoAsWo6+HI7llTmSnfjkVr 1N2g== X-Received: by 10.107.150.137 with SMTP id y131mr22667309iod.11.1417461198242; Mon, 01 Dec 2014 11:13:18 -0800 (PST) Received: from [10.40.97.148] (pearson-education.vlan449.asr1.min1.gblx.net. [67.17.195.174]) by mx.google.com with ESMTPSA id k140sm9945273ioe.39.2014.12.01.11.13.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Dec 2014 11:13:17 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Printing PDF only shows a few letters in 1.8.7+, works in 1.8.6 From: Will Herrmann In-Reply-To: <547C149C.70208@t-online.de> Date: Mon, 1 Dec 2014 13:13:15 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <04D26348-5B66-4B24-AE56-FEBA7A2CE3F3@gmail.com> References: <4857B582-3DB6-4A06-875C-2F5E26B11D7E@gmail.com> <547C149C.70208@t-online.de> To: users@pdfbox.apache.org X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org Using the commands that you provided me in the command line worked just = fine and the text appeared without incident. I tried changing my code to not using a scratch file, like you = suggested, but I got the same results as when I did have a scratch file. (If it matters, I'm not actually printing these, but rather just going = to the final print dialog and choosing "Open in Preview" on OS X and = using CutePDF on Windows to create a PDF of exactly what is being sent = to the printer). -Will Herrmann On Dec 1, 2014, at 1:11 AM, Tilman Hausherr = wrote: > Hi, >=20 > Could you try doing the same from the command line, and what happens? >=20 > java -jar pdfbox-app-1.8.7.jar PrintPDF "PDF That Prints in PDFBox = 1-8-6.pdf" > java -jar pdfbox-app-1.8.7.jar PDFReader "PDF That Prints in PDFBox = 1-8-6.pdf" >=20 > because I did this and all the glyphs are there... So only difference = is that I didn't test with a scratch file like you did. >=20 > Tilman >=20 > Am 01.12.2014 um 05:53 schrieb Will Herrmann: >> I have a PDF (downloadable at http://bit.ly/1w96YVz) that prints fine = in PDFBox 1.8.6 (using the pdfbox-app distribution, if it matters). The = text is properly spaced and prints without issue, matching how it = appears in Adobe Reader and OS X Preview. >>=20 >> But in both PDFBox 1.8.7 and the latest 1.8.8 snapshot, PDFBox only = prints the letters "F u c r", with a great deal of spacing in between. = Oddly, theses are the 1st, 3rd, 5th, and 7th letters of the text in the = PDF. Nothing else appears on any other line. >>=20 >> The code that I am using with both versions of the library is as = follows: >>=20 >> ------------ >> String fileLocation =3D //File Location >> File scratchFile =3D new File(System.getProperty("java.io.tmpdir"), = "TempFile.tmp"); >> if (!scratchFile.exists()) >> scratchFile.createNewFile(); >> scratchFile.deleteOnExit(); >> PDDocument doc =3D PDDocument.load(fileLocation, new = RandomAccessFile(scratchFile, "rw")); >> doc.print(); >> ------------ >>=20 >> I tried searching the issue tracker to see if this is a known issue, = but I wasn't entirely sure what sort of words to search for. I'd = appreciate it if community could tell me if this is a known issue or, if = not, whether or not a bug report might be created for the behavior. >>=20 >> Thanks in Advance, >> -Will Herrmann >=20