Aspose.PDF FOSS for Go
API reference for Aspose.Pdf FOSS for Go. 123 public types organized by module.
Core API
| Class | Description |
|---|---|
Action | Action is the common interface implemented by every concrete action type. |
ActionType | ActionType identifies the kind of action attached to an annotation (typically a LinkAnnotation’s /A entry). |
Annotation | Annotation is the common interface implemented by every concrete annotation type. |
AnnotationCollection | AnnotationCollection is the live, ordered set of annotations attached to a single page. |
AnnotationType | AnnotationType identifies the kind of annotation. |
BmpDevice | BmpDevice renders a page to BMP. |
BorderEffect | BorderEffect controls the /BE/S entry per ISO 32000-1 §12.5.4 Table 167. |
BorderInfo | BorderInfo describes a border drawn around a table or cell. |
BorderSide | BorderSide is a bitmask selecting which sides of a rectangular border are drawn. |
BorderStyle | BorderStyle controls the /BS dict for drawing annotations per ISO 32000-1 §12.5.4 Table 168. |
ButtonAppearance | ButtonAppearance configures a push button’s rich appearance: separate captions for the normal / rollover / down states, an optional icon image, and face/border/text colours. |
ButtonField | ButtonField is a push button — action only, no value semantics. |
ButtonIconPosition | ButtonIconPosition controls how a push button lays out its icon and caption — the /MK /TP entry per ISO 32000-1 §12.5.6.19 Table 189. |
Cell | Cell is a single cell within a Row. |
CheckboxField | CheckboxField is a checkbox with on/off state. |
ChoiceOption | ChoiceOption is one option of a ComboBoxField or ListBoxField. |
CircleAnnotation | CircleAnnotation draws an elliptical annotation. |
Color | Color represents an RGBA color with values in [0, 1]. |
ComboBoxField | ComboBoxField is a single-select dropdown choice field. |
Destination | Destination is the common interface for all explicit destinations. |
DestinationFit | DestinationFit — [page /Fit]. |
DestinationFitB | DestinationFitB — [page /FitB]. |
DestinationFitBH | DestinationFitBH — [page /FitBH top]. |
DestinationFitBV | DestinationFitBV — [page /FitBV left]. |
DestinationFitH | DestinationFitH — [page /FitH top]. |
DestinationFitR | DestinationFitR — [page /FitR left bottom right top]. |
DestinationFitV | DestinationFitV — [page /FitV left]. |
DestinationType | DestinationType identifies the destination flavor. |
DestinationXYZ | DestinationXYZ — [page /XYZ left top zoom]. |
Document | Document is a PDF document. |
DocumentInfo | DocumentInfo contains document information from the PDF Info dictionary. |
EncryptionAlgorithm | EncryptionAlgorithm selects the cipher and security-handler revision used by (*Document).SetEncryption. |
EncryptionOptions | EncryptionOptions bundles every knob that controls how a document is encrypted when saved. |
Field | Field is the common interface implemented by every concrete form field type (TextBoxField, CheckboxField, RadioButtonField, etc.). |
FieldStyle | FieldStyle is the visual styling applied to a form field’s widget(s). |
FileAttachmentAnnotation | FileAttachmentAnnotation embeds a file in the document and shows an icon at the annotation’s /Rect. |
FileAttachmentIcon | FileAttachmentIcon names per ISO 32000-1 §12.5.6.15 Table 178. |
Font | Font is implemented by standard 14 fonts and embedded TTF fonts. |
Form | Form is the document’s AcroForm view. |
FormFieldType | FormFieldType identifies the kind of form field. |
FreeTextAnnotation | FreeTextAnnotation displays text directly on the page, rendered into /AP/N using an embedded font. |
FreeTextIntent | FreeTextIntent per ISO 32000-1 §12.5.6.6 /IT entry. |
GenericAnnotation | GenericAnnotation is the catch-all surface for /Subtype values this release does not yet model (Stamp, FreeText, Ink, etc.). |
GifDevice | GifDevice renders a page to GIF. |
GoToAction | GoToAction navigates to a page within the same document. |
GoToURIAction | GoToURIAction opens a URI in the user’s default handler (typically a web browser). |
Gradient | Gradient is a fill that varies colour across a shape: either a LinearGradient or a RadialGradient. |
GradientStop | GradientStop is one colour stop in a gradient, positioned at Offset (0 at the gradient’s start, 1 at its end). |
HAlign | HAlign specifies horizontal text alignment within a rectangle. |
HighlightAnnotation | HighlightAnnotation marks a region with semi-transparent highlight color. |
Image | Image holds an extracted image with its encoded data and metadata. |
ImageColorSpace | ImageColorSpace describes the original color space of the image in the PDF. |
ImageFormat | ImageFormat describes the output format of an extracted image. |
ImageInfo | ImageInfo holds metadata about an image found on a page without decoding pixel data. |
ImageToDocumentOptions | ImageToDocumentOptions controls page sizing for ImageToDocument. |
InkAnnotation | InkAnnotation draws a series of free-form strokes — typically used to represent handwritten ink. |
JavaScriptAction | JavaScriptAction holds a JavaScript snippet attached to an annotation. |
JpegDevice | JpegDevice renders a page to JPEG. |
LineAnnotation | LineAnnotation draws a straight line between two points, with optional line endings on each end (arrows, circles, etc. |
LineCap | LineCap is the /J line cap style per ISO 32000-1 §8.4.3.3 Table 54. |
LineEndingStyle | LineEndingStyle is one of the 10 line-ending shapes per ISO 32000-1 §12.5.6.7 Table 176, used in /Line annotations’ /LE entry. |
LineJoin | LineJoin is the /j line join style per ISO 32000-1 §8.4.3.4 Table 55. |
LineStyle | LineStyle describes how a stroked path is drawn. |
LinearGradient | LinearGradient interpolates colour along the line from (X1, Y1) to (X2, Y2). |
LinkAnnotation | LinkAnnotation is a clickable region. |
LinkHighlightMode | LinkHighlightMode controls the visual feedback when the link is activated by the user (the /H entry per ISO 32000-1 §12.5.6.5). |
ListBoxField | ListBoxField is a single- or multi-select list choice field. |
MarginInfo | MarginInfo describes margins or padding in points: Top / Right / Bottom / Left. |
NamedAction | NamedAction triggers a built-in viewer command (FirstPage, Print, …). |
NamedActionType | NamedActionType identifies one of the standard viewer commands supported by /Named actions per ISO 32000-1 §12.6.4.11. |
NamedDestination | NamedDestination wraps a name reference into the document’s NamedDestinations collection. |
NamedDestinations | NamedDestinations is a name-to-destination map per ISO 32000-1 §12.3.2.3. |
OptimizeImageOptions | OptimizeImageOptions controls image optimization behavior. |
OutlineItemCollection | OutlineItemCollection represents an outline entry and the collection of its children. |
Page | Page is a live view of a single page within a Document. |
PageFormat | PageFormat describes a page size in points (1/72 inch). |
PageLabelRange | PageLabelRange describes a contiguous run of pages that share a numbering style. |
PageLabelStyle | PageLabelStyle is the numbering style applied within a PageLabelRange. |
PageRange | PageRange specifies an inclusive range of pages (1-based). |
PageSize | PageSize holds the width and height of a PDF page in points (1/72 inch). |
Path | Path is a sequence of MoveTo/LineTo/CurveTo/Close operations defining an arbitrary 2D path in PDF user space (origin at page bottom-left, Y up). |
Permissions | Permissions controls what a viewer allows on an encrypted PDF. |
PngDevice | PngDevice renders a page to PNG at a fixed resolution. |
Point | Point is a single point in PDF user-space coordinates. |
QuadPoint | QuadPoint is one quadrilateral within a markup annotation’s /QuadPoints array. |
RadialGradient | RadialGradient interpolates colour from the focal point (FX, FY) out to the circle centred at (CX, CY) with radius R. |
RadioButtonField | RadioButtonField is a group of mutually exclusive options. |
RadioButtonOptionField | RadioButtonOptionField is one of the option widgets inside a RadioButtonField. |
RadioItem | RadioItem describes one widget inside a radio group. |
Rectangle | Rectangle represents a PDF rectangle [llx, lly, urx, ury] in points (1/72 inch). |
RedactAnnotation | RedactAnnotation marks regions for redaction. |
RenderOptions | RenderOptions controls page rasterization. |
ResetFormAction | ResetFormAction resets named form fields to their /DV defaults. |
Resolution | Resolution is a rendering resolution in DPI. |
RotationAngle | RotationAngle represents a valid PDF page rotation in clockwise degrees. |
Row | Row is a single row within a Table. |
SVG | SVG is the pre-parsed SVG document. |
SVGFontResolver | SVGFontResolver maps an SVG font-family + style to a pdf.Font. |
SearchOptions | SearchOptions tunes how SearchText interprets the query. |
ShapeStyle | ShapeStyle combines a stroke (LineStyle) with an optional fill color. |
SquareAnnotation | SquareAnnotation draws a rectangular annotation with stroked border and optional interior fill. |
SquigglyAnnotation | SquigglyAnnotation draws a wavy underline under text (typically used for spell-check style hints). |
StampAnnotation | StampAnnotation is a rubber-stamp annotation. |
StampName | StampName names per ISO 32000-1 §12.5.6.13 Table 184. |
StrikeOutAnnotation | StrikeOutAnnotation draws a horizontal line through text. |
SubmitFormAction | SubmitFormAction submits form field values to a URL. |
SubmitFormFlags | SubmitFormFlags is the /Flags bitfield for a /SubmitForm action per ISO 32000-1 Table 237. |
Table | Table is a transient builder for a tabular layout drawn onto a Page. |
TextAnnotation | TextAnnotation is a sticky-note annotation. |
TextBoxField | TextBoxField is a single- or multi-line text input. |
TextFragment | TextFragment represents a contiguous run of text with uniform font. |
TextIcon | TextIcon names per ISO 32000-1 §12.5.6.4 Table 172, used in /Subtype /Text annotations’ /Name entry. |
TextLine | TextLine represents a horizontal line of text fragments at a common Y position. |
TextMatch | TextMatch is a single occurrence located by SearchText. |
TextStyle | TextStyle defines reusable text formatting properties. |
TiffDevice | TiffDevice renders pages to TIFF. |
UnderlineAnnotation | UnderlineAnnotation draws a horizontal line under text. |
VAlign | VAlign specifies vertical text alignment within a rectangle. |
ValidationIssue | ValidationIssue describes a single problem found in a PDF file. |
ValidationReport | ValidationReport is returned by Validate and summarises the structural integrity of a PDF. |
WidgetAnnotation | WidgetAnnotation is the read-only view of a form widget annotation surfaced through AnnotationCollection. |
XMPMetadata | XMPMetadata is the document’s XMP packet modelled as common schema fields plus a list of arbitrary Custom properties. |
XMPProperty | XMPProperty is a single simple (string-valued) XMP property in an arbitrary namespace. |