Aspose.PDF FOSS for C++

API reference for Aspose.Pdf FOSS for C++ v1.0.0. 244 public types organized by module.

Core API

ClassDescription
ArtifactClass with 14 methods.
ArtifactCollectionClass with 7 methods and 1 property.
BaseParagraphClass with 23 methods and 1 property.
BitmapInfoBitmapInfo enables creation of raw bitmap images with specified pixel format, width, height, and pixel data, supporting image handling without external dependencies.
BmpDeviceClass with 1 method.
BorderInfoClass with 10 methods.
CellClass with 27 methods.
CellsClass with 9 methods.
ColorClass with 147 methods.
DeviceThe Device base class provides a virtual destructor, ensuring proper cleanup of derived raster‑device objects such as PngDevice or JpegDevice.
DocumentDocument metadata can be read via Document.Info() and the accessor methods Title(), Author(), Creator(), Producer(), Subject(), and Keywords().
DocumentDeviceClass with 4 methods.
DocumentInfoClass with 24 methods and 1 property.
DocumentPrivilegeClass with 34 methods.
EmbeddedFileCollectionClass with 9 methods.
FileSpecificationFileSpecification objects allow setting metadata for embedded files, including MIME type, description, Unicode name, and compression via the Encoding property.
FloatingBoxClass with 12 methods.
FontThe Font class lets developers query whether a font is embedded in the PDF and whether it is subsetted, enabling compliance checks for PDF/A.
FontRepositoryClass with 2 methods.
GraphInfoClass with 25 methods.
HyperlinkClass with 6 methods and 1 property.
ImageDeviceClass with 10 methods.
JpegDeviceClass with 1 method.
LoadOptionsClass with 3 methods.
MarginInfoMarginInfo allows precise control of page margins with double-precision getters and setters for left, right, top, and bottom values.
MarginsClass with 8 methods.
MetadataMetadata class implements a dictionary-like interface with Add(key, value), Remove(key), and TryGetValue(key, value) for managing XMP metadata entries.
NamedDestinationCollectionClass with 6 methods and 1 property.
OutlineCollectionClass in the Pdf CPP API.
OutlineItemCollectionClass with 18 methods.
OutlinesClass with 12 methods.
PagePage labels (e.g., Roman numerals, custom prefixes) are managed through PageLabel and PageLabelCollection classes.
PageCollectionThe PageCollection class provides methods to add a new blank page, insert a page at a specific position, and delete pages by number or range.
PageDevicePageDevice.Process(page, outputFileName) can render a page directly to a file path.
PageLabelPageLabel.StartingValue() gets or sets the numeric start for a page label sequence.
PageLabelCollectionPageLabelCollection.GetLabel(pageIndex) retrieves the PageLabel assigned to a specific page.
PageSizePageSize.Width() and Height() get or set the page dimensions, while IsLandscape() indicates orientation.
ParagraphsClass with 6 methods.
PngDeviceClass with 3 methods.
PointClass with 6 methods.
PositionThe Position class provides XIndent and YIndent getters and setters to fine‑tune the horizontal and vertical offset of annotations.
Rectangle-Aspose_PdfClass with 28 methods.
RenderingOptionsClass with 26 methods.
ResolutionResolution stores horizontal and vertical DPI via X() and Y() getters and setters.
ResourcesClass with 3 methods and 1 property.
RowClass with 23 methods.
RowsRows and Row classes provide a table model for building PDF tables with per‑cell styling, borders, and padding.
SvgLoadOptionsSvgLoadOptions allows SVG files to be imported with optional page‑size adjustment via the AdjustPageSize property.
TableThe Table class lets developers construct PDF tables with full control over rows, column widths, borders, cell padding, and default text state.
TextAbsorberClass with 6 methods and 1 property.
TextBuilderClass with 2 methods.
TextDeviceClass with 3 methods.
TextFragmentClass with 7 methods.
TextFragmentAbsorberClass with 4 methods.
TextFragmentCollectionClass with 2 methods.
TextFragmentStateClass with 1 method.
TextParagraphClass with 18 methods.
TextStateThe TextState class provides getters and setters for font, font size, foreground/background/stroking colors, and text decorations such as underline, strike‑out, subscript, and superscript.
TiffDeviceClass with 11 methods.
TiffSettingsClass with 13 methods.
WatermarkArtifactClass in the Pdf CPP API.
XImageXImage exposes the pixel dimensions of an image via Width() and Height() methods.
XImageCollectionXImageCollection manages multiple XImage objects, providing Add, Replace, Delete, and Clear operations.
XmpValueXmpValue provides conversion helpers: ToString(), ToInteger(), ToDouble(), ToArray(), and type‑query methods such as IsString() and IsArray().

