Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a leaf node (Page Object). More...
#include <pdfsdk/cxx/page.h>
Public Member Functions | |
| Object | GetPdfObject () const |
| Content | GetContent () const |
| bool | IsContentModified () const |
| Get the content modified flag. | |
| void | SetContentModified (bool modified=true) |
| Set the content modified flag. | |
| void | FlushModifiedContent () |
| size_t | GetPageIndex () const |
| PDRotate | GetRotate () const |
| void | SetRotate (PDRotate rotate) |
| RectF | GetCropBox () const |
| void | SetCropBox (const RectF &box) |
| RectF | GetMediaBox () const |
| void | SetMediaBox (const PDF::RectF &box) |
| RectF | GetArtBox () const |
| void | SetArtBox (const RectF &box) |
| RectF | GetBleedBox () const |
| void | SetBleedBox (const RectF &box) |
| RectF | GetTrimBox () const |
| void | SetTrimBox (const RectF &box) |
| RectF | GetPageBox () const |
| float | GetUserUnitSize () const |
| void | SetUserUnitSize (float unitSize) |
| Matrix | GetPageToDevSpaceMatrix (float zoom=1.f, PDRotate rotate=kPDRotate_0, float dpi=96) const |
| Matrix | GetDevToPageSpaceMatrix (float zoom=1.f, PDRotate rotate=kPDRotate_0, float dpi=96) const |
| RectF | GetDevSpacePageBox (float zoom=1.f, PDRotate rotate=kPDRotate_0, float dpi=96) const |
| size_t | GetNumAnnots () const |
| Annot | GetAnnot (size_t index) const |
| void | AddAnnot (Annot annot) |
| void | InsertAnnot (size_t insertAt, Annot annot) |
| void | RemoveAnnot (Annot annot) |
| void | RemoveAnnotByIndex (size_t index) |
| size_t | GetAnnotIndex (Annot annot) const |
| PageText | GetPageText () const |
| Document | GetDocument () const |
| Page (PDPage handle, bool adopt=false) noexcept | |
| Page (const Page &rhs) noexcept | |
| Page & | operator= (const Page &rhs) noexcept |
| Page (Page &&rhs) noexcept | |
| Page & | operator= (Page &&rhs) noexcept |
Represents a leaf node (Page Object).
For more information refer to the ISO 32000-2:2020 (PDF 2.0) PDF Standard section 7.7.3 Page tree.
| void PDF::Page::AddAnnot | ( | Annot | annot | ) |
Add an annotation to the page.
| annot | The annotation to add. |
| void PDF::Page::FlushModifiedContent | ( | ) |
Saves the contents of the page to a PDF stream.
| Annot PDF::Page::GetAnnot | ( | size_t | index | ) | const |
Get the annotation at the specified index.
| index | The index of the annotation. |
| size_t PDF::Page::GetAnnotIndex | ( | Annot | annot | ) | const |
Get the index of the specified annotation.
| annot | The annotation. |
| RectF PDF::Page::GetArtBox | ( | ) | const |
Get the art box of the page.
| RectF PDF::Page::GetBleedBox | ( | ) | const |
Get the bleed box of the page.
| Content PDF::Page::GetContent | ( | ) | const |
Get the content of this page.
| RectF PDF::Page::GetCropBox | ( | ) | const |
Get the crop box of the page.
| RectF PDF::Page::GetDevSpacePageBox | ( | float | zoom = 1.f, |
| PDRotate | rotate = kPDRotate_0, | ||
| float | dpi = 96 ) const |
Get the page box in device space.
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
| Matrix PDF::Page::GetDevToPageSpaceMatrix | ( | float | zoom = 1.f, |
| PDRotate | rotate = kPDRotate_0, | ||
| float | dpi = 96 ) const |
Get the transformation matrix from device space to page space.
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
| Document PDF::Page::GetDocument | ( | ) | const |
Get the document that contains the page.
| RectF PDF::Page::GetMediaBox | ( | ) | const |
Get the media box of the page.
| size_t PDF::Page::GetNumAnnots | ( | ) | const |
Get the number of annotations in the page.
| RectF PDF::Page::GetPageBox | ( | ) | const |
Get the page box of the page.
| size_t PDF::Page::GetPageIndex | ( | ) | const |
Get the index of this page in the document.
| PageText PDF::Page::GetPageText | ( | ) | const |
Get the text content of the page.
| Matrix PDF::Page::GetPageToDevSpaceMatrix | ( | float | zoom = 1.f, |
| PDRotate | rotate = kPDRotate_0, | ||
| float | dpi = 96 ) const |
Get the transformation matrix from page space to device space.
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
| Object PDF::Page::GetPdfObject | ( | ) | const |
Get the PDF object associated with this page.
| PDRotate PDF::Page::GetRotate | ( | ) | const |
Get the rotation of the page.
| RectF PDF::Page::GetTrimBox | ( | ) | const |
Get the trim box of the page.
| float PDF::Page::GetUserUnitSize | ( | ) | const |
Get the user unit size of the page.
| void PDF::Page::InsertAnnot | ( | size_t | insertAt, |
| Annot | annot ) |
Insert an annotation at the specified index.
| insertAt | The index to insert the annotation. |
| annot | The annotation to insert. |
| bool PDF::Page::IsContentModified | ( | ) | const |
Get the content modified flag.
| void PDF::Page::RemoveAnnot | ( | Annot | annot | ) |
Remove the specified annotation.
| annot | The annotation to remove. |
| void PDF::Page::RemoveAnnotByIndex | ( | size_t | index | ) |
Remove the annotation at the specified index.
| index | The index of the annotation to remove. |
| void PDF::Page::SetArtBox | ( | const RectF & | box | ) |
Set the art box of the page.
| box | The art box value. |
| void PDF::Page::SetBleedBox | ( | const RectF & | box | ) |
Set the bleed box of the page.
| box | The bleed box value. |
| void PDF::Page::SetContentModified | ( | bool | modified = true | ) |
Set the content modified flag.
If the flag is set to true, the page content will be saved to a PDF stream during the next save operation.
| modified | The value of the content modified flag. |
| void PDF::Page::SetCropBox | ( | const RectF & | box | ) |
Set the crop box of the page.
| box | The crop box value. |
| void PDF::Page::SetMediaBox | ( | const PDF::RectF & | box | ) |
Set the media box of the page.
| box | The media box value. |
| void PDF::Page::SetRotate | ( | PDRotate | rotate | ) |
Set the rotation of the page.
| rotate | The rotation value. |
| void PDF::Page::SetTrimBox | ( | const RectF & | box | ) |
Set the trim box of the page.
| box | The trim box value. |
| void PDF::Page::SetUserUnitSize | ( | float | unitSize | ) |
Set the user unit size of the page.
| unitSize | The user unit size value. |