Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/UglyToad.PdfPig/Annotations/Annotation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,26 @@ public class Annotation
/// </summary>
public bool HasDownAppearance => downAppearanceStream != null;

/// <summary>
/// The normal appearance stream for this annotation, if any. Each appearance is a Form XObject.
/// </summary>
public AppearanceStream? NormalAppearance => normalAppearanceStream;

/// <summary>
/// The roll-over appearance stream (shown on hover), if any.
/// </summary>
public AppearanceStream? RollOverAppearance => rollOverAppearanceStream;

/// <summary>
/// The down appearance stream (shown on click), if any.
/// </summary>
public AppearanceStream? DownAppearance => downAppearanceStream;

/// <summary>
/// The current appearance state name, if any.
/// </summary>
public string? AppearanceState => appearanceState;

/// <summary>
/// The <see cref="Annotation"/> this annotation was in reply to. Can be <see langword="null" />
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/UglyToad.PdfPig/Annotations/AppearanceStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public class AppearanceStream
/// </summary>
public bool IsStateless => statelessAppearanceStream != null;

/// <summary>
/// The stateless appearance stream, if this appearance stream is stateless.
/// </summary>
public StreamToken? StatelessAppearanceStream => statelessAppearanceStream;

/// <summary>
/// Get list of states. If this is a stateless appearance stream, an empty collection is returned.
/// </summary>
Expand Down
Loading