Re: Signed PDF with non-encrypted headers causes issue in PDFBox 2.0.9

2018-04-24 Thread Tilman Hausherr
I had a quick look... yes the document info is unencrypted which is incorrect. EncryptMeta is false but this applies only to XMP metadata streams. Tilman Am 24.04.2018 um 12:48 schrieb Evert-Jan de Bruin: Hello, For my project I have to merge PDF files together. This usually works fine, bu

Re: how to attach an image as annotation to PDF file?

2018-04-24 Thread Tilman Hausherr
Assuming you don't mean an electronic signature, the best would be a rubberstamp annotation. To include the image you'd need to create an appearance stream, which is quite tricky. See CreateVisibleSignature2.createVisualSignatureTemplate in the source code download. Although that one is about s

how to attach an image as annotation to PDF file?

2018-04-24 Thread JZ Q
Hi everyone, I need to attach image (not text) of initials and signature to certain field or position in the pdf file. Do you know how to do it? Take the following document as example, at the bottom of the form, there are places the users can put initial and signatures. How to add images (jpg, gi

Signed PDF with non-encrypted headers causes issue in PDFBox 2.0.9

2018-04-24 Thread Evert-Jan de Bruin
Hello, For my project I have to merge PDF files together. This usually works fine, but it does not always work with digitally signed PDF files. Simply a load() of the document will already fail with InvalidBlockSizeException. Here is an example document: https://ufile.io/mgshz I went into the