public enum BookmarkDestinations extends Enum<BookmarkDestinations>
Mirrors IronPdf.Bookmarks.BookmarkDestinations on the C# side. The
Enum.ordinal() of each value is what the engine expects on the wire, so
the order of entries below must match the C# enum.
Corresponds to the PDF 1.7 specification ยง12.3.2 "Explicit Destinations".
| Enum Constant and Description |
|---|
PAGE
Fit the entire destination page within the window (PDF
/Fit). |
PAGE_BOUNDS
Fit the bounding box of the destination page into the window (PDF
/FitB). |
PAGE_BOUNDS_X
Scroll to an X coordinate while fitting the bounding box height to the window
(PDF
/FitBV). |
PAGE_BOUNDS_Y
Scroll to a Y coordinate while fitting the bounding box width to the window
(PDF
/FitBH). |
PAGE_RECT
Fit the specified rectangle of the destination page into the window
(PDF
/FitR). |
PAGE_X
Scroll to a specific X coordinate on the destination page while fitting the
page height to the window (PDF
/FitV). |
PAGE_Y
Scroll to a specific Y coordinate on the destination page while fitting the
page width to the window (PDF
/FitH). |
PAGE_ZOOM
Scroll to a specific position and zoom level (PDF
/XYZ). |
| Modifier and Type | Method and Description |
|---|---|
static BookmarkDestinations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BookmarkDestinations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BookmarkDestinations PAGE
/Fit).
No additional coordinates are used.public static final BookmarkDestinations PAGE_Y
/FitH). Uses
destinationTop.public static final BookmarkDestinations PAGE_X
/FitV). Uses
destinationLeft.public static final BookmarkDestinations PAGE_ZOOM
/XYZ). Uses
destinationLeft, destinationTop, and destinationZoom.
A destinationZoom of 0 means "inherit the current zoom".public static final BookmarkDestinations PAGE_RECT
/FitR). Uses destinationLeft, destinationBottom,
destinationRight, and destinationTop.public static final BookmarkDestinations PAGE_BOUNDS
/FitB).
No additional coordinates are used.public static final BookmarkDestinations PAGE_BOUNDS_Y
/FitBH). Uses destinationTop.public static final BookmarkDestinations PAGE_BOUNDS_X
/FitBV). Uses destinationLeft.public static BookmarkDestinations[] values()
for (BookmarkDestinations c : BookmarkDestinations.values()) System.out.println(c);
public static BookmarkDestinations valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022–2026 Iron Software. All rights reserved.