mupdf-qt
0.1
Qt5 interface of the popular PDF library MuPDF
|
A page. More...
#include <mupdf-page.h>
Public Member Functions | |
~Page () | |
bool | isValid () const |
Check whether this page object is valid. More... | |
QImage | renderImage (float scaleX=1.0f, float scaleY=1.0f, float rotation=0.0f) const |
Render page to QImage. More... | |
QSizeF | size () const |
Page size at 72 dpi More... | |
void | setTransparentRendering (bool enable) |
Whether to do transparent page rendering. This function modify setting of current page only. For global setting, use Document::setTransparentRendering() instead. More... | |
void | setBackgroundColor (int r, int g, int b, int a=255) |
Set background color. This function modify setting of current page only. For global setting, use Document::setBackgroundColor() instead. More... | |
QString | text (const QRectF &rect) const |
Return the text in a rect. More... | |
QList< TextBox * > | textList () const |
Return all text boxes of the page. More... | |
Friends | |
class | Document |
A page.
Definition at line 62 of file mupdf-page.h.
MuPDF::Page::~Page | ( | ) |
Definition at line 174 of file mupdf-page.cpp.
bool MuPDF::Page::isValid | ( | ) | const |
Check whether this page object is valid.
Definition at line 223 of file mupdf-page.cpp.
QImage MuPDF::Page::renderImage | ( | float | scaleX = 1.0f , |
float | scaleY = 1.0f , |
||
float | rotation = 0.0f |
||
) | const |
Render page to QImage.
scaleX | scale for X direction (Default value: 1.0f; >1.0f: zoom in; <1.0f: zoom out) |
scaleY | scale for Y direction (Default value: 1.0f; >1.0f: zoom in; <1.0f: zoom out) |
rotation | degree of clockwise rotation (Range: [0.0f, 360.0f)) |
Definition at line 239 of file mupdf-page.cpp.
void MuPDF::Page::setBackgroundColor | ( | int | r, |
int | g, | ||
int | b, | ||
int | a = 255 |
||
) |
Set background color. This function modify setting of current page only. For global setting, use Document::setBackgroundColor() instead.
r | red channel |
g | green channel |
b | blue channel |
a | alpha channel(default with non transparent) |
Definition at line 365 of file mupdf-page.cpp.
void MuPDF::Page::setTransparentRendering | ( | bool | enable) |
Whether to do transparent page rendering. This function modify setting of current page only. For global setting, use Document::setTransparentRendering() instead.
enable | True: transparent; False: not transparent(default). |
Definition at line 346 of file mupdf-page.cpp.
QSizeF MuPDF::Page::size | ( | ) | const |
Page size at 72 dpi
Definition at line 331 of file mupdf-page.cpp.
QString MuPDF::Page::text | ( | const QRectF & | rect) | const |
Return the text in a rect.
rect | original rect (72 dpi), not transformed rect |
Definition at line 378 of file mupdf-page.cpp.
QList< TextBox * > MuPDF::Page::textList | ( | ) | const |
Return all text boxes of the page.
Definition at line 406 of file mupdf-page.cpp.
|
friend |
Definition at line 83 of file mupdf-page.h.