Page

Overview

Page is a class in Aspose.PDF FOSS for C++.

Page labels (e.g., Roman numerals, custom prefixes) are managed through PageLabel and PageLabelCollection classes.

This class provides 28 methods for working with Page objects in C++ programs. Available methods include: AddImage, Annotations, ArtBox, Artifacts, BleedBox, CropBox, GetPageRect, MediaBox, Number, Page, Paragraphs, Rect, and 5 additional methods. All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package. Accessor methods: Page.

Accessor Methods

NameTypeAccessDescription
PagePageReadGets the page.

Methods

SignatureDescription
Page()PageCalls Page on this Page instance.
Page()Page
Page()
Page()
~Page()Calls ~Page on this Page instance.
Number()std::int64_tCalls Number on this Page instance.
Rect()RectangleCalls Rect on this Page instance.
Rect(value: Rectangle)Calls Rect(value) on this Page instance.
MediaBox()RectangleCalls MediaBox on this Page instance.
MediaBox(value: Rectangle)Calls MediaBox(value) on this Page instance.
CropBox()RectangleCalls CropBox on this Page instance.
CropBox(value: Rectangle)Calls CropBox(value) on this Page instance.
TrimBox()RectangleCalls TrimBox on this Page instance.
TrimBox(value: Rectangle)Calls TrimBox(value) on this Page instance.
BleedBox()RectangleCalls BleedBox on this Page instance.
BleedBox(value: Rectangle)Calls BleedBox(value) on this Page instance.
ArtBox()RectangleCalls ArtBox on this Page instance.
ArtBox(value: Rectangle)Calls ArtBox(value) on this Page instance.
Rotate()RotationCalls Rotate on this Page instance.
Rotate(value: Rotation)Calls Rotate(value) on this Page instance.
GetPageRect(isMediaBox: bool)RectangleCalls GetPageRect(isMediaBox) on this Page instance.
SetPageSize(width: double, height: double)Sets the page size value.
AddImage(imageFile: std::string, rect: Rectangle)boolCalls AddImage(imageFile, rect) on this Page instance.
AddImage(imageStream: std::vector<std::byte>, imageRect: Rectangle, autoAdjustRectangle: bool)Calls AddImage(imageStream, imageRect, autoAdjustRectangle) on this Page instance.
Annotations()Annotations::AnnotationCollectionCalls Annotations on this Page instance.
Paragraphs()Aspose::Pdf::ParagraphsCalls Paragraphs on this Page instance.
Resources()Aspose::Pdf::ResourcesCalls Resources on this Page instance.
Artifacts()Aspose::Pdf::ArtifactCollectionCalls Artifacts on this Page instance.

See Also