Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78BF518B87 for ; Thu, 10 Dec 2015 20:41:11 +0000 (UTC) Received: (qmail 2279 invoked by uid 500); 10 Dec 2015 20:41:11 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 2247 invoked by uid 500); 10 Dec 2015 20:41:11 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 2048 invoked by uid 99); 10 Dec 2015 20:41:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 20:41:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 29DB82C1F6D for ; Thu, 10 Dec 2015 20:41:11 +0000 (UTC) Date: Thu, 10 Dec 2015 20:41:11 +0000 (UTC) From: "Tilman Hausherr (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PDFBOX-3114) Visible signatures in different pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-3114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-3114: ------------------------------------ Attachment: test1_signedinvisible_p2.pdf Could you do me another favor? Please sign an invisible signature on the attached file (test1_signedinvisible_p2.pdf) on page 1 with Acrobat. With PDFBox, invisible signatures are also attached to a page. I don't know how acrobat does it. The new file should have less changes, so hopefully it should be easier to find some clue what's wrong. I did find out something today, the error does not happen if the (invisible) annotation on the page of the second signature is omitted. From my understanding of the spec, the (invisible) annotation is not needed for invisible signatures at all. But of course it is needed for visible signatures. To me, this (and the viewer error msg "one page was modified") suggests that Adobe Reader believes that one page of the (signed) file was modified, but I haven't found out why. > Visible signatures in different pages > ------------------------------------- > > Key: PDFBOX-3114 > URL: https://issues.apache.org/jira/browse/PDFBOX-3114 > Project: PDFBox > Issue Type: Bug > Components: Signing > Affects Versions: 2.0.0 > Environment: Compiled with jdk1.8.0_60, tested with Adobe Acrobat XI Pro v.11.0.13 > Reporter: Luca Battistelli > Priority: Blocker > Attachments: pdfbox-2.0.0-RC1_issue.zip, test1_signedinvisible_p2.pdf, test_Acrobat_iText.zip > > > I tried to make two visible signatures in a 2-pages pdf file using pdfbox-2.0.0-RC1. > I followed the example in SVN directory > https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/ > I have just modified CreateVisibleSignature class customizing the input parameters and the page to sign. > If both the signatures are made in the same page, no error occurs. If signatures are made in different pages (e.g. signature 1 in page 1 and signature 2 in page 2), when I open the pdf file with Adobe Acrobat XI Pro (v.11.0.13) it tells that signature 1 is not valid. > The attachment below refers to the source/resourse zip file. It contains: > - test.docx: 2-pages test document generated with Microsoft Office Professional Plus 2013 > - test1.pdf: pdf version that generates error (created with Word by selecting "Save as Adobe PDF" option) > - test1_*.pdf: signed pdf files with error > - test2.pdf: pdf version that generates no error (created with Word by selecting "Save as" option and then "*.PDF") > - test2_*.pdf: signed pdf files with no error > - CreateVisibleSignature.java: customized source code > - stamp.png: signature image > - test.p12: key store (password 12345) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org