Class PdfAction
- Namespace
- PDiffy
- Assembly
- PDiffy.dll
An action the document runs, such as going to a page or opening a web address. Type is null when the PDF gives only a destination to go to, with no action.
public sealed record PdfAction : IEquatable<PdfAction>
- Inheritance
-
PdfAction
- Implements
- Inherited Members
Properties
Destination
The page and view it goes to: in this document for a destination on its own or a GoTo action, or in the other file for a GoToR or GoToE action. Null for other actions, or when it can't be read.
public PdfDestination? Destination { get; init; }
Property Value
Target
What the action acts on that Type doesn't say: a Named action's name; the fields a ResetForm or Hide action names, joined with commas, each a full name (or for a Hide, another annotation's /NM, or its type in parentheses), after "except:" when a ResetForm resets every field but those or "show:" when a Hide shows them; or the first 16 hex digits of a JavaScript action's script hash. "(unnamed)" for a field without a name, "(unknown)" for a reference to nothing and "(none)" for an empty list. Null otherwise.
public string? Target { get; init; }
Property Value
Type
The action's type, such as "GoTo", "URI" or "JavaScript", which PdfActionTypes lists; null for a destination on its own.
public string? Type { get; init; }
Property Value
Uri
The web address a URI action opens; null for other actions.
public string? Uri { get; init; }