Aspose.PDF FOSS for Go

API reference for Aspose.PDF FOSS for Go. 215 public types organized by module.

Core API

ClassDescription
AbsorbedCellAbsorbedCell is one logical grid position.
AbsorbedRowAbsorbedRow is one logical table row.
AbsorbedTableAbsorbedTable is one recognized table.
BmpDeviceBmpDevice renders a page to BMP.
BookletBindingBookletBinding selects the binding edge of a booklet.
BookletOptionsBookletOptions configures Booklet imposition.
BorderInfoBorderInfo describes a border drawn around a table or cell.
BorderSideBorderSide is a bitmask selecting which sides of a rectangular border are drawn.
ButtonAppearanceButtonAppearance configures a push button’s rich appearance: separate captions for the normal / rollover / down states, an optional icon image, and face/border/text colours.
ButtonFieldButtonField is a push button — action only, no value semantics.
ButtonIconPositionButtonIconPosition 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.
CellCell is a single cell within a Row.
CheckboxFieldCheckboxField is a checkbox with on/off state.
ChoiceOptionChoiceOption is one option of a ComboBoxField or ListBoxField.
ColorColor represents an RGBA color with values in [0, 1].
ComboBoxFieldComboBoxField is a single-select dropdown choice field.
DateFieldDateField is a text field with a JavaScript date-format action and a format mask (e.g.
DocumentDocument is a PDF document.
DocumentInfoDocumentInfo contains document information from the PDF Info dictionary.
EmbeddedFileEmbeddedFile is one attachment: a /Filespec dictionary with an embedded stream.
EmbeddedFilesEmbeddedFiles is the document’s collection of attached (embedded) files — the /Catalog/Names/EmbeddedFiles name tree (ISO 32000-1 §7.11.4).
FieldField is the common interface implemented by every concrete form field type (TextBoxField, CheckboxField, RadioButtonField, etc.).
FieldStyleFieldStyle is the visual styling applied to a form field’s widget(s).
FigureAltFigureAlt is a /Figure structure element that has no alternate text, paired with the image it brackets (when resolvable).
FileSelectBoxFieldFileSelectBoxField is a text field whose value is a file path (FileSelect flag), used to attach a local file on submit.
FloatSideFloatSide selects which edge a floated box hugs while text wraps around it.
FloatingBoxFloatingBox is a positioned content container (Tier 2 of the flow model): a box with an optional border, background and padding that lays its own content (paragraphs, headings, images, lists) inside its width.
FlowFlow is a document generator that lays content out top-to-bottom and paginates automatically — the “flow” counterpart to the Rectangle-based drawing API.
FlowOptionsFlowOptions configures a Flow.
FontFont is implemented by standard 14 fonts and embedded TTF fonts.
FormForm is the document’s AcroForm view.
FormFieldTypeFormFieldType identifies the kind of form field.
GifDeviceGifDevice renders a page to GIF.
GradientGradient is a fill that varies colour across a shape: either a LinearGradient or a RadialGradient.
GradientStopGradientStop is one colour stop in a gradient, positioned at Offset (0 at the gradient’s start, 1 at its end).
HAlignHAlign specifies horizontal text alignment within a rectangle.
HTMLModeHTMLMode selects how SaveHTML / WriteHTML represents page text.
HTMLSaveOptionsHTMLSaveOptions configures SaveHTML / WriteHTML.
ImageImage holds an extracted image with its encoded data and metadata.
ImageColorSpaceImageColorSpace describes the original color space of the image in the PDF.
ImageFormatImageFormat describes the output format of an extracted image.
ImageInfoImageInfo holds metadata about an image found on a page without decoding pixel data.
ImageToDocumentOptionsImageToDocumentOptions controls page sizing for ImageToDocument.
JSONExportOptionsJSONExportOptions controls (*Form).ExportJSON / WriteJSON.
JavaScriptCollectionJavaScriptCollection is the document-level JavaScript store, backed by the /Catalog/Names/JavaScript name tree (ISO 32000-1 §7.7.4 / §8.5.1).
LayerLayer is one Optional Content Group (OCG) in the document.
LineCapLineCap is the /J line cap style per ISO 32000-1 §8.4.3.3 Table 54.
LineJoinLineJoin is the /j line join style per ISO 32000-1 §8.4.3.4 Table 55.
LineStyleLineStyle describes how a stroked path is drawn.
LinearGradientLinearGradient interpolates colour along the line from (X1, Y1) to (X2, Y2).
ListBoxFieldListBoxField is a single- or multi-select list choice field.
MarginInfoMarginInfo describes margins or padding in points: Top / Right / Bottom / Left.
NUpOptionsNUpOptions configures NUp imposition.
NUpOrderNUpOrder controls the order in which source pages fill the grid cells of an N-up sheet.
NumberFieldNumberField is a text field with a JavaScript number-format action, so viewers display and validate the value as a formatted number.
NumberFormatOptionsNumberFormatOptions configures a NumberField’s display formatting (maps to Acrobat’s AFNumber_Format).
OptimizationOptionsOptimizationOptions selects which reductions Document.Optimize applies.
OptimizationResultOptimizationResult reports what Document.Optimize changed.
OptimizeImageOptionsOptimizeImageOptions controls image optimization behavior.
PagePage is a live view of a single page within a Document.
PageFormatPageFormat describes a page size in points (1/72 inch).
PageLabelRangePageLabelRange describes a contiguous run of pages that share a numbering style.
PageLabelStylePageLabelStyle is the numbering style applied within a PageLabelRange.
PageRangePageRange specifies an inclusive range of pages (1-based).
PageSizePageSize holds the width and height of a PDF page in points (1/72 inch).
PasswordBoxFieldPasswordBoxField is a text field whose input is masked (Password flag).
PathPath 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).
PngDevicePngDevice renders a page to PNG at a fixed resolution.
RadialGradientRadialGradient interpolates colour from the focal point (FX, FY) out to the circle centred at (CX, CY) with radius R.
RadioButtonFieldRadioButtonField is a group of mutually exclusive options.
RadioButtonOptionFieldRadioButtonOptionField is one of the option widgets inside a RadioButtonField.
RadioItemRadioItem describes one widget inside a radio group.
RectangleRectangle represents a PDF rectangle [llx, lly, urx, ury] in points (1/72 inch).
RenderOptionsRenderOptions controls page rasterization.
ReplaceOptionsReplaceOptions tunes how ReplaceText matches the search text.
ResolutionResolution is a rendering resolution in DPI.
RichTextBoxFieldRichTextBoxField is a text field that carries a rich-text value (RichText flag + /RV) in addition to its plain /V.
RotationAngleRotationAngle represents a valid PDF page rotation in clockwise degrees.
RowRow is a single row within a Table.
SVGSVG is the pre-parsed SVG document.
SVGFontResolverSVGFontResolver maps an SVG font-family + style to a pdf.Font.
SVGSaveOptionsSVGSaveOptions configures SaveSVG / WriteSVG.
SearchOptionsSearchOptions tunes how SearchText interprets the query.
ShapeStyleShapeStyle combines a stroke (LineStyle) with an optional fill color.
SignOptionsSignOptions configures a digital signature.
StructElementStructElement is a node in the logical structure tree.
StructTypeStructType is a PDF standard structure type (ISO 32000-1 §14.8.4), used as the /S value of a structure element.
TableTable is a transient builder for a tabular layout drawn onto a Page.
TableAbsorberTableAbsorber detects tables on a page and exposes their logical structure (epic pdf-go-w4ht).
TaggedContentTaggedContent is the facade for authoring a Tagged PDF (ISO 32000-1 §14.8): it owns the document’s logical structure tree and sets the catalog marks PDF/UA requires.
TextBoxFieldTextBoxField is a single- or multi-line text input.
TextExtractOptionsTextExtractOptions configures ExtractText.
TextExtractionModeTextExtractionMode selects how ExtractText orders the extracted text.
TextFragmentTextFragment represents a contiguous run of text with uniform font.
TextLineTextLine represents a horizontal line of text fragments at a common Y position.
TextMatchTextMatch is a single occurrence located by SearchText.
TextStyleTextStyle defines reusable text formatting properties.
TilingPatternTilingPattern is a repeating fill (PatternType 1, ISO 32000-1 §8.7.3.1): a small cell of content tiled across whatever shape it fills.
VAlignVAlign specifies vertical text alignment within a rectangle.
ValidationIssueValidationIssue describes a single problem found in a PDF file.
ValidationReportValidationReport is returned by Validate and summarises the structural integrity of a PDF.
XFormXForm is a reusable Form XObject (ISO 32000-1 §8.10) — a self-contained content stream (with its own resources) that can be placed on any number of pages and positions with a single Do invocation.
XMPMetadataXMPMetadata is the document’s XMP packet modelled as common schema fields plus a list of arbitrary Custom properties.
XMPPropertyXMPProperty is a single simple (string-valued) XMP property in an arbitrary namespace.
XlsxRecognitionModeXlsxRecognitionMode selects what lands in the workbook.
XlsxSaveOptionsXlsxSaveOptions configures SaveXlsx / WriteXlsx.

