Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > PDF Outlines / Bookmarks (im lost)

Reply
Thread Tools

PDF Outlines / Bookmarks (im lost)

 
 
Peter Wilson
Guest
Posts: n/a
 
      07-16-2003
Hi

I am having some problems modifying a pdf created by "Acrobat PDFWriter"
from word 2000 in perl using the PDF::API2 module.

When I create the document it looks fine and every thing is on the correct
page, after creation I then would like to add Bookmarks (outlines) to the
document, I have opened other documents (not created by word created by
myself via the PDF::API2 module) and the code below works anyone got any
ideas?

Error:

Can't locate object method "outline" via package "PDF::API2:DF::Objind" at
bookmark.pl line 10.

Code:

use PDF::API2;
$pdf = PDF::API2->open('Document2.pdf');
$page = $pdf->openpage(9);
$otls = $pdf->outlines;
$otl=$otls->outline();
$otl->title('ERL');
$otl->dest($page,-fit=>1);
$subotl=$otl->outline();
$subotl->title('sometext');
$subotl->dest($page,-fit=>1);
$pdf->saveas('Document99.pdf');

Im a bit lost

Thanks

Peter


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox is no longer naming outlines elements? dorayme HTML 8 02-13-2007 10:02 PM
Help for designing outlines in c language Manmeet Mittal C Programming 11 07-18-2006 06:21 PM
TDK outlines 50GB Blu-ray disk plans. Allan DVD Video 1 03-19-2005 02:50 AM
Nested Outlines <dl>? paul HTML 16 01-03-2005 08:58 AM
What's the story with CSS outlines? Leif K-Brooks HTML 9 11-28-2003 12:13 PM



Advertisments