Method Add
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
Add(string, PdfPage, double?, double?)
Adds a top-level bookmark.
public PdfOutlineItem Add(string title, PdfPage page, double? top = null, double? left = null)
Parameters
titlestringThe text shown in the bookmarks pane; any Unicode text.
pagePdfPageThe page to jump to; it must belong to this document.
topdouble?The y coordinate to scroll to; null with
leftalso null shows the whole page.leftdouble?The x coordinate to scroll to; null keeps the current horizontal position.
Returns
- PdfOutlineItem
The new bookmark, to which child bookmarks can be added.
Exceptions
- ArgumentException
pagebelongs to a different document.