Enumerations

EnumerationDescription
AFRelationshipEnum with 7 members.
BorderSideEnum with 7 members.
ColorDepthEnum with 5 members.
CompressionTypeEnum with 5 members.
CryptoAlgorithmEnum with 4 members.
FileEncodingEnum with 2 members.
FormPresentationModeEnum with 2 members.
HorizontalAlignmentEnum with 6 members.
NumberingStyleEnum with 6 members.
PageCoordinateTypePageCoordinateType enum values MediaBox and CropBox let developers choose which page rectangle is used for coordinate calculations.
PasswordTypeEnum with 4 members.
PdfFormatEnum with 27 members.
PermissionsEnum with 8 members.
RotationRotation enum provides four orientation values: None, on90, on180, on270.
ShapeTypeEnum with 3 members.
VerticalAlignmentEnum with 4 members.

Annotations

ClassDescription
AnnotationClass with 36 methods.
AnnotationCollectionClass with 11 methods.
AnnotationSelectorClass with 35 methods and 1 property.
BleedMarkAnnotationBleedMarkAnnotation.Accept(visitor) implements the visitor pattern, allowing external visitor objects to process the annotation without exposing its internal structure.
BorderBorder appearance can be customized by setting its Width, Style, Effect, EffectIntensity, and corner radii via the Border class methods.
CaretAnnotationClass with 5 methods.
CharacteristicsClass with 3 methods.
CircleAnnotationClass with 1 method.
ColorBarAnnotationClass with 3 methods.
CommonFigureAnnotationClass with 5 methods.
CornerPrinterMarkAnnotationClass with 2 methods.
DefaultAppearanceClass with 8 methods.
ExplicitDestinationClass with 3 methods.
FileAttachmentAnnotationFileAttachmentAnnotation.File() gets or sets the attached file via a FileSpecification object, allowing embedding of external resources in a PDF.
FitBExplicitDestinationClass with 1 method.
FitBHExplicitDestinationClass with 2 methods.
FitBVExplicitDestinationClass with 2 methods.
FitExplicitDestinationClass with 1 method.
FitHExplicitDestinationClass with 2 methods.
FitRExplicitDestinationClass with 5 methods.
FitVExplicitDestinationClass with 2 methods.
FreeTextAnnotationClass with 23 methods.
GoToActionClass with 4 methods.
GoToURIActionClass with 4 methods.
HighlightAnnotationClass with 1 method.
InkAnnotationInkAnnotation represents free‑hand ink strokes; its InkList property holds a StrokeList that can be read or replaced.
JavascriptActionJavascriptAction encapsulates a JavaScript snippet attached to PDF objects; the script can be retrieved or updated via Script() getter/setter.
LineAnnotationClass with 25 methods.
LinkAnnotationLinkAnnotation enables clickable areas in a PDF that can trigger a PdfAction or navigate to a named destination.
MarkupAnnotationMarkupAnnotation provides methods to set review state, opacity, title, and rich text for comment‑type annotations.
MovieAnnotationMovieAnnotation lets you embed a video file in a PDF, with properties for title, poster flag, aspect ratio, and rotation.
NamedActionClass with 3 methods.
NamedDestinationClass with 2 methods.
PageInformationAnnotationClass with 1 method.
PdfActionPdfAction.GetECMAScriptString() returns the JavaScript code attached to a PDF action, enabling inspection or modification of interactive scripts.
PolyAnnotationClass with 11 methods.
PolygonAnnotationClass with 1 method.
PolylineAnnotationClass with 1 method.
PopupAnnotationClass with 5 methods.
PrinterMarkAnnotationPrinterMarkAnnotation can insert printer marks such as trim, bleed, registration, or colour bars into an entire document or a single page via AddPrinterMarks.
RedactionAnnotationRedactionAnnotation lets you permanently remove content while optionally overlaying custom text, fill colour, border colour and font size.
RegistrationMarkAnnotationClass with 3 methods.
RichMediaAnnotationRichMediaAnnotation enables embedding of Flash or other rich media with activation events and custom variables.
ScreenAnnotationClass with 3 methods.
SoundAnnotationClass with 3 methods.
SquareAnnotationClass with 1 method.
SquigglyAnnotationClass with 1 method.
StampAnnotationClass with 5 methods.
StrikeOutAnnotationClass with 1 method.
SubmitFormActionClass with 5 methods.
TextAnnotationClass with 5 methods.
TextMarkupAnnotationClass with 4 methods.
TextStyleClass with 9 methods.
TrimMarkAnnotationTrimMarkAnnotation and UnderlineAnnotation both support the visitor pattern via an Accept method that forwards the annotation to a visitor object.
UnderlineAnnotationClass with 1 method.
WatermarkAnnotationWatermarkAnnotation enables adding a visual watermark to a PDF page and lets developers control its transparency.
WidgetAnnotationWidgetAnnotation provides access to AcroForm field attributes such as ReadOnly, Required, Exportable, and DefaultAppearance.
XYZExplicitDestinationXYZExplicitDestination supplies explicit page view coordinates via Left(), Top() and Zoom() methods.

