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





From:   [email protected]
To:     [email protected]
Date:   04/28/2016 08:54 AM
Subject:        WELCOME to [email protected]



Hi! This is the ezmlm program. I'm managing the
[email protected] mailing list.

I'm working for my owner, who can be reached
at [email protected].

Acknowledgment: I have added the address

   [email protected]

to the users mailing list.

Welcome to [email protected]!

Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.


--- Administrative commands for the users list ---

I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:

To subscribe to the list, send a message to:
   <[email protected]>

To remove your address from the list, send a message to:
   <[email protected]>

Send mail to the following for info and FAQ for this list:
   <[email protected]>
   <[email protected]>

Similar addresses exist for the digest list:
   <[email protected]>
   <[email protected]>

To get messages 123 through 145 (a maximum of 100 per request), mail:
   <[email protected]>

To get an index with subject and author for messages 123-456 , mail:
   <[email protected]>

They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.

To receive all messages with the same subject as message 12345,
send a short message to:
   <[email protected]>

The messages should contain one line or word of text to avoid being
treated as sp@m, but I will ignore their content.
Only the ADDRESS you send to is important.

You can start a subscription for an alternate address,
for example "[email protected]", just add a hyphen and your
address (with '=' instead of '@') after the command word:
<[email protected]>

To stop subscription for this address, mail:
<[email protected]>

In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.

If despite following these instructions, you do not get the
desired results, please contact my owner at
[email protected]. Please be patient, my owner is a
lot slower than I am ;-)

--- Enclosed is a copy of the request I received.

Return-Path: <[email protected]>
Received: (qmail 64707 invoked by uid 99); 28 Apr 2016 12:54:41 -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 12:54:41 
+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 275F1C6E41
                 for 
<users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org>; 
Thu, 28 Apr 2016 12:54:41 +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 MJIfuKrs6nVT
                 for 
<users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org>;
                 Thu, 28 Apr 2016 12:54:39 +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 9F2FF5F472
                 for 
<users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org>; 
Thu, 28 Apr 2016 12:54:38 +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 
u3SCs7MJ014535
                 for 
<users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org>; 
Thu, 28 Apr 2016 08:54:31 -0400
Received: from koch.hjf.org (koch.hjf.org [144.83.123.20])
                 by sharp.hjf.org with ESMTP id 22k1y88kp6-1
                 for 
<users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org>; 
Thu, 28 Apr 2016 08:54:31 -0400
In-Reply-To: <[email protected]>
References: <[email protected]>
To: 
users-sc.1461847727.bkjlgaallhimphdnjjlh-npunjabi=hjf....@pdfbox.apache.org
MIME-Version: 1.0
Subject: Re: confirm subscribe to [email protected]
X-KeepSent: 803E75BE:4DF81DCE-85257FA3:0046E31E;
 type=4; name=$KeepSent
X-Mailer: IBM Notes Release 9.0.1FP4 June 08, 2015
Message-ID: 
<of803e75be.4df81dce-on85257fa3.0046e31e-85257fa3.0046e...@hjf.org>
From: [email protected]
Date: Thu, 28 Apr 2016 08:54:30 -0400
X-MIMETrack: Serialize by Router on koch/hq/hjf(Release 8.5.3FP6|November 
21, 2013) at
 04/28/2016 08:54:31,
                 Serialize complete at 04/28/2016 08:54:31
Content-Type: multipart/alternative; boundary="=_alternative 
0046E22985257FA3_="
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=4
 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam
 adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000
 definitions=main-1604280182



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to