Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-09 Thread Bart Klein Ikink
t; xmpbox > ${pdfbox.version} > > > org.apache.pdfbox > preflight > ${pdfbox.version} > > > > Van: Bart Klein Ikink > Verzonden: vrijdag 6 december 2024 17:23 > Aan:users@pdfbox.apache.org > Onderwerp: Re: P

Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-08 Thread Tilman Hausherr
light ${pdfbox.version} Van: Bart Klein Ikink Verzonden: vrijdag 6 december 2024 17:23 Aan:users@pdfbox.apache.org Onderwerp: Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3 Thank you. Due to security restrictions I have t

Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-08 Thread Bart Klein Ikink
rsion} Van: Bart Klein Ikink Verzonden: vrijdag 6 december 2024 17:23 Aan: users@pdfbox.apache.org Onderwerp: Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3 Thank you. Due to security restrictions I have to ask permission. Hopefully, I can work on m

Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-06 Thread Bart Klein Ikink
Thank you. Due to security restrictions I have to ask permission. Hopefully, I can work on monday. Van: Tilman Hausherr Verzonden: vrijdag 6 december 2024 13:39 Aan: users@pdfbox.apache.org Onderwerp: Re: PDPage.getTrimBox() not working after migrating from

Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-06 Thread Tilman Hausherr
It's now fixed, a snapshot build is available here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.4-SNAPSHOT/ Tilman On 06.12.2024 12:17, Tilman Hausherr wrote: Hi, Thanks for reporting, I created https://issues.apache.org/jira/browse/PDFBOX-5919 . Li

Re: PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-06 Thread Tilman Hausherr
Hi, Thanks for reporting, I created https://issues.apache.org/jira/browse/PDFBOX-5919 . Likely a mistake in refactoring, the javadoc is clear that it should return the cropbox if trimbox doesn't exist. Sadly I can't fix it right now because of network problems (either from my ISP or from Ap

PDPage.getTrimBox() not working after migrating from pdfbox 2.0.26 to 3.0.3

2024-12-06 Thread Bart Klein Ikink
I have a test where I do: try (PDDocument document = Loader.loadPDF(new ClassPathResource("/A5.pdf").getFile())) { PDPage page = document.getPage(0); assertTrue(isStandardPageSize(page.getMediaBox(), A5)); assertTrue(isStandardPageSize(page.getCropBox(), A5)); assertTrue(isStanda