mihir patel
mihir patel

Reputation: 191

How to add bookmark using MigraDoc?

I want to add Bookmark in my PDF using MigraDoc.

For example: two images on a single page.

           1. Images1
           2. Images2**

and the same name bookmark will generate.

If I click on image1 bookmark that image will be shown to me. Remember both images are on single page.

Upvotes: 2

Views: 1202

Answers (1)

MigraDoc creates bookmarks automatically for headings.

To create bookmarks without visible text on the page, you can create headings with a font size of e.g. 0.0001 and white colour.

There is one drawback: up to PDFsharp 1.50 beta 1, these bookmarks jump to the correct page, but not the correct area on the page. So with two images on one page, the bookmarks will not work as intended by the OP.

Upvotes: 1

Related Questions