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 64FEF19564 for ; Thu, 28 Apr 2016 15:57:20 +0000 (UTC) Received: (qmail 80906 invoked by uid 500); 28 Apr 2016 15:57:20 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 80883 invoked by uid 500); 28 Apr 2016 15:57:20 -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 80872 invoked by uid 99); 28 Apr 2016 15:57:19 -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; Thu, 28 Apr 2016 15:57:19 +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 D3C8AC7715 for ; Thu, 28 Apr 2016 15:57:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.296 X-Spam-Level: X-Spam-Status: No, score=-0.296 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.996] autolearn=disabled Received: from mx2-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 DjGHJ3i1OeEv for ; Thu, 28 Apr 2016 15:57:16 +0000 (UTC) Received: from sharp.hjf.org (sharp.hjf.org [144.83.16.155]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 55A375F23A for ; Thu, 28 Apr 2016 15:57:16 +0000 (UTC) Received: from pps.filterd (sharp.hjf.org [127.0.0.1]) by sharp.hjf.org (8.15.0.59/8.15.0.59) with SMTP id u3SFrmBU005541 for ; Thu, 28 Apr 2016 11:57:15 -0400 Received: from koch.hjf.org (koch.hjf.org [144.83.123.20]) by sharp.hjf.org with ESMTP id 22k1y88v1v-1 for ; Thu, 28 Apr 2016 11:57:15 -0400 In-Reply-To: References: <1461848081.64712.ezmlm@pdfbox.apache.org> To: users@pdfbox.apache.org MIME-Version: 1.0 Subject: Re: WELCOME to users@pdfbox.apache.org X-KeepSent: 6C1083EC:D0B263B5-85257FA3:005705EE; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP4 June 08, 2015 Message-ID: From: npunjabi@hjf.org Date: Thu, 28 Apr 2016 11:57:14 -0400 X-MIMETrack: Serialize by Router on koch/hq/hjf(Release 8.5.3FP6|November 21, 2013) at 04/28/2016 11:57:14, Serialize complete at 04/28/2016 11:57:14 Content-Type: multipart/related; boundary="=_related 00579CE285257FA3_=" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-04-28_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=15 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1604280222 --=_related 00579CE285257FA3_= Content-Type: multipart/alternative; boundary="=_alternative 00579CE285257FA3_=" --=_alternative 00579CE285257FA3_= Content-Type: text/plain; charset="US-ASCII" Hi Tilman, Thank you so much for your reply. my test code was from PDFBox 2.0.0; which I replaced with PDFBox 2.0.1; now I am not getting "Invalid Signature" message anymore. I do see the stamp "Original" in my signed PDF, the signature is on that stamp.jpg; I wanted to see the actual digital signature, trying to figure out how to remove the stamp and display the actual "Digital Signature". I am kind of new to Netbeans and java as such. Regards Naresh From: Tilman Hausherr To: users@pdfbox.apache.org Date: 04/28/2016 11:43 AM Subject: Re: WELCOME to users@pdfbox.apache.org Hi, There must be some problem, because this is the top of CMSProcessableInputStream: class CMSProcessableInputStream implements CMSTypedData that file is in PDFBox reactor\examples\src\main\java\org\apache\pdfbox\examples\signature\CMSProcessableInputStream.java Did you include that file in your project? Tilman (Netbeans user too) Am 28.04.2016 um 15:33 schrieb npunjabi@hjf.org: Hello! I wanted to test digital signature using PDFBox. I downloaded pdfbox-app-2.0.1.jar 7.9MB on my local computer. In Netbeans 8.1, I created new project and from main class I am calling TestCreateSignature.testCreateVisibleSignature(). I generated new pfx key using Adobe reader DC and used that for my test. New (output) PDF is getting generated but when I open the PDF it says that the signature is invalid. How can I get this to work? At this time, I am using PDFBox just for testing to see if we can use it for real life. I am attaching my input and output pdfs. One more thing, I had to change following code from CreateSignatureBase.java, as was not getting compiled in Netbeans. Original Code: Modified Code: Any help would be greatly appreciated! Thanks Naresh --=_alternative 00579CE285257FA3_= Content-Type: text/html; charset="US-ASCII" Hi Tilman,

Thank you so much for your reply. my test code was from PDFBox 2.0.0; which I replaced with PDFBox 2.0.1; now I am not getting "Invalid Signature" message anymore. I do see the stamp "Original" in my signed PDF, the signature is on that stamp.jpg; I wanted to see the actual digital signature, trying to figure out how to remove the stamp and display the actual "Digital Signature". I am kind of new to Netbeans and java as such.

Regards

Naresh



From:        Tilman Hausherr <THausherr@t-online.de>
To:        users@pdfbox.apache.org
Date:        04/28/2016 11:43 AM
Subject:        Re: WELCOME to users@pdfbox.apache.org




Hi,

There must be some problem, because this is the top of CMSProcessableInputStream:

class CMSProcessableInputStream implements CMSTypedData

that file is in
PDFBox reactor\examples\src\main\java\org\apache\pdfbox\examples\signature\CMSProcessableInputStream.java

Did you include that file in your project?

Tilman (Netbeans user too)



Am 28.04.2016 um 15:33 schrieb
npunjabi@hjf.org:
Hello!

I wanted to test digital signature using PDFBox. I downloaded
pdfbox-app-2.0.1.jar 7.9MB on my local computer. In Netbeans 8.1, I created new project and from main class I am calling TestCreateSignature.testCreateVisibleSignature(). I generated new pfx key using Adobe reader DC and used that for my test. New (output) PDF is getting generated but when I open the PDF it says that the signature is invalid. How can I get this to work? At this time, I am using PDFBox just for testing to see if we can use it for real life. I am attaching my input and output pdfs. One more thing, I had to change following code from CreateSignatureBase.java, as was not getting compiled in Netbeans.

Original Code:




Modified Code:




Any help would be greatly appreciated!


Thanks


Naresh



--=_alternative 00579CE285257FA3_=-- --=_related 00579CE285257FA3_=--