|
void | ExtractTextTo (std::vector< PdfTextEntry > &entries, const PdfTextExtractParams ¶ms) const |
|
void | ExtractTextTo (std::vector< PdfTextEntry > &entries, const std::string_view &pattern={ }, const PdfTextExtractParams ¶ms={ }) const |
|
Rect | GetRect () const |
|
Rect | GetRectRaw () const override |
| Get the current canvas size in PDF Units. More...
|
|
void | SetRect (const Rect &rect) |
|
void | SetRectRaw (const Rect &rect) |
|
bool | HasRotation (double &teta) const override |
| Get the current canvas rotation. More...
|
|
void | SetMediaBox (const Rect &rect, bool raw=false) |
| Set the /MediaBox in PDF Units. More...
|
|
void | SetCropBox (const Rect &rect, bool raw=false) |
| Set the /CropBox in PDF Units. More...
|
|
void | SetTrimBox (const Rect &rect, bool raw=false) |
| Set the /TrimBox in PDF Units. More...
|
|
void | SetBleedBox (const Rect &rect, bool raw=false) |
| Set the /BleedBox in PDF Units. More...
|
|
void | SetArtBox (const Rect &rect, bool raw=false) |
| Set the /ArtBox in PDF Units. More...
|
|
unsigned | GetPageNumber () const |
| Page number inside of the document. More...
|
|
Rect | GetMediaBox (bool raw=false) const |
| Get the current MediaBox (physical page size) in PDF units. More...
|
|
Rect | GetCropBox (bool raw=false) const |
| Get the current CropBox (visible page size) in PDF units. More...
|
|
Rect | GetTrimBox (bool raw=false) const |
| Get the current TrimBox (cut area) in PDF units. More...
|
|
Rect | GetBleedBox (bool raw=false) const |
| Get the current BleedBox (extra area for printing purposes) in PDF units. More...
|
|
Rect | GetArtBox (bool raw=false) const |
| Get the current ArtBox in PDF units. More...
|
|
unsigned | GetRotation () const |
| Get the normalized page rotation (0, 90, 180 or 270) More...
|
|
double | GetRotationRaw () const |
| Get the raw page rotation (if any) More...
|
|
void | SetRotation (int rotation) |
| Set the current page rotation. More...
|
|
bool | MoveTo (unsigned index) |
| Move the page to the given index.
|
|
template<typename TField > |
TField & | CreateField (const std::string_view &name, const Rect &rect, bool rawRect=false) |
|
PdfField & | CreateField (const std::string_view &name, PdfFieldType fieldType, const Rect &rect, bool rawRect=false) |
|
PdfPageFieldIterable | GetFieldsIterator () |
| Get an iterator for all fields in the page. More...
|
|
PdfPageConstFieldIterable | GetFieldsIterator () const |
|
unsigned | GetIndex () const |
|
PdfContents & | GetOrCreateContents () |
|
PdfResources & | GetOrCreateResources () override |
| Get or create the resource object of this page. More...
|
|
const PdfContents * | GetContents () const |
|
PdfContents * | GetContents () |
|
const PdfContents & | MustGetContents () const |
|
PdfContents & | MustGetContents () |
|
const PdfResources * | GetResources () const |
|
PdfResources * | GetResources () |
|
const PdfResources & | MustGetResources () const |
|
PdfResources & | MustGetResources () |
|
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. More...
|
|
PdfObject * | GetContentsObject () |
|
charbuff | GetContentsCopy () const |
|
void | CopyContentsTo (charbuff &buffer) const |
|
PdfObject * | GetFromResources (PdfResourceType type, const std::string_view &key) |
| Get an element from the pages resources dictionary, using a type (category) and a key. More...
|
|
const PdfObject * | GetFromResources (PdfResourceType type, const std::string_view &key) const |
|
PdfResources * | GetResources () |
| Get the resource object of this page. More...
|
|
const PdfResources * | GetResources () const |
|
PdfDictionaryElement & | GetElement () |
|
const PdfDictionaryElement & | GetElement () const |
|
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.