Closed vadim-160102 closed 3 months ago
Thank you very much for fixing this. If you are ever in the Boston area NBER would be happy to treat you to lunch. We use PDF::API2 (which I will now transition to the patched version of PDF::Builder) to add the first 2 pages of all our working papers, see https://www.nber.org/papers
Hi, looks like off-by-one error at
https://metacpan.org/dist/PDF-API2/source/lib/PDF/API2/Basic/PDF/Pages.pm#L183
where it should be "0", not "1" (rather, condition should be
== -1
, to the same effect). Currently,$pdf->page(1);
adds a new page at the end forsample.pdf
attached there. Alternatively, seePerl-PDF-Builder/issues/203
for a sample -- more interesting tree => curiouser bugs for positions other than "1". No bugs with fix as proposed