Skip Menu |

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

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

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

Bug Information
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
Download test.pdf
application/pdf 16.6k

Message body not shown because it is not plain text.

works as designed