The smartcard signs the document hash and returns a signed-hash that is
included in the CMS signature. A couple of things to remember when
rolling your own: The hash covers the entire document EXCEPT for the
Contents area that actually holds the CMS. You need to insert the CMS
into the Contents
The smartcard signs the document hash and returns a signed-hash that is
included in the CMS signature. A couple of things to remember when
rolling your own: The hash covers the entire document EXCEPT for the
Contents area that actually holds the CMS. You need to insert the CMS
into the Contents
The UR3 indicates that the file is "Reader Enabled", so has an RE
signature. It is also encrypted. The Save parameters called for the file
to be saved as unencrypted, and not as an incremental save, which would
break the RE signature. Removing the UR3 removes the check for Reader
Enablement.
The most Acrobat-friendly of handling custom appearances in an
annotation is to use the Button type.
A PDF XObject doesn't have a unique position. The ultimate position on
the page is determined by the current transformation matrix in the
content stream:
The BBox entry in the form dictionary is expressed in form space, as
are any coordinates used in the form XObject’s content stream, suc
What you want is a signature widget with multiple appearances.
Unfortunately, that is the only widget type that does NOT support
multiple appearances.
Marc
On 9/24/2018 5:37 AM, Thomas Hermann wrote:
Hello,
I try to sign a multi-page pdf document using an External Signature Support
(see
o
Threads tie non-contiguous text blocks together in reading order (think
of a magazine with articles continued on later pages)
On 12/30/2018 7:53 PM, Ilya Sterin wrote:
Tilman, thanks for the reply. I replied to you on stackoverflow, but
thought I'd add here as well, in case someone else has th
If you look at a Type 1 font with CharacterMap, you will see that it has
many more than 255 characters. These characters can be accessed by using
a Differences entry in the Font Dictionary to remap one of the 255 to
the desired character. Characters like 'lessequal' can be reached in
this way.
Which is, of course, a violation of the "agreement" between PDF and
Readers (ignored by everyone, it seems, except Adobe). In
Acrobat/Reader, you need to open with the Owner password in order to
change permissions. Opening with the User password should honor
permissions and not allow changing o
Acrobat says the following about your signature:
"The signer's certificate has been issued by a certificate authority
that you have not trusted to issue certificates for the purpose of
certifying PDF documents."
"The signature includes an embedded timestamp but it could not be
verified."
T
The private key is used for signing only. It is not needed for
validation. The public key validates the signature (signed with the
private key). The public key is part of the certificate, so you should
not need any external keystores. But you may need internet access to
chase the validation cha
Acrobat will sync the values in Metadata with Document Properties when
saving the file. Perhaps only the Metadata was present in your test file.
Marc
On 9/22/2020 11:37 PM, Adrian wrote:
Hi Tilman,
thanks for your help.
I still can't read document properties but I've found a copy of those
pro
You can track back through the XREF chain to make sure the %%EOF you
found is correct.
On 3/15/2021 1:40 PM, Tim Allison wrote:
All,
Is there an easy-ish/programmatic way to extract earlier versions of
a PDF in PDFBox if there are incremental updates. I found [1], and
that's easy enough, b
Sorry, no example code. My source code base is not up to date. But I do
know PDF internals.
Marc
On 3/16/2021 7:29 AM, Tim Allison wrote:
Thank you, Marc. Is this using XrefTrailerResolver...do you happen to
have any example code?
On Tue, Mar 16, 2021 at 9:53 AM Marc Kaufman wrote:
You
That turns out to be permissible, and is useful when the signature is
invisible. There is an EU demo site that generates sample signed
documents that have AcroForm fields, but no annots.:
Marc
On 12/16/2022 8:16 PM, Tilman Hausherr wrote:
That new PDF also has that the initial signature does n
The AcroForm /DR entry looks like it contains more information than
needed, including references to the signature appearance. Considering
that /DR is optional...
-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
F
There's something about Markup annotations that confuses Acrobat.
Probably due to some internal Popup generation that is not really part
of the PDF.
-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional c
Watch out for 'space' and '-' in passwords. I've seen problems with
leading spaces, and between Mac and Windows (that only with Acrobat-X
passwords)
Marc
On 7/18/2023 12:57 AM, Steven Davies wrote:
Hi,
I am using PDFbox to test whether a password is correct for a
protected PDF before handli
What does the Encrypt dictionary look like? (the Encrypt dictionary is
never encrypted)
Marc
On 7/18/2023 10:56 AM, Steven Davies wrote:
On 18/07/2023 18:51, Tilman Hausherr wrote:
On 18.07.2023 19:06, Steven Davies wrote:
I requested a Jira account but was denied; if one of the people with
File is using AESV3 (256-bit AES) and Acrobat X encryption.
Marc
On 7/18/2023 11:12 AM, Steven Davies wrote:
On 18/07/2023 08:57, Steven Davies wrote:
I am using PDFbox to test whether a password is correct for a
protected PDF before handling it with a different process. This is
working for t
Here is what Actobat says:
PDF/A-1a:
https://www.dropbox.com/scl/fi/2wg6t7dm0ub2j8elnk24y/soknadskvittering_report_A-1a.pdf?rlkey=47y0vrv8233o0y5unbhxmp6u0&dl=0
PDF/A-1b:
https://www.dropbox.com/scl/fi/2ri9nfshthgvfy4tyixjz/soknadskvittering_report_A-1b_report.pdf?rlkey=oan9xspcqpm5b9c434e80v
I find myself debugging PDF files where Acrobat claims "Document has
been altered or corrupted since it was signed." I would dearly love to
see which objects belong to the last xref (color code is OK). Has anyone
added that feature to PDF Debugger, or know where I can find one? Just
comparing r
cksum and find that it is different. There isn't any info on what
changed, just that SOMETHING changed.
On 10/6/2023 8:50 PM, Tilman Hausherr wrote:
On 06.10.2023 19:50, Marc Kaufman wrote:
I find myself debugging PDF files where Acrobat claims "Document has
been altered or corrupted s
If you embed a subset of arial-unicode-ms.ttf then the prefilled fields
are sure to be rendered, but you can't use the embedded subset to change
field values because the characters you need may not be in the subset.
Adobe Acrobat (I don't know which viewer you are expecting your users to
invok
A digital signature signs everything through the %%EOF of the file. Any
changes you make to page contents (including adding pages) will
invalidate any signatures already in the file. Even if those changes are
in an incremental Save section. Font objects in the signed document
can't be removed o
I'm trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font
loading I get to:
OTFFile.readName() line 34: Object familyName =
fileFont.getProperty("FamilyName");
But fileFont is a CFFCIDFont, and there is no such method "getProperty".
Stack:
OTFFile.readName() line: 134
OTFFile(O
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
I suspect you wanted to post on a FOP mailing list. PDFBox doesn't have a file
OTFFile.java.
Tilman
Am 12.07.2016 um 21:53 schrieb Marc Kaufman:
> I'm trying to use an Adobe CFF font (KozGoPr6N-Regular.otf). During the font
>
org
Subject: Re: NoSuchMethod - CFFCIDFont.getProperty
Am 12.07.2016 um 22:00 schrieb Marc Kaufman:
> Ah. Good point. I missed the package header. Thanks But the CFFCIDFont
> class is in org.apache.fontbox.cff.
> Some miscommunication somewhere...
Still don't know what we could do.
Turns out fop 2.1 needs fontbox 1.8
Marc
-Original Message-
From: Marc Kaufman [mailto:marck...@adobe.com]
Sent: Tuesday, July 12, 2016 1:28 PM
To: users@pdfbox.apache.org
Subject: RE: NoSuchMethod - CFFCIDFont.getProperty
I've opened a conversation on the fop mailing list. I
You probably encrypted the file with a user password, but left the owner
password as NULL. You should set the owner password to be the same as the user
password when only one password is needed.
PDF Viewers other than Adobe's will open a file with a NULL password in either
location.
From: Khal
tself.
Tilman
Am 22.07.2016 um 21:29 schrieb Marc Kaufman:
> You probably encrypted the file with a user password, but left the owner
> password as NULL. You should set the owner password to be the same as the
> user password when only one password is needed.
>
> PDF Viewers oth
I would point out that the problem with this appearance setting is not
the color, but the missing Font specification.
/ 13 0 g vs / Helv Tf 13 0 g. The 13 being the font size.
Marc
On 6/4/2025 1:09 AM, sahy...@fileaffairs.de wrote:
Your welcome. Good that you found a solution.
We could handl
dictionary (referenced from the DR entry of the interactive form
dictionary. [pdf 1.7 reference]
Marc
On 6/4/2025 9:34 AM, Marc Kaufman wrote:
I would point out that the problem with this appearance setting is not
the color, but the missing Font specification.
/ 13 0 g vs / Helv Tf 13 0 g. The
33 matches
Mail list logo