Ai

ClassDescription
AIClientAIClient is the contract every copilot consumes: one call, one chat completion.
APIErrorAPIError is returned when the AI endpoint answers with a non-2xx status.
ChatCopilotChatCopilot answers questions about a document, keeping conversation history.
ChatOptionsChatOptions configures a ChatCopilot.
CompletionRequestCompletionRequest describes one chat-completion call.
CompletionResponseCompletionResponse is the model’s reply.
ImageDescriptionCopilotImageDescriptionCopilot describes images with a vision model.
ImageDescriptionOptionsImageDescriptionOptions configures an ImageDescriptionCopilot.
LLMOCREngineLLMOCREngine recognizes text by sending the page image to a vision-capable chat model.
LLMOCROptionsLLMOCROptions configures the vision-model OCR engine.
MessageMessage is a single chat message.
MessageImageMessageImage is an inline image attached to a message, sent as a base64 data: URL.
OCRBoxOCRBox is a rectangle in image pixel space: origin at the top-left corner, Y increasing downward (the usual raster convention — distinct from PDF user space on purpose).
OCREngineOCREngine recognizes text on one page image.
OCRLineOCRLine is one physical text line.
OCRResultOCRResult is the recognized content of one page image.
OCRWordOCRWord is word-level detail within a line, for engines that provide it.
OcrCopilotOcrCopilot recognizes text on scanned pages.
OcrOptionsOcrOptions configures an OcrCopilot.
OpenAIClientOpenAIClient talks to an OpenAI-compatible chat-completions endpoint using only the standard library.
OpenAIClientOptionsOpenAIClientOptions configures NewOpenAIClient.
SummaryCopilotSummaryCopilot produces document summaries with an AI model.
SummaryOptionsSummaryOptions configures a SummaryCopilot.
TextRecognitionResultTextRecognitionResult is the recognized text of one processed page.
UsageUsage reports token counts when the provider returns them.

