Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfBookmarkEditSession

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

Transactional add/remove/rename/move/nest/retarget/rebuild surface for existing bookmarks.

Inheritance

  • object
  • PdfBookmarkEditSession

Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public PdfBookmarkNode Add(string title, int pageNumber, string? parentId = null, double? destinationTop = null, bool expanded = true) #

Adds a bookmark at the root or below a parent id.

Parameters

title string required
pageNumber int required
parentId string? = null optional
destinationTop double? = null optional
expanded bool = true optional
public PdfBookmarkEditSession Move(string id, string? parentId = null, int index = -1) #

Moves a bookmark to a root or nested sibling position.

Parameters

id string required
parentId string? = null optional
index int = -1 optional
public PdfBookmarkEditSession RebuildFromHeadings() #

Replaces bookmarks with the source document's inferred heading hierarchy.

public PdfBookmarkEditSession Remove(string id) #

Removes a bookmark and its descendants.

Parameters

id string required
public PdfBookmarkEditSession Rename(string id, string title) #

Renames a bookmark.

Parameters

id string required
title string required
Retarget 2 overloads
public PdfBookmarkEditSession Retarget(string id, int pageNumber, double? destinationTop = null) #

Retargets a bookmark to a page and optional top coordinate.

Parameters

id string required
pageNumber int required
destinationTop double? = null optional
public PdfBookmarkEditSession Retarget(string id, int pageNumber, PdfOpenActionDestinationMode destinationMode, double? destinationTop = null, double? destinationLeft = null, double? destinationBottom = null, double? destinationRight = null, double? destinationZoom = null) #

Retargets a bookmark using an explicit viewer destination mode and coordinates.

Parameters

id string required
pageNumber int required
destinationMode OfficeIMO.Pdf.PdfOpenActionDestinationMode required
destinationTop double? = null optional
destinationLeft double? = null optional
destinationBottom double? = null optional
destinationRight double? = null optional
destinationZoom double? = null optional

Properties

public IReadOnlyList<PdfBookmarkNode> Roots { get; } #

Current top-level bookmark nodes.