Thank you for the feedback. 

I wanted to try a workaround, where i'd have 3 reference pages, that i would 
dupe in the document internally

While researching if there is a different way than using the importpage 
Function i stumbled upon this: 
https://copyprogramming.com/howto/pdfbox-how-to-clone-a-page

"Encountering an issue with large result sets; upon opening the pdf, the first 
two pages appear perfect, however, the third page causes Acrobat to error out. 
The template page is visible, but the report data is missing. Suspecting the 
issue lies with the aforementioned code, any suggestions would be greatly 
appreciated. Thank you."

And it seems you were able to help him:

"I was able to resolve my query with the assistance of Tilman Hausherr, who 
guided me towards the correct path."

So for now i'll try this approach of internally copying the pdf pages in the 
template, filling them, and when done deleting the three rerference pages at 
the start.
With the code given from that webpage.

Mit freundlichen Grüssen
 
Fabian Zünd
ICT Techniker EFZ  / Modul Programmierer
 
 

 
 
Industriestrasse 19
CH-9450 Altstätten SG
 
+41 71 595 10 60
+41 77 261 16 21
 
 
www.si-solutions.ch
zu...@si-solutions.ch
 


-----Ursprüngliche Nachricht-----
Von: Tilman Hausherr <thaush...@t-online.de> 
Gesendet: Freitag, 23. Februar 2024 11:43
An: users@pdfbox.apache.org
Betreff: Re: AW: Importing landscape format and portrait format oriented pages 
into the same PDF causes PDF corruption

On 21.02.2024 16:07, Fabian Zünd SI-Solutions Gmbh wrote:
> Hello I manged to try it all out with the Most current build 
> pdfbox-app-3.0.2-20240221.085334-88.jar
>
> The issue persists.
>
> Maybe i'm doing the copying of the page completely wrong?

Hi,

You did nothing wrong. Sadly, this is the problem that I mentioned in my last 
mail. I've created https://issues.apache.org/jira/browse/PDFBOX-5775

Tilman

Reply via email to