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 2F8EB18D39 for ; Wed, 9 Mar 2016 20:22:57 +0000 (UTC) Received: (qmail 62575 invoked by uid 500); 9 Mar 2016 20:22:55 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 62549 invoked by uid 500); 9 Mar 2016 20:22:55 -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 62538 invoked by uid 99); 9 Mar 2016 20:22:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2016 20:22:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 006C3C3727 for ; Wed, 9 Mar 2016 20:22:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.798 X-Spam-Level: * X-Spam-Status: No, score=1.798 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WruSdssMdOzn for ; Wed, 9 Mar 2016 20:22:52 +0000 (UTC) Received: from mailout07.t-online.de (mailout07.t-online.de [194.25.134.83]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 950CB5F1BE for ; Wed, 9 Mar 2016 20:22:51 +0000 (UTC) Received: from fwd14.aul.t-online.de (fwd14.aul.t-online.de [172.20.26.242]) by mailout07.t-online.de (Postfix) with SMTP id D360752079C for ; Wed, 9 Mar 2016 21:22:50 +0100 (CET) Received: from [192.168.2.104] (rxCSaMZVohOTvgTRGqc4Pnc4-gNsXDyaggdRARI8xnzev3tVvek+AAjIiR7-1c7gQH@[217.231.130.46]) by fwd14.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1adkd1-2Pug7M0; Wed, 9 Mar 2016 21:22:43 +0100 Subject: Re: Overlaying PDFs > 1.4 fails & Hyperlinks are not clickable in overlays To: users@pdfbox.apache.org References: <56DD9E8A.3040207@avaintec.com> <56DDB823.9000209@t-online.de> <56E04594.8030200@avaintec.com> From: Tilman Hausherr Message-ID: <56E0861E.2050309@t-online.de> Date: Wed, 9 Mar 2016 21:22:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56E04594.8030200@avaintec.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-ID: rxCSaMZVohOTvgTRGqc4Pnc4-gNsXDyaggdRARI8xnzev3tVvek+AAjIiR7-1c7gQH X-TOI-MSGID: e872e9a5-7066-4641-8e96-a3499a946ed4 Am 09.03.2016 um 16:47 schrieb Anna Taracha: > Result of PDFBox 2.0.0-RC3: > > http://www.elisanet.fi/jakorasia/ANNA/result-PDFBox2.pdf > > Result of PDFBox 1.8.11: > > http://www.elisanet.fi/jakorasia/ANNA/result-PDFBox18.pdf Here's what I get with PDF-Tools: 1.8: Validating file "result-PDFBox18.pdf" for conformance level pdfa-1b dc:language :: Wrong value type. Expected type 'bag'. dc:date :: Wrong value type. Expected type 'seq'. The required XMP property 'pdfaid:part' is missing. The required XMP property 'pdfaid:conformance' is missing. A device-specific color space (DeviceGray) without an appropriate output intent is used. The document does not conform to the requested standard. The document contains device-specific color spaces. The document's meta data is either missing or inconsistent or corrupt. Done. 2: Validating file "result-PDFBox2.pdf" for conformance level pdfa-1b The file contains cross reference streams. <===================== The file trailer dictionary is missing or invalid. <================= dc:language :: Wrong value type. Expected type 'bag'. dc:date :: Wrong value type. Expected type 'seq'. The required XMP property 'pdfaid:part' is missing. The required XMP property 'pdfaid:conformance' is missing. A device-specific color space (DeviceGray) without an appropriate output intent is used. The document does not conform to the requested standard. The file format (header, trailer, objects, xref, streams) is corrupted. The document contains device-specific color spaces. The document's meta data is either missing or inconsistent or corrupt. Done. preflight has a similar error for 2.0 only: 1.4 : Trailer Syntax error, /XRef cross reference streams are not allowed Please try this before saving: doc.getDocument().setIsXRefStream(false); COSDictionary trailer = doc.getDocument().getTrailer(); trailer.removeItem(COSName.W); trailer.removeItem(COSName.DECODE_PARMS); trailer.removeItem(COSName.FILTER); trailer.removeItem(COSName.TYPE); trailer.removeItem(COSName.INDEX); trailer.removeItem(COSName.LENGTH); About your other question - it is unclear. Are you asking whether Overlay will be available in the future? Or do you want us to create a feature like the one you did on your own? Tilman > > -anna- > > On 07.03.2016 19:19, Tilman Hausherr wrote: >> Could you upload two documents, one good and one bad? I'll have a >> look with PDFDebugger to find out what's wrong. >> >> Tilman >> >> Am 07.03.2016 um 16:30 schrieb Anna Taracha: >>> Hi, >>> >>> I am having trouble overlaying PDFs of version 1.5 (or higher) when >>> using PDFBox 2.0.0-RC3. The result PDF has parameter error in it >>> according to 3-Heights™ PDF Validator Online Tool. Overlaying PDFs >>> of version 1.4 (PDF 1.4, PDF/A-1a and PDF/A-1b) works fine. >>> >>> To reproduce: >>> 1. Download pdfbox-app-2.0.0-RC3.jar >>> 2. Overlay two PDF(/A) documents of version 1.5 (or higher) >>> /- java -jar pdfbox-app-2.0.0-RC3.jar OverlayPDF doc.pdf wm.pdf >>> -position foreground result.pdf/ >>> 3. Validate result.pdf with a PDF validator (I used 3-Heights™ PDF >>> Validator Online Tool) >>> >>> The result of the validation is 'parameter error'. However, >>> overlaying the exact same PDFs using pdfbox-app-1.8.11.jar works >>> fine. Is there some regression in PDFBox 2.0.0-RC3 regarding >>> overlaying PDFs of version > 1.4? I tested OverlayPDF//with many >>> simple PDFs (version > 1.4) and all of them resulted in parameter >>> error when using PDFBox 2.0.0-RC3. >>> >>> I have also a question about making hyperlinks clickable in >>> overlays. I am able to do it by modifying Overlay.java but I was >>> wondering, if this feature will be available in some later release? >>> >>> Best regards, >>> Anna >>> >> >> >> --------------------------------------------------------------------- >> 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org