empira / PDFsharp

PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
https://docs.pdfsharp.net/
Other
398 stars 91 forks source link

Add optional point argument to AddDocumentLink #102

Closed arrgh1 closed 2 months ago

arrgh1 commented 3 months ago

I was adding table of contents to a generated document and realized that PDFSharp's document links only go to a destination page, but PDF supports going to specific locations within that page. Proposed is the addition of an optional argument to include a target point if desired.

StLange commented 2 months ago

I added your code to PDFsharp and put it to our feature todo list for MigraDoc.