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 255C9106EB for ; Thu, 26 Feb 2015 07:44:15 +0000 (UTC) Received: (qmail 57884 invoked by uid 500); 26 Feb 2015 07:44:14 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 57860 invoked by uid 500); 26 Feb 2015 07:44:14 -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 57849 invoked by uid 99); 26 Feb 2015 07:44:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 07:44:14 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.25.134.18] (HELO mailout04.t-online.de) (194.25.134.18) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 07:43:47 +0000 Received: from fwd04.aul.t-online.de (fwd04.aul.t-online.de [172.20.26.149]) by mailout04.t-online.de (Postfix) with SMTP id 89E231D4998 for ; Thu, 26 Feb 2015 08:42:46 +0100 (CET) Received: from [192.168.2.102] (r4W2pYZTrhE6zPHZr30iFPDpQBp6YhHH7-QAHRluv7pZjkvLt9m-v0OP22cFwkhwq5@[217.231.169.70]) by fwd04.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YQt5h-0DH1NY0; Thu, 26 Feb 2015 08:42:37 +0100 Message-ID: <54EECE82.1090600@t-online.de> Date: Thu, 26 Feb 2015 08:42:58 +0100 From: Tilman Hausherr User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: Error: Header doesn't contain versioninfo References: <54EEC9FD.4090204@t-online.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-ID: r4W2pYZTrhE6zPHZr30iFPDpQBp6YhHH7-QAHRluv7pZjkvLt9m-v0OP22cFwkhwq5 X-TOI-MSGID: 31350ea1-91c4-405a-95e1-6bba16ec5d57 X-Virus-Checked: Checked by ClamAV on apache.org The beginning of the PDF is OK. I assume you're not using the latest version (1.8.8.). However I don't know if that is the cause. You are using this call: public static PDDocument load( InputStream input ) Make sure that you are really reading a PDF from the start when working concurrently, and make sure that it is correct, i.e this "EncoderHelper" is working properly. Maybe save your stream somewhere and create a new stream, just to see whether this stream contains the correct stuff. Tilman Am 26.02.2015 um 08:26 schrieb Swapnil Raverkar: > %PDF-1.3 > %«Ïè¢ > 8 0 obj > > On 25 February 2015 at 23:23, Tilman Hausherr wrote: > >> Please upload the PDF somewhere, or open it in an editor and copy & paste >> the first three lines. >> >> Tilman >> >> Am 26.02.2015 um 08:02 schrieb Swapnil Raverkar: >> >> Hi, >>> We are randomly getting following exception while parsing PDF documents. >>> We >>> observed that we get this exception while parsing multiple files >>> concurrently : >>> >>> "Error: Header doesn't contain versioninfo" >>> >>> >>> Caused by: java.io.IOException: Error: Header doesn't contain versioninfo >>> >>> at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:339) >>> >>> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:177) >>> >>> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1214) >>> >>> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1181) >>> >>> at com.apple.ist.acss.core.encoder.impl.EncoderHelper.a(SourceFile:149) >>> >>> ... 19 more >>> >>> >>> >>> Any pointers / solutions on this would be really helpful. >>> >>> >>> >>> Thanks, >>> >>> Swapnil >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org