KItinerary::PdfPage
#include <pdfdocument.h>
Properties | |
int | height |
QVariantList | images |
QVariantList | links |
QString | text |
int | width |
Public Member Functions | |
PdfPage (const PdfPage &) | |
int | height () const |
PdfImage | image (int index) const |
int | imageCount () const |
Q_INVOKABLE QVariantList | imagesInRect (double left, double top, double right, double bottom) const |
PdfLink | link (int index) const |
int | linkCount () const |
Q_INVOKABLE QVariantList | linksInRect (double left, double top, double right, double bottom) const |
PdfPage & | operator= (const PdfPage &) |
QString | text () const |
Q_INVOKABLE QString | textInRect (double left, double top, double right, double bottom) const |
int | width () const |
Detailed Description
A page in a PDF document.
Definition at line 28 of file pdfdocument.h.
Property Documentation
◆ height
|
read |
Definition at line 35 of file pdfdocument.h.
◆ images
|
read |
Definition at line 32 of file pdfdocument.h.
◆ links
|
read |
Definition at line 33 of file pdfdocument.h.
◆ text
|
read |
Definition at line 31 of file pdfdocument.h.
◆ width
|
read |
Definition at line 34 of file pdfdocument.h.
Constructor & Destructor Documentation
◆ PdfPage()
PdfPage::PdfPage | ( | ) |
Definition at line 64 of file pdfdocument.cpp.
Member Function Documentation
◆ height()
int PdfPage::height | ( | ) | const |
Definition at line 223 of file pdfdocument.cpp.
◆ image()
PdfImage PdfPage::image | ( | int | index | ) | const |
The n-th image found in this document.
Definition at line 130 of file pdfdocument.cpp.
◆ imageCount()
int PdfPage::imageCount | ( | ) | const |
The number of images found in this document.
Definition at line 124 of file pdfdocument.cpp.
◆ imagesInRect()
QVariantList PdfPage::imagesInRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom ) const |
Returns the images in the specified sub-rect of this page.
All parameters are relative values between 0
and 1
of the entire page size.
Definition at line 145 of file pdfdocument.cpp.
◆ link()
PdfLink PdfPage::link | ( | int | index | ) | const |
The n-th link found in this document.
Definition at line 168 of file pdfdocument.cpp.
◆ linkCount()
int PdfPage::linkCount | ( | ) | const |
The number of links found in this document.
Definition at line 162 of file pdfdocument.cpp.
◆ linksInRect()
QVariantList PdfPage::linksInRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom ) const |
Returns all links in the specified sub-rect of this page.
All parameters are relative values between 0
and 1
of the entire page size. Links are sorted top to bottom / left to right based on their top left corner.
Definition at line 183 of file pdfdocument.cpp.
◆ text()
QString PdfPage::text | ( | ) | const |
The entire text on this page.
Definition at line 73 of file pdfdocument.cpp.
◆ textInRect()
QString PdfPage::textInRect | ( | double | left, |
double | top, | ||
double | right, | ||
double | bottom ) const |
Returns the text in the specified sub-rect of this page.
All parameters are relative values between 0
and 1
of the entire page size.
Definition at line 84 of file pdfdocument.cpp.
◆ width()
int PdfPage::width | ( | ) | const |
Page size in millimeters.
Definition at line 213 of file pdfdocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.