Annotations

ClassDescription
ActionAction is the common interface implemented by every concrete action type.
ActionTypeActionType identifies the kind of action attached to an annotation (typically a LinkAnnotation’s /A entry).
AnnotationAnnotation is the common interface implemented by every concrete annotation type.
AnnotationCollectionAnnotationCollection is the live, ordered set of annotations attached to a single page.
AnnotationTypeAnnotationType identifies the kind of annotation.
BorderEffectBorderEffect controls the /BE/S entry per ISO 32000-1 §12.5.4 Table 167.
BorderStyleBorderStyle controls the /BS dict for drawing annotations per ISO 32000-1 §12.5.4 Table 168.
CaretAnnotationCaretAnnotation marks a point of text insertion or deletion, drawn as an upward caret ("^") filled with the annotation colour.
CaretSymbolCaretSymbol is the /Sy entry of a Caret annotation per ISO 32000-1 §12.5.6.11 Table 180 — an optional symbol drawn together with the caret to associate it with an editing action.
CircleAnnotationCircleAnnotation draws an elliptical annotation.
FileAttachmentAnnotationFileAttachmentAnnotation embeds a file in the document and shows an icon at the annotation’s /Rect.
FileAttachmentIconFileAttachmentIcon names per ISO 32000-1 §12.5.6.15 Table 178.
FreeTextAnnotationFreeTextAnnotation displays text directly on the page, rendered into /AP/N using an embedded font.
FreeTextIntentFreeTextIntent per ISO 32000-1 §12.5.6.6 /IT entry.
GenericAnnotationGenericAnnotation is the catch-all surface for /Subtype values this release does not yet model (Stamp, FreeText, Ink, etc.).
GoToActionGoToAction navigates to a page within the same document.
GoToURIActionGoToURIAction opens a URI in the user’s default handler (typically a web browser).
HighlightAnnotationHighlightAnnotation marks a region with semi-transparent highlight color.
ImageStampImageStamp overlays a raster image (PNG or JPEG), stretched to fill Rect.
InkAnnotationInkAnnotation draws a series of free-form strokes — typically used to represent handwritten ink.
JavaScriptActionJavaScriptAction holds a JavaScript snippet attached to an annotation.
LineAnnotationLineAnnotation draws a straight line between two points, with optional line endings on each end (arrows, circles, etc.
LineEndingStyleLineEndingStyle is one of the 10 line-ending shapes per ISO 32000-1 §12.5.6.7 Table 176, used in /Line annotations’ /LE entry.
LinkAnnotationLinkAnnotation is a clickable region.
LinkHighlightModeLinkHighlightMode controls the visual feedback when the link is activated by the user (the /H entry per ISO 32000-1 §12.5.6.5).
MarkupParagraphMarkupParagraph is a run of consecutive lines forming one paragraph.
MarkupSectionMarkupSection is a column of paragraphs (left-to-right across the page).
NamedActionNamedAction triggers a built-in viewer command (FirstPage, Print, …).
NamedActionTypeNamedActionType identifies one of the standard viewer commands supported by /Named actions per ISO 32000-1 §12.6.4.11.
PageMarkupPageMarkup is the structured text of one page.
PageNumberStampPageNumberStamp stamps the page number (and optionally the total), formatted by Format.
PdfPageStampPdfPageStamp overlays (or underlays) a page from another PDF document as a stamp — the source page is imported once as a Form XObject and drawn into the stamp’s Rect, scaled to fit while preserving aspect ratio, positioned by HAlign/VAlign, and honoring Opacity, RotateAngle and Background.
PointPoint is a single point in PDF user-space coordinates.
PolygonAnnotationPolygonAnnotation draws a closed polygon through a list of vertices, with a stroked border and optional interior fill.
PolylineAnnotationPolylineAnnotation draws an open polyline through a list of vertices, with a stroked border, optional line endings at the first and last vertex, and optional interior fill for closed endings.
QuadPointQuadPoint is one quadrilateral within a markup annotation’s /QuadPoints array.
RedactAnnotationRedactAnnotation marks regions for redaction.
ResetFormActionResetFormAction resets named form fields to their /DV defaults.
SquareAnnotationSquareAnnotation draws a rectangular annotation with stroked border and optional interior fill.
SquigglyAnnotationSquigglyAnnotation draws a wavy underline under text (typically used for spell-check style hints).
StampStamp is content overlaid on (or behind) a page: a TextStamp, an ImageStamp, or a PageNumberStamp.
StampAnnotationStampAnnotation is a rubber-stamp annotation.
StampNameStampName names per ISO 32000-1 §12.5.6.13 Table 184.
StrikeOutAnnotationStrikeOutAnnotation draws a horizontal line through text.
SubmitFormActionSubmitFormAction submits form field values to a URL.
SubmitFormFlagsSubmitFormFlags is the /Flags bitfield for a /SubmitForm action per ISO 32000-1 Table 237.
TextAnnotationTextAnnotation is a sticky-note annotation.
TextIconTextIcon names per ISO 32000-1 §12.5.6.4 Table 172, used in /Subtype /Text annotations’ /Name entry.
TextStampTextStamp overlays a line (or wrapped block) of text.
UnderlineAnnotationUnderlineAnnotation draws a horizontal line under text.
WidgetAnnotationWidgetAnnotation is the read-only view of a form widget annotation surfaced through AnnotationCollection.

Compliance

ClassDescription
PDFAFormatPDFAFormat identifies a PDF/A conformance level.
PDFAIssuePDFAIssue describes a single PDF/A conformance violation.
PDFAValidationReportPDFAValidationReport is returned by (*Document).ValidatePDFA.
PDFUAIssuePDFUAIssue describes a single PDF/UA (accessibility) conformance violation.
PDFUAValidationReportPDFUAValidationReport is returned by (*Document).ValidatePDFUA.

Conversion

ClassDescription
DocRecognitionModeDocRecognitionMode selects the reconstruction algorithm — mirrors Aspose.PDF for .NET’s DocSaveOptions.RecognitionMode.
DocSaveOptionsDocSaveOptions configures SaveDocx / WriteDocx.
EpubSaveOptionsEpubSaveOptions configures SaveEpub / WriteEpub.
MarkdownOptionsMarkdownOptions configures Markdown rendering.
MarkdownSaveOptionsMarkdownSaveOptions configures SaveMarkdown / WriteMarkdown.
TiffDeviceTiffDevice renders pages to TIFF.

Images

ClassDescription
JpegDeviceJpegDevice renders a page to JPEG.

Navigation

ClassDescription
NamedDestinationNamedDestination wraps a name reference into the document’s NamedDestinations collection.
NamedDestinationsNamedDestinations is a name-to-destination map per ISO 32000-1 §12.3.2.3.

Security

ClassDescription
CertifyPermissionCertifyPermission is the DocMDP permission level of a certification signature (ISO 32000-1 §12.8.2.2 Table 254).
EncryptionAlgorithmEncryptionAlgorithm selects the cipher and security-handler revision used by (*Document).SetEncryption.
EncryptionOptionsEncryptionOptions bundles every knob that controls how a document is encrypted when saved.
PermissionsPermissions controls what a viewer allows on an encrypted PDF.
SignatureAppearanceSignatureAppearance controls the visible signature block’s content and styling.
SignatureVerificationSignatureVerification is the result of verifying one digital signature.

Structure

ClassDescription
DestinationDestination is the common interface for all explicit destinations.
DestinationFitDestinationFit — [page /Fit].
DestinationFitBDestinationFitB — [page /FitB].
DestinationFitBHDestinationFitBH — [page /FitBH top].
DestinationFitBVDestinationFitBV — [page /FitBV left].
DestinationFitHDestinationFitH — [page /FitH top].
DestinationFitRDestinationFitR — [page /FitR left bottom right top].
DestinationFitVDestinationFitV — [page /FitV left].
DestinationTypeDestinationType identifies the destination flavor.
DestinationXYZDestinationXYZ — [page /XYZ left top zoom].
OutlineItemCollectionOutlineItemCollection represents an outline entry and the collection of its children.
TOCEntryTOCEntry is one line of a table of contents: a title, an indent level (0 = top level), and the page it points at.
TOCOptionsTOCOptions controls how a table of contents is rendered.

See Also

 English