Represents a leaf node (Page Object).
More...
#include <pdfsdk/cxx/page.h>
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.
◆ AddAnnot()
| void PDF::Page::AddAnnot |
( |
size_t | insertAt, |
|
|
Annot | annot ) |
Add an annotation at the specified index.
- Parameters
-
| insertAt | The index to insert the annotation. |
| annot | The annotation to add. |
◆ FlushModifiedContent()
| void PDF::Page::FlushModifiedContent |
( |
| ) |
|
Saves the contents of the page to a PDF stream.
- Warning
- Call this function only then you are 100% sure that all content handles are released. Otherwise, it will cause UB and will probably crash the application.
◆ GetAnnot()
| Annot PDF::Page::GetAnnot |
( |
size_t | index | ) |
const |
Get the annotation at the specified index.
- Parameters
-
| index | The index of the annotation. |
- Returns
- The annotation.
◆ GetAnnotIndex()
| size_t PDF::Page::GetAnnotIndex |
( |
Annot | annot | ) |
const |
Get the index of the specified annotation.
- Parameters
-
- Returns
- The index of the annotation.
◆ GetArtBox()
| RectF PDF::Page::GetArtBox |
( |
| ) |
const |
Get the art box of the page.
- Returns
- The art box of the page.
◆ GetBleedBox()
| RectF PDF::Page::GetBleedBox |
( |
| ) |
const |
Get the bleed box of the page.
- Returns
- The bleed box of the page.
◆ GetContent()
| Content PDF::Page::GetContent |
( |
| ) |
const |
Get the content of this page.
- Returns
- The content of the page.
◆ GetCropBox()
| RectF PDF::Page::GetCropBox |
( |
| ) |
const |
Get the crop box of the page.
- Returns
- The crop box of the page.
◆ GetDevSpacePageBox()
| RectF PDF::Page::GetDevSpacePageBox |
( |
float | zoom = 1.f, |
|
|
PDRotate | rotate = kPDRotate_0, |
|
|
float | dpi = 96 ) const |
Get the page box in device space.
- Parameters
-
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
- Returns
- The page box in device space.
◆ GetDevToPageSpaceMatrix()
| 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.
- Parameters
-
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
- Returns
- The transformation matrix.
◆ GetDocument()
| Document PDF::Page::GetDocument |
( |
| ) |
const |
Get the document that contains the page.
- Returns
- The document.
◆ GetMediaBox()
| RectF PDF::Page::GetMediaBox |
( |
| ) |
const |
Get the media box of the page.
- Returns
- The media box of the page.
◆ GetNumAnnots()
| size_t PDF::Page::GetNumAnnots |
( |
| ) |
const |
Get the number of annotations in the page.
- Returns
- The number of annotations.
◆ GetPageBox()
| RectF PDF::Page::GetPageBox |
( |
| ) |
const |
Get the page box of the page.
- Returns
- The page box of the page.
◆ GetPageIndex()
| size_t PDF::Page::GetPageIndex |
( |
| ) |
const |
Get the index of this page in the document.
- Returns
- The index of the page.
◆ GetPageText()
| PageText PDF::Page::GetPageText |
( |
| ) |
const |
Get the text content of the page.
- Returns
- The text content of the page.
◆ GetPageToDevSpaceMatrix()
| 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.
- Parameters
-
| zoom | The zoom factor. |
| rotate | The rotation value. |
| dpi | The DPI value. |
- Returns
- The transformation matrix.
◆ GetPdfObject()
| Object PDF::Page::GetPdfObject |
( |
| ) |
const |
Get the PDF object associated with this page.
- Returns
- The PDF object.
◆ GetRotate()
| PDRotate PDF::Page::GetRotate |
( |
| ) |
const |
Get the rotation of the page.
- Returns
- The rotation of the page.
◆ GetTrimBox()
| RectF PDF::Page::GetTrimBox |
( |
| ) |
const |
Get the trim box of the page.
- Returns
- The trim box of the page.
◆ GetUserUnitSize()
| float PDF::Page::GetUserUnitSize |
( |
| ) |
const |
Get the user unit size of the page.
- Returns
- The user unit size of the page.
◆ IsContentModified()
| bool PDF::Page::IsContentModified |
( |
| ) |
const |
Get the content modified flag.
- Returns
- The value of the content modified flag.
◆ RemoveAnnot()
| void PDF::Page::RemoveAnnot |
( |
Annot | annot | ) |
|
Remove the specified annotation.
- Parameters
-
| annot | The annotation to remove. |
◆ RemoveAnnotByIndex()
| void PDF::Page::RemoveAnnotByIndex |
( |
size_t | index | ) |
|
Remove the annotation at the specified index.
- Parameters
-
| index | The index of the annotation to remove. |
◆ SetArtBox()
| void PDF::Page::SetArtBox |
( |
const RectF & | box | ) |
|
Set the art box of the page.
- Parameters
-
◆ SetBleedBox()
| void PDF::Page::SetBleedBox |
( |
const RectF & | box | ) |
|
Set the bleed box of the page.
- Parameters
-
◆ SetContentModified()
| void PDF::Page::SetContentModified |
( |
bool | modified = true | ) |
|
Set the content modified flag.
- Parameters
-
| modified | The value of the content modified flag. |
◆ SetCropBox()
| void PDF::Page::SetCropBox |
( |
const RectF & | box | ) |
|
Set the crop box of the page.
- Parameters
-
◆ SetMediaBox()
| void PDF::Page::SetMediaBox |
( |
const PDF::RectF & | box | ) |
|
Set the media box of the page.
- Parameters
-
◆ SetRotate()
| void PDF::Page::SetRotate |
( |
PDRotate | rotate | ) |
|
Set the rotation of the page.
- Parameters
-
| rotate | The rotation value. |
◆ SetTrimBox()
| void PDF::Page::SetTrimBox |
( |
const RectF & | box | ) |
|
Set the trim box of the page.
- Parameters
-
◆ SetUserUnitSize()
| void PDF::Page::SetUserUnitSize |
( |
float | unitSize | ) |
|
Set the user unit size of the page.
- Parameters
-
| unitSize | The user unit size value. |
The documentation for this class was generated from the following file: