Skip Menu |

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

Report information
The Basics
Id: 121912
Status: open
Priority: 0/
Queue: PDF-API2

People
Owner: Nobody in particular
Requestors: futuramedium [...] yandex.ru
Cc:
AdminCc:

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



Subject: Can't modify Outlines in existing document (+ maybe fixed)
use strict; use warnings; use PDF::API2; my $doc = PDF::API2-> open( 'sample.pdf' ); $doc-> outlines -> outline -> dest( $doc-> openpage( 1 )) -> title( '1st page' ); $doc-> saveas( 'sample+.pdf' ); Can't locate object method "outline" via package "PDF::API2::Basic::PDF::Objind" at outline.pl line 7. This particular document has empty outlines structure (as opposed to not having it at all), but script will also fail if there's any existing outlines. To fix, insert after line 2334 in API2.pm: bless $obj, 'PDF::API2::Outlines'; $obj-> {' apipdf'} = $self-> { pdf }; $obj-> {' api' } = $self;
Subject: sample.pdf
Download sample.pdf
application/pdf 120.1k

Message body not shown because it is not plain text.

FYI, this is fixed in PDF::Builder