Skip Menu |
 

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

Report information
The Basics
Id: 27033
Status: resolved
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: RBS [...] cpan.org
Cc:
AdminCc:

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



Subject: page not processed by openpage()
Download (untitled) / with headers
text/plain 219b
The below script issues an error "page not processed by openpage"; not sure if this is a docs issue or a functional defect. use PDF::API2; $pdf1 = PDF::API2->new; $pdf1->page; PDF::API2->new->importpage( $pdf1, 1 );
ROTFLMHO write a real script and you dont get this error.
Subject: Re: [rt.cpan.org #27033] page not processed by openpage()
Date: Thu, 10 May 2007 05:47:51 -0400
To: bug-PDF-API2 [...] rt.cpan.org
From: Barrie Slaymaker <barries [...] slaysys.com>
Download (untitled) / with headers
text/plain 454b
That script is as "real" as any short-as-possible reproduction is. This is a problem I bumped in to when trying to work around issue #27035 by copying pages from one PDF to another and creating the new ("inserted") page at the right point in the copy. From your response, it sounds like this is not a supported operation, yet that use of importpage() seems to be compatible with the documentation, so I'm curious as to what makes it unsupported?
Download (untitled) / with headers
text/plain 178b
to rectfy this: you can only import a page that has 'content'. in your 'script' the page has no content hence the import operation is not supported and entirely unreasonable.
Subject: Re: [rt.cpan.org #27033] page not processed by openpage()
Date: Thu, 10 May 2007 19:29:00 -0400
To: bug-PDF-API2 [...] rt.cpan.org
From: Barrie Slaymaker <barries [...] slaysys.com>
Download (untitled) / with headers
text/plain 613b
Show quoted text
> you can only import a page that has 'content'...[so] the import
operation is not supported and entirely unreasonable. Perhaps that should be mentioned in the docs as I can see leaving a page intentionally blank. Anyhoo, here's one with content that also fails, however uncommenting the saveas() & open() works around the issue. use PDF::API2; $pdf1 = PDF::API2->new; $t = $pdf1->page->text; $t->font( $pdf1->corefont('Times-Roman'), 10 ); $t->translate( 20, 20 ); $t->text( $pdf1->pages ); #$pdf1->saveas( "foo.pdf" ); #$pdf1 = PDF::API2->open( "foo.pdf" ); PDF::API2->new->importpage( $pdf1, 1 );
i have corrected the documentation in CVS that importing is only possible with onfile pdfs.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.