Hi Tilman, That is the call I'm making, yes. Oooh. Interesting! I've just tried with the command line version documented here: https://pdfbox.apache.org/3.0/commandline.html
and THAT works nicely. I can create a new PDF with specific pages overlaid. So it IS capable of doing what I want, but only from the command line. But it's the same JAR. Confusing! Which kinda leads me to think I'm doing something specifically wrong in the Lucee/CFML version. Hmm. I'm unsure how to make a verbose snapshot. I think I'll try using Maven (https://docs.lucee.org/recipes/maven.html) rather than the direct JAR and see if that produces a different result. Thanks for your help thus far. Will come back with some results if I can make it do what I want! -- Mike ________________________________ From: Tilman Hausherr <thaush...@t-online.de> Sent: 10 July 2025 19:46 To: users@pdfbox.apache.org <users@pdfbox.apache.org> Subject: Re: Problem with using Overlay - specific pages [You don't often get email from thaush...@t-online.de. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] Here's what I could do: I'd create a verbose snapshot version that will tell whether it was called at all and what pages were handled. I assume you're using this call: public PDDocument overlay(Map<Integer, String> specificPageOverlayMap) The output would look like this (that's from the unit test) specificPageOverlayMap: {1=pdfbox\src\test\resources\org\apache\pdfbox\multipdf\rot0.pdf, 2=pdfbox\src\test\resources\org\apache\pdfbox\multipdf\rot90.pdf, 3=pdfbox\src\test\resources\org\apache\pdfbox\multipdf\rot180.pdf, 4=pdfbox\src\test\resources\org\apache\pdfbox\multipdf\rot270.pdf} specificPageOverlayLayoutPageMap: {1=org.apache.pdfbox.multipdf.Overlay$LayoutPage@7f5c94e6, 2=org.apache.pdfbox.multipdf.Overlay$LayoutPage@761fc90d, 3=org.apache.pdfbox.multipdf.Overlay$LayoutPage@493f56b, 4=org.apache.pdfbox.multipdf.Overlay$LayoutPage@3620308c} processing page: 0 processing page: 0, done processing page: 1 processing page: 1, done processing page: 2 processing page: 2, done processing page: 3 processing page: 3, done Tilman On 7/10/2025 7:27 PM, Michael Horne wrote: > Sorry, yes that would help. > > I'm on 3.0.5 and I'm using the app JAR file. > > I can't really - my Java knowledge is appalling. I could maybe cobble it > together but not sure it'd be very accurate! > > Mike > > Sent from Outlook for Android<https://aka.ms/AAb9ysg> > ________________________________ > From: Tilman Hausherr <thaush...@t-online.de> > Sent: Thursday, July 10, 2025 6:09:26 PM > To: users@pdfbox.apache.org <users@pdfbox.apache.org> > Subject: Re: Problem with using Overlay - specific pages > > [You don't often get email from thaush...@t-online.de. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > > Hi, > > Please tell what PDFBox version you're using. Are you able to simulate > the calls without using Lucee and what happens then? Are you using a jar > file or are you using maven? > > Tilman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org