Skip to content

Section links and named destinations #180

Answered by lgsndbox
lgsndbox asked this question in Q&A
Discussion options

You must be logged in to vote

To answer:

"When you create a QuestPDF SectionLink, does that produce an Annotation of type Link whose /Dest value type is a name (and not an explicit Destination, such as [22 0 R /Fit]?"

I simply tested it.

Indeed, adding a section creates a Named Destination, and the referring SectionLink creates an Annotation of type Link that uses as the /Dest value the name of the section. This is good!

Is this behavior guaranteed? or is it an implementation detail that may change?

If this behavior is guaranteed, it should be possible to use Named Destinations not created by QuestPDF, and have QuestPDF SectionLink use them, given the corresponding Name is known at the QuestPDF Document creation time.

I…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MarcinZiabek
Comment options

@lgsndbox
Comment options

Answer selected by lgsndbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants