|
| void | ExtractTextTo (std::vector< PdfTextEntry > &entries, const PdfTextExtractParams ¶ms) const |
| | Extract text from the page.
|
| void | ExtractTextTo (std::vector< PdfTextEntry > &entries, const std::string_view &pattern={ }, const PdfTextExtractParams ¶ms={ }) const |
| | Extract text from the page.
|
| Rect | GetRect () const |
| | Get the rectangle of this page.
|
| void | SetRect (const Rect &rect) |
| | Set the rectangle of this annotation.
|
| Corners | GetRectRaw () const override |
| | Get the current canvas size in PDF Units.
|
|
void | SetRectRaw (const Corners &rect) |
| bool | TryGetRotationRadians (double &teta) const override |
| | Try getting the current canvas rotation.
|
| double | GetRotationRadians () const |
| | Get the current page rotation in radians.
|
| void | SetMediaBox (const Rect &rect) |
| | Set the /MediaBox in PDF Units.
|
| void | SetCropBox (const Rect &rect) |
| | Set the /CropBox in PDF Units.
|
| void | SetTrimBox (const Rect &rect) |
| | Set the /TrimBox in PDF Units.
|
| void | SetBleedBox (const Rect &rect) |
| | Set the /BleedBox in PDF Units.
|
| void | SetArtBox (const Rect &rect) |
| | Set the /ArtBox in PDF Units.
|
| unsigned | GetPageNumber () const |
| | Page number inside of the document.
|
| Rect | GetMediaBox () const |
| | Get the current MediaBox (physical page size) in PDF units.
|
|
Corners | GetMediaBoxRaw () const |
| Rect | GetCropBox () const |
| | Get the current CropBox (visible page size) in PDF units.
|
|
Corners | GetCropBoxRaw () const |
| Rect | GetTrimBox () const |
| | Get the current TrimBox (cut area) in PDF units.
|
|
Corners | GetTrimBoxRaw () const |
| Rect | GetBleedBox () const |
| | Get the current BleedBox (extra area for printing purposes) in PDF units.
|
|
Corners | GetBleedBoxRaw () const |
| Rect | GetArtBox () const |
| | Get the current ArtBox in PDF units.
|
|
Corners | GetArtBoxRaw () const |
| unsigned | GetRotation () const |
| | Get the normalized page rotation (0, 90, 180 or 270).
|
| bool | TryGetRotationRaw (double &rotation) const |
| | Get the raw page rotation (if any).
|
| void | SetRotation (int rotation) |
| | Set the current page rotation.
|
| bool | MoveTo (unsigned index) |
| | Move the page to the given index.
|
|
template<typename TField> |
| TField & | CreateField (const std::string_view &name, const Rect &rect) |
|
PdfField & | CreateField (const std::string_view &name, PdfFieldType fieldType, const Rect &rect) |
| PdfPageFieldIterable | GetFieldsIterator () |
| | Get an iterator for all fields in the page.
|
|
PdfPageConstFieldIterable | GetFieldsIterator () const |
|
unsigned | GetIndex () const |
|
PdfContents & | GetOrCreateContents () |
|
const PdfContents * | GetContents () const |
|
PdfContents * | GetContents () |
|
const PdfContents & | MustGetContents () const |
|
PdfContents & | MustGetContents () |
|
const PdfResources & | GetResources () const |
|
PdfResources & | GetResources () |
|
PdfAnnotationCollection & | GetAnnotations () |
|
const PdfAnnotationCollection & | GetAnnotations () const |
|
virtual | ~PdfCanvas () |
| | Virtual destructor to avoid compiler warnings.
|
| const PdfObject * | GetContentsObject () const |
| | Get access to the contents object of this page.
|
|
PdfObject * | GetContentsObject () |
|
charbuff | GetContentsCopy () const |
| void | CopyContentsTo (charbuff &buffer) const |
| PdfResources * | GetResources () |
| | Get the resource object of this page.
|
|
const PdfResources * | GetResources () const |
|
PdfDictionaryElement & | GetElement () |
|
const PdfDictionaryElement & | GetElement () const |
|
void | EnsureResourcesCreated () |
| | Ensure resources initialized on this canvas.
|
PdfPage is one page in the pdf document.
It is possible to draw on a page using a PdfPainter object. Every document needs at least one page.