开发者

is there a way to add a bookmark that is different than the text in the pdf document

开发者 https://www.devze.com 2023-01-22 06:46 出处:网络
using migradoc, i see how开发者_如何学C you can add a bookmark automatically by doing this: Paragraph p1 = document.LastSection.AddParagraph(\"Project Updates\", \"Heading2\");

using migradoc, i see how开发者_如何学C you can add a bookmark automatically by doing this:

Paragraph p1 = document.LastSection.AddParagraph("Project Updates", "Heading2");

but what if i want to add a bookmark that says "Updates" but the text in the paragraph header says "My Project Updates"

is that possible?


When I needed bookmarks without visible text, I used a hack: white text with a very small font size (0.01).

I also created a style "Heading1WithoutBookmark" that is a clone of Heading1 but with

style.ParagraphFormat.OutlineLevel = OutlineLevel.BodyText;

This allows me to have the bookmark point to a page that only contains an image while the text is showing on the following page. It also allows to have different text on the page and in the bookmark.

0

精彩评论

暂无评论...
验证码 换一张
取 消