From users-return-11402-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Fri Jan 11 12:53:48 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1962B180648 for ; Fri, 11 Jan 2019 12:53:47 +0100 (CET) Received: (qmail 77975 invoked by uid 500); 11 Jan 2019 11:53:47 -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 77963 invoked by uid 99); 11 Jan 2019 11:53:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2019 11:53:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D3278C0189 for ; Fri, 11 Jan 2019 11:53:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id MYosx7IMfthy for ; Fri, 11 Jan 2019 11:53:42 +0000 (UTC) Received: from mailout01.t-online.de (mailout01.t-online.de [194.25.134.80]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DD9505FE57 for ; Fri, 11 Jan 2019 11:46:18 +0000 (UTC) Received: from fwd01.aul.t-online.de (fwd01.aul.t-online.de [172.20.27.147]) by mailout01.t-online.de (Postfix) with SMTP id 11B4F425BABE for ; Fri, 11 Jan 2019 12:46:12 +0100 (CET) Received: from [192.168.2.108] (bpKLQBZFrhZdwmionofP-AfqOkX-w4l3WYLQzFsUXv6kxgLiG-eqAbaNQkuuvI0woq@[87.173.192.39]) by fwd01.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1ghvGN-3uq6pE0; Fri, 11 Jan 2019 12:46:11 +0100 Subject: Re: PDFBox 2.0.12 creates invalid PDF/A To: users@pdfbox.apache.org References: <88f410e42ed35b6ccb43d7532b533e54fdb25dc6.camel@tu-berlin.de> From: Tilman Hausherr Message-ID: <88f0849e-61d6-93f7-dd5f-a5935221b4ef@t-online.de> Date: Fri, 11 Jan 2019 12:46:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <88f410e42ed35b6ccb43d7532b533e54fdb25dc6.camel@tu-berlin.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ID: bpKLQBZFrhZdwmionofP-AfqOkX-w4l3WYLQzFsUXv6kxgLiG-eqAbaNQkuuvI0woq X-TOI-MSGID: 0f161fd4-e513-4512-87e8-8174aa23decf I just ran CreatePDF.java from the example project with only one line changed ("id.setPart(2);") and then successfully validated it on https://www.pdf-online.com/osa/validate.aspx and with VeraPDF. The XML is:                               target/test-output/PDFA.pdf                             2       B       I see  one difference in the title line. See this: https://www.mail-archive.com/users@pdfbox.apache.org/msg09256.html Tilman Am 11.01.2019 um 12:22 schrieb Richter, Michael: > Hi, > > I'm trying to create PDF/A files using PDFBox 2.0.12. My code is based on the example code from the PDFBox repo. It creates the PDF file and I can verify XMP data is in it containing my parameters. But tools like veraPDF and pdfPilot say it's invalid (no PDF/A info, no metadata). > > So I converted the file using pdfPilot. I extracted the xpacket XML part from the resulting PDF file. And I added this data directly without using PDFBox API. And the resulting PDF is valid to both apps. > > So I think the way PDFBox writes XMP data to PDF files, it gets invalid. Can someone confirm that or is there something wrong in the way I do it? > > I also wrote a question on stackoverflow with further infos on this: > https://stackoverflow.com/questions/54142847/pdfbox-2-does-not-create-pdf-a-file > > Greetings > -- > Michael Richter > Abt. Online-Dienste und IT-Entwicklung > > Technische Universität Berlin > Universitätsbibliothek > Fasanenstraße 88 > 10623 Berlin > > www.tu-berlin.de --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org