Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id: 27035
Status: rejected
Priority: 0/
Queue: PDF-API2

Owner: alfredreibenschuh [...]
Requestors: RBS [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Can't insert a page in to a PDF with 8 pages
Download (untitled) / with headers
text/plain 646b
The below script adds the 9th page at the end instead of between pages 1 and 2. Change the number 8 to a 7 and the insertion occurs properly. This seems to be a glitch in PDF::API2::Basic::PDF::Pages::add_page() in the code that keeps there from being too many pages in one container; look for "if ($#path <= 0 && $m >= 7)". use PDF::API2; $pdf = PDF::API2->new; my $font = $pdf->corefont('Times-Roman'); sub mark { my ( $page ) = @_; my $t = $page->text; $t->font( $font, 10 ); $t->translate( 20, 40 ); $t->text( $pdf->pages ); } for (1..8) { mark $pdf->page; } mark $pdf->page(2); $pdf->saveas( "foo.pdf" );
please check the CVS version. if the CVS version works for you, i'll make a new release.
wont fix bugs releated to pdf modification

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to