Enumerations

EnumerationDescription
AnnotationFlagsAnnotationFlags enum includes a Locked flag that, when set, prevents further modifications to the annotation’s properties.
AnnotationStateEnum with 7 members.
AnnotationStateModelEnum with 3 members.
AnnotationTypeEnum with 33 members.
BorderEffectEnum with 2 members.
BorderStyleEnum with 5 members.
CapStyleEnum with 2 members.
CaptionPositionEnum with 2 members.
CaretSymbolEnum with 2 members.
ColorsOfCMYKEnum with 4 members.
ExplicitDestinationTypeEnum with 8 members.
FileIconEnum with 4 members.
FreeTextIntentEnum with 4 members.
HighlightingModeEnum with 5 members.
JustificationEnum with 3 members.
LineEndingEnum with 10 members.
LineIntentEnum with 3 members.
PolyIntentEnum with 4 members.
PredefinedActionEnum with 71 members.
PrinterMarkCornerPositionEnum with 4 members.
PrinterMarkSidePositionEnum with 4 members.
PrinterMarksKindEnum with 7 members.
ReplyTypeReplyType enum distinguishes between Reply, Group, and Undefined reply categories.
RichTextFontStylesEnum with 4 members.
SoundIconEnum with 2 members.
StampIconEnum with 14 members.
TextAlignmentEnum with 3 members.
TextIconEnum with 15 members.

Drawing

ClassDescription
CircleClass with 7 methods.
EllipseClass with 9 methods.
GraphClass with 16 methods.
LineClass with 3 methods.
Rectangle-Aspose_Pdf_DrawingClass with 11 methods.
ShapeClass with 4 methods.

Facades

