mesaglam / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Bookmarks not appearing in PDF #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It seems that bookmarks don't appear in the output PDF.  The following code:

          var pdf:PDF;      
          pdf = new PDF();
          pdf.setDisplayMode (Display.FULL_PAGE,  Layout.SINGLE_PAGE);

          pdf.addPage();
          pdf.setFont( FontFamily.ARIAL );
          pdf.addBookmark("This is my bookmark",0,10,0,0.5);
          pdf.addText("My Text",1,10);  
      ...   

Will not produce the bookmark icon in the Adobe Reader that allows you to
view bookmarks.

It is possible that this is a case of me not using the API correctly.

Original issue reported on code.google.com by marc.hug...@gmail.com on 3 Sep 2007 at 12:57

GoogleCodeExporter commented 9 years ago
Was this ever resolved? I am having some problems implementing bookmarks as 
well:

pdf.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE, 
PageMode.USE_OUTLINES);
var newPage:Page = new Page (Orientation.PORTRAIT, Unit.POINT, Size.LETTER);
pdf.addPage(newPage);
pdf.addBookmark(entry.entryName, 0, 0, myColor);

This does not give an "Outline" view when I open the PDF.
Am I doing something wrong? Could you post an example of how this is actually
supposed to work?

Original comment by Lnhay...@gmail.com on 3 Feb 2009 at 10:22