Method Add
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
Add(string, PdfPage, double?, double?)
Adds a child bookmark under this one.
public PdfOutlineItem Add(string title, PdfPage page, double? top = null, double? left = null)
Parameters
titlestringThe text shown in the bookmarks pane.
pagePdfPageThe page to jump to; it must belong to the same document.
topdouble?The y coordinate to scroll to, or null.
leftdouble?The x coordinate to scroll to, or null.
Returns
- PdfOutlineItem
The new child bookmark.
Exceptions
- ArgumentException
pagebelongs to a different document.