ClassDescription
AlignmentTypeClass with 4 methods.
BookmarkClass with 35 methods.
BookmarksBookmarks can be organized hierarchically; use Bookmark.ChildItem() or Bookmark.ChildItems() to access nested Bookmarks and set properties such as Action, Destination, and display flags like BoldFlag and ItalicFlag.
FacadeFacade.BindPdf overloads accept either a file path string (srcFile) or an existing Aspose::Pdf::Document (srcDoc) to load PDF content.
FormEditorClass with 53 methods.
FormFieldFacadeClass with 30 methods and 26 properties.
PdfAnnotationEditorPdfAnnotationEditor can import annotations from FDF or XFDF files and flatten them into the page content, removing interactive elements.
PdfBookmarkEditorPdfBookmarkEditor.CreateBookmarkOfPage(title, pageNumber) adds a new bookmark that points to the specified page.
PdfContentEditorPdfContentEditor.ReplaceText(srcText, destText) searches the entire document and replaces matching strings, returning true when at least one replacement occurs.
PdfConverterClass with 37 methods.
PdfExtractorPdfExtractor extracts text by calling ExtractText() and then GetText(outputFile) to write the extracted plain‑text to a file.
PdfFileEditorClass with 72 methods.
PdfFileInfoPdfFileInfo provides getters and setters for standard metadata fields such as Author, Creator, and custom keys via GetMetaInfo(name) and SetMetaInfo(name, value).
PdfFileSecurityClass with 20 methods.
PdfFileSignatureClass with 41 methods.
PdfFileStampClass with 26 methods and 8 properties.
PdfPageEditorClass with 28 methods and 16 properties.
PdfXmpMetadataClass with 15 methods.
SaveableFacadeSaveableFacade offers a simple interface to persist PDF objects to a file path via Save(destFile).
SignatureNameSignatureName.HasSignature() returns true if the PDF contains a detached PKCS#7 signature, and ToString() provides a textual representation of the signature name.
VerticalAlignmentTypeVerticalAlignmentType offers static factory methods Top(), Center(), and Bottom() to obtain alignment objects, and ToString() to obtain their textual representation.

Enumerations

EnumerationDescription
AlgorithmEnum with 2 members.
AutoRotateModeEnum with 3 members.
BlendingColorSpaceEnum with 4 members.
DataTypeEnum with 6 members.
DefaultMetadataPropertiesEnum with 9 members.
EncodingTypeEnum with 7 members.
FieldTypeEnum with 13 members.
FontStyleEnum with 16 members.
ImageMergeModeEnum with 3 members.
KeySizeEnum with 3 members.
PositioningModeEnum with 3 members.
PropertyFlagEnum with 4 members.
StampTypeEnum with 2 members.
SubmitFormFlagEnum with 6 members.
WordWrapModeWordWrapMode enum defines two text wrapping strategies: Default and ByWords.

Forms

ClassDescription
BarcodeFieldClass with 6 methods.
ButtonFieldClass with 11 methods.
CheckboxFieldClass with 16 methods.
ChoiceFieldClass with 14 methods.
ComboBoxFieldClass with 5 methods.
DateFieldClass with 4 methods.
DocMDPSignatureClass with 1 method.
ExternalSignatureClass in the Pdf CPP API.
FieldField.Recalculate() recomputes the value of a form field and returns true on success.
FileSelectBoxFieldClass with 1 method.
FormForm text box fields can have a barcode added programmatically by calling AddBarcode(code) on a TextBoxField instance.
IconFitIconFit allows fine‑grained control of form field scaling; developers can set ScalingReason, ScalingMode, and leftover margins before rendering.
ListBoxFieldClass with 3 methods.
NumberFieldClass with 3 methods.
OptionClass with 8 methods.
OptionCollectionClass with 9 methods.
PKCS1Class with 1 method.
PKCS7Class with 1 method.
PKCS7DetachedClass with 1 method.
PasswordBoxFieldClass with 1 method.
RadioButtonFieldClass with 7 methods.
RadioButtonOptionFieldClass with 5 methods.
RichTextBoxFieldRichTextBoxField provides a form field that stores rich text with styling, justification, and formatted value.
SignatureSignature objects allow creation and verification of detached PKCS#7 signatures on PDF documents.
SignatureCustomAppearanceClass with 37 methods.
SignatureFieldClass with 2 methods.
TextBoxFieldClass with 15 methods.
XFAXFA provides access to XML‑based XFA form data; calling FieldNames() yields a list of all field identifiers present in the XFA document.

Enumerations

EnumerationDescription
BoxStyleEnum with 6 members.
DocMDPAccessPermissionsThe DocMDPAccessPermissions enum defines the allowed modifications on a signed PDF: NoChanges prevents any edits, FillingInForms allows form filling, and AnnotationModification permits annotation changes.
FormTypeEnum with 3 members.
IconCaptionPositionEnum with 7 members.
ScalingModeScalingMode enum defines Proportional and Anamorphic scaling options for image transformations.
ScalingReasonScalingReason enum indicates when scaling should be applied: Always, IconIsBigger, IconIsSmaller, or Never.
SubjectNameElementsEnum with 7 members.
SymbologyEnum with 3 members.

See Also