Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bookmarks not appearing in PDF #4

Open
GoogleCodeExporter opened this issue Oct 22, 2015 · 1 comment
Open

Bookmarks not appearing in PDF #4

GoogleCodeExporter opened this issue Oct 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants