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

Report information
The Basics
Id:
24872
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ricci [...] dfb.unipi.it
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.57
Fixed in:
(no value)



Subject: $pdf->outlines does not work on an open document with bookmarks
When opening an existing PDF document with bookmarks, it is not possible to traverse the bookmarks structure. I use $pdf->outlines to fetch the bookmarks tree, then try to add an item using $outlines->outline(). This fails with the message: Can't locate object method "outline" via package "PDF::API2::Basic::PDF::Objind" at ./generate_pdfx.pl line 23. See attachments for a sample PDF file and a perl script that shows the problem. My system: PDF-API2-0.57 perl v5.8.7 built for cygwin-thread-multi-64int CYGWIN_NT-5.1 i686 Cygwin Regards Manuel
Subject: test.pl
#!/usr/bin/perl use strict; use PDF::API2; my $output = PDF::API2->open('test.pdf'); my $otls=$output->outlines(); print "Document 1: $otls\n"; my $section = $otls->outline(); $section->title("Test"); $output->end;
Subject: test.pdf

Message body not shown because it is not plain text.

works as designed


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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