Re: Modifying the order of AcroForm Fields and/or associated Widget Annotations...

2024-01-31 Thread sahy...@fileaffairs.de
added note: as Tabs is defined on a Page level it's clear that this addresses the Annotation and not the form field as a form field can have multiple representations on the same and/or multiple pages. The visual part of the form field is defined by the annotation. The form field itself i.e. witho

Re: Modifying the order of AcroForm Fields and/or associated Widget Annotations...

2024-01-31 Thread sahy...@fileaffairs.de
Dear Dwayne, for a generic solution reordering the fields won't help. A field can be nested inside a field tree but let's say one of the nested fields is on top of the page and the other is on the bottom of the page. Now another nested structure might have fields in between. You can not move fiel

Re: Modifying the order of AcroForm Fields and/or associated Widget Annotations...

2024-01-31 Thread Tilman Hausherr
On 31.01.2024 16:50, Dwayne Parks wrote: I'll post them on a shared file site and provide the links here, if it would be helpful.  Do you have any recommendations for such a site?  Thanks! In the past I used filedropper.com but it doesn't seem to work anymore. Try google drive if you have a g

Re: Loading a PDF using InputStream

2024-01-31 Thread Tilman Hausherr
On 31.01.2024 16:19, Lars Juel Jensen wrote: Well that's my problem.. It works with PDFBox2 with reasonable sized files. When it comes to the big ones it crashes.. So reading the migration guide for PDFBox3.0 I thought I saw some light in the tunnel as it says I can create my own reader and strea

Re: Modifying the order of AcroForm Fields and/or associated Widget Annotations...

2024-01-31 Thread Dwayne Parks
A quick note... I'm going to try to get a sample PDF that I can upload and a basic code sample (using PDFBox 3.0.1) together when I have time... and I'll post them on a shared file site and provide the links here, if it would be helpful. Do you have any recommendations for such a site? Thank

Re: Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
Well that's my problem.. It works with PDFBox2 with reasonable sized files. When it comes to the big ones it crashes.. So reading the migration guide for PDFBox3.0 I thought I saw some light in the tunnel as it says I can create my own reader and stream cache. I see that I can provide my own Random

Re: Filling a form advice

2024-01-31 Thread Nicola Farina
Hi Tilman thanks for answering so fast! Actually showTextWithPositioning does the job! I had a bug in my code so it was not called! I realised it just after sending the email sorry! I am using an OCRB font which is fixed size I think The PDF is not an acroform document, is just an image converted

Re: Fwd: Help with Incorrect Identity-H Mapping

2024-01-31 Thread Gino G
Thank you so much! I'm using Gradle, so simply adding this passage was enough to fix this issue. compileJava.options.encoding = 'UTF-8' tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } Am Mi., 31. Jan. 2024 um 04:41 Uhr schrieb Tilman Hausherr < thaush...@t-online.d

RE: Re: pdfbox 3.x, is it recommended to include jai-imageio when I am already using twelvemonkeys?

2024-01-31 Thread C PF
Thanks for the reply. I will keep them in my pom then. On 2024/01/31 14:54:35 Tilman Hausherr wrote: > You should use all of these (including the jai-imageio-corewhich is > required for jpeg2000) except the one for tiff. That one isn't needed > but you can if you are creating TIFF files. It is not

Re: Filling a form advice

2024-01-31 Thread Tilman Hausherr
Hello Nicola, Please upload your PDF to a sharehoster, attachments are removed. showTextWithPositioning is for horizontal positioning of individual glyphs, it is the "way to specify a string with some, I don't know, offset between the chars". (or vertical, if it is a vertical font) it might be

Re: pdfbox 3.x, is it recommended to include jai-imageio when I am already using twelvemonkeys?

2024-01-31 Thread Tilman Hausherr
You should use all of these (including the jai-imageio-corewhich is required for jpeg2000) except the one for tiff. That one isn't needed but you can if you are creating TIFF files. It is not needed for decoding CCITT content in PDF files. (However our CCITT encoder / decoder is copied from the

Re: Loading a PDF using InputStream

2024-01-31 Thread Tilman Hausherr
On 31.01.2024 14:48, Lars Juel Jensen wrote: This creates another problem for me. I am running PDFBox in a kubernetes cluster on premises with limited resources. I can not setup persistent volume claims nor ephemeral volumes, and I can not change how my pods are started. I have limited resources

pdfbox 3.x, is it recommended to include jai-imageio when I am already using twelvemonkeys?

2024-01-31 Thread C PF
I am already using twelvemonkeys tiff and jpeg along with pdfbox 3.0.1 com.twelvemonkeys.imageio imageio-jpeg 3.10.1 com.twelvemonkeys.imageio imageio-tiff 3.10.1 In that case, is it still

Filling a form advice

2024-01-31 Thread Nicola Farina
Hi I need to produce a kind of form filled document like the attached one. My application receives a print request payload with all the fields of a kind of "payment postal order". Then a PDF document, containing the layout, is loaded. Then I fill it using PDFBox primitives, basically a sequence of

Re: Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
This creates another problem for me. I am running PDFBox in a kubernetes cluster on premises with limited resources. I can not setup persistent volume claims nor ephemeral volumes, and I can not change how my pods are started. I have limited resources and an emptyDir that is mounted on /tmp where t

Re: Loading a PDF using InputStream

2024-01-31 Thread Tilman Hausherr
On 31.01.2024 09:50, Lars Juel Jensen wrote: In PDFBox2 I could do: PDDocument.load(inputStream, MemoryUsageSetting.setupTempFileOnly()) But there is no equivalent to this in PDFBox3. How do I read a PDF from an inputstream? |Loader.loadPDF(new RandomAccessReadBuffer(inputStream), IOUtils.c

Loading a PDF using InputStream

2024-01-31 Thread Lars Juel Jensen
In PDFBox2 I could do: PDDocument.load(inputStream, MemoryUsageSetting.setupTempFileOnly()) But there is no equivalent to this in PDFBox3. How do I read a PDF from an inputstream?