I’m using xhtmlrenderer (Also known as Flying Saucer) with iText to convert HTML to PDF. How would I create bookmarks with this? Does someone with have a small example?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It seems bookmarks were added in R6, but the user guide only gives them a passing reference. with a TODO to the author to add an example later.
Searching the forums, I found this example:
So it seems that adding bookmarks is no more than declaring the bookmarks in the
<head>and referencing them as anchors in the<body>.This should work will with your existing XHTML->PDF conversion without requiring any code changes.