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 3076510AFD for ; Thu, 11 Apr 2013 05:46:02 +0000 (UTC) Received: (qmail 55644 invoked by uid 500); 11 Apr 2013 05:46:02 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 55412 invoked by uid 500); 11 Apr 2013 05:46:00 -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 55376 invoked by uid 99); 11 Apr 2013 05:45:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 05:45:59 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.160] (HELO mo-p00-ob.rzone.de) (81.169.146.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 05:45:55 +0000 X-RZG-AUTH: :LWIAZ0WpaN8UY5o8XRz0jOyrHsdEC+nAE10OdySrgHL6ku8U1wBZgGUsqwc= X-RZG-CLASS-ID: mo00 Received: from [192.168.1.6] (dslb-088-076-231-021.pools.arcor-ip.net [88.76.231.21]) by smtp.strato.de (joses mo7) (RZmta 31.26 DYNA|AUTH) with ESMTPA id 602800p3B3nVTG for ; Thu, 11 Apr 2013 07:45:32 +0200 (CEST) Message-ID: <51664DFC.9060907@lehmi.de> Date: Thu, 11 Apr 2013 07:45:32 +0200 From: Andreas Lehmkuehler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: Error when opening multi-page PDF generated by PDFBox References: <91F70773-E691-42FD-8730-16FAD9828F83@lindbergarts.com> <153D9897-D66C-477C-9768-1415C3F8906B@lindbergarts.com> <51557B88.5090509@lehmi.de> <36D47F17-9A70-420B-8956-C3D0CA201E81@lindbergarts.com> <106CBEFA-8917-4251-B4BF-6792065D8381@lindbergarts.com> <1B36E8E4-73F6-4F2B-9227-784559727C18@fileaffairs.de> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, please try the new 1.8.1 release. The issue should be solved. BR Andreas Lehmk�hler Am 03.04.2013 15:37, schrieb Chris J Lindberg: > Hi, > > Except for the form element pdfbox-1551 seems to be similar to what I am running into. > > Chris > > On Apr 3, 2013, at 4:11 AM, Maruan Sahyoun wrote: > >> could you verify if the description of the issue matches and if yes attach to the case? >> >> Maruan Sahyoun >> >> Am 03.04.2013 um 09:53 schrieb jlonc@gi-bon.sk: >> >>> I ran into the same problem. >>> >>> Swapped from 1.7.1 to 1.8.0 and then started to get corrupt pdf files from >>> pdfbox. >>> But I was not sure whether it is caused by pdfbox 1.8.0 or my little >>> custom changes that I made to source codes (same as I did to 1.7.1). >>> (hadn't time to check that yet) >>> >>> Now it seems that there is some bug in 1.8.0 if other users have the same >>> problem. >>> >>> >>> Best regards >>> Juraj Lonc >>> >>> >>> >>> >>> From: Chris J Lindberg >>> To: users@pdfbox.apache.org, >>> Date: 03. 04. 2013 03:38 >>> Subject: Re: Error when opening multi-page PDF generated by PDFBox >>> >>> >>> >>> Hi, >>> >>> I downloaded pdfbox-1.7.1 then replaced the pdfbox-1.8.0 library with >>> 1.7.1. I then ran the code against the combined document. The resulting >>> new171-CombinedLoremIpsum.pdf opens without error. >>> >>> http://ceratopsian.net/pdf/new171-CombinedLoremIpsum.pdf >>> >>> Looks like there may be an issue with pdfbox-1.8.0. >>> >>> Chris >>> >>> On Apr 2, 2013, at 6:18 PM, Chris J Lindberg wrote: >>> >>>> Hi, >>>> >>>> I used pdfbox-1.8.0 >>>> JDK 1.6 >>>> >>>> Chris >>>> >>>> On Apr 2, 2013, at 8:15 AM, Maruan Sahyoun wrote: >>>> >>>>> Hi, >>>>> >>>>> which version of pdfbox are you using? Can you test using pdfbox-1.7.1 >>> AND pdfbox-1.8.0? >>>>> >>>>> With kind regards >>>>> >>>>> Maruan Sahyoun >>>>> >>>>> FileAffairs GmbH >>>>> Josef-Schappe-Stra�e 21 >>>>> 40882 Ratingen >>>>> >>>>> Tel: +49 (2102) 89497 88 >>>>> Fax: +49 (2102) 89497 91 >>>>> sahyoun@fileaffairs.de >>>>> www.fileaffairs.de >>>>> >>>>> Gesch�ftsf�hrer: Maruan Sahyoun >>>>> Handelsregister: AG D�sseldorf, HRB 53837 >>>>> UST.-ID: DE248275827 >>>>> >>>>> Am 02.04.2013 um 16:33 schrieb Chris J Lindberg : >>>>> >>>>>> Andreas, >>>>>> >>>>>> I generated 3 test documents. >>>>>> >>>>>> LoremIpsum.pdf a two page PDF document output from Lorem Ipsum web >>> page. >>>>>> http://ceratopsian.net/pdf/LoremIpsum.pdf >>>>>> >>>>>> GeneratedLoremIpsum.pdf is a second PDF document generated using print >>> to PDF from Microsoft Word. >>>>>> http://ceratopsian.net/pdf/GeneratedLoremIpsum.pdf >>>>>> >>>>>> CombinedLoremIpsum.pdf was created using Acrobat Pro to open >>> LoremIpsum.pdf then inserting GeneratedLoremIpsum.pdf after the second >>> page. >>>>>> http://ceratopsian.net/pdf/CombinedLoremIpsum.pdf >>>>>> >>>>>> I then ran the FindActionLinks code below stripped down to load then >>> save a new PDF file against all three files. The single documents, >>> LoremIpsum.df and GeneratedLoremIpsum.pdf generated files that can be >>> opened without error. >>>>>> http://ceratopsian.net/pdf/new-LoremIpsum.pdf >>>>>> http://ceratopsian.net/pdf/new-GeneratedLoremIpsum.pdf >>>>>> >>>>>> The file generated from the CombinedLoremIpsum.pdf generates an error >>> when opened. >>>>>> The file �new-CombinedLoremIpsum.pdf� could not be opened. It may be >>> damaged or use a file format that Preview doesn�t recognize. >>>>>> http://ceratopsian.net/pdf/new-CombinedLoremIpsum.pdf >>>>>> >>>>>> -Chris >>>>>> >>>>>> On Mar 29, 2013, at 4:31 AM, Andreas Lehmkuehler wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Am 28.03.2013 05:43, schrieb Chris J Lindberg: >>>>>>>> Additional information: The error occurred on Norwegian documents. I >>> just tested outputting two English Word documents as PDF then combined the >>> two using Acrobat Pro then ran the code below. The result gave me the same >>> error when trying to open the output file using Preview. >>>>>>>> >>>>>>>> On Mar 27, 2013, at 6:05 PM, Chris J Lindberg wrote: >>>>>>>> >>>>>>>>> Hello, >>>>>>>>> >>>>>>>>> I generated a multi page document using Acrobat Pro by opening one >>> PDF document then using insert from file to add a second page. My goal was >>> to switch launch links to go to links but early on I got an error when >>> trying to open the PDFBox generated file with either Preview or Acrobat: >>>>>>>>> >>>>>>>>> The file �NEW_AllPages.pdf� could not be opened. >>>>>>>>> It may be damaged or use a file format that Preview doesn�t >>> recognize. >>>>>>>>> >>>>>>>>> I stripped out all of the link code and ran the following where I >>> load the input file and output a file based on command line arguments. >>>>>>>>> >>>>>>>>> public class FindActionLinks { >>>>>>>>> >>>>>>>>> private static void usage() { >>>>>>>>> System.err.println( "usage: " + FindActionLinks.class.getName() >>> + " " ); >>>>>>>>> } >>>>>>>>> >>>>>>>>> public static void main(String[] args) throws Exception { >>>>>>>>> PDDocument doc = null; >>>>>>>>> >>>>>>>>> try { >>>>>>>>> if (args.length != 2) { >>>>>>>>> usage(); >>>>>>>>> } else { >>>>>>>>> doc = PDDocument.load(args[0]); >>>>>>>>> >>>>>>>>> doc.save( args[1] ); >>>>>>>>> } >>>>>>>>> } finally { >>>>>>>>> if (doc != null) { >>>>>>>>> doc.close(); >>>>>>>>> } >>>>>>>>> } >>>>>>>>> } >>>>>>>>> } >>>>>>>>> >>>>>>>>> After running this code I the error was the same. I then ran the >>> code on a single PDF document that had no inserted pages from file. Is >>> this a bug? Any idea on how to correct this? >>>>>>> That's hard without having a hand on the pdf in question. >>>>>>> >>>>>>>>> Thanks, >>>>>>>>> >>>>>>>>> Chris >>>>>>> >>>>>>> BR >>>>>>> Andreas Lehmk�hler >>> >>> >>> >> >