Re: Open PDF in Safari with image annotation

2023-06-13 Thread Tilman Hausherr
I don't see any problem, but I never created a form object from scratch. The PDRectangle(1,1) looks unusual but might still work, I remember that there is some math when forms are rendered. Your image isn't displayed, it's probably a non-inline attachment. I don't have Safari. A solution wou

Re: form fields names and values of some signed PDF

2023-06-13 Thread Tilman Hausherr
Hi, Please share the PDF. (upload to sharehoster) I also recommend to use getFieldTree() instead of getFields() but your approach is also correct. Maybe your file has only field annotations and not the actual fields, this happens sometimes. Tilman On 14.06.2023 01:49, Bruno Jullien wrote: Hi,

form fields names and values of some signed PDF

2023-06-13 Thread Bruno Jullien
Hi, I am trying to get the form field names and values of some signed PDF (tried with several PDF files) and I cannot see them when using getChildren() below. I only see the signature field!!! this is the OUTPUT i get from the code below: FullyQualifiedName: ENVELOPEID_47C2241C2E9B492B892DA48

Re: [Bug] (Radio) Buttons can not be printed in a merged PDF

2023-06-13 Thread sahy...@fileaffairs.de
it took a little longer than anticipated to look at the files. First some explanation about Need Appearances. Normally a PDF should have the visual state of the form fields generated so that when a reading application views the PDF the visual appearance can be drawn. Need Appearances being set t

Open PDF in Safari with image annotation

2023-06-13 Thread Frédéric Ravetier
Hello, I am using PDFBox to add an image as an annotation into a PDF. When I open the PDF into Safari (macOS) the width of the image is reduced (the image does not look like it should be) [image: LoremIpsum_Test_simple_2_pages-testA_pdf.png] This is the PDF : https://drive.google.com/file/d/1lP6v

RE: Should I close PDPageContentStream in try-finally if I already close PDocument ?

2023-06-13 Thread Masseau Olivier
The thing is that I am doing a code review of a large code base and I see that developpers forgot to close the PDPageContentStream in thousands of places. They only closed the PDocument. That's way I would like to know if it is strictly necessary or not when the PDocument is closed, as the devs