mupdf-qt  0.1
Qt5 interface of the popular PDF library MuPDF
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Pages
Classes | Functions
MuPDF Namespace Reference

Classes

class  Document
 
class  Link
 
class  LinkGoto
 Goto a position in current file. More...
 
class  LinkURI
 A URI link. More...
 
class  LinkLaunch
 Launch a file (a document or a executable). More...
 
class  LinkNamed
 Named action to perform. More...
 
class  LinkGotoR
 Goto a position in another file. More...
 
class  Outline
 A tree of the outline of a document (also known as table of contents). More...
 
class  OutlineItem
 A outline item. More...
 
class  Page
 A page. More...
 
class  TextBox
 A text box. More...
 

Functions

DocumentloadDocument (const QString &filePath)
 Load a document. More...
 
DocumentloadDocument (const QByteArray &bytes)
 Load a document. More...
 
QPointF mapToOrigin (const QPointF &pos, float scaleX, float scaleY, float rotation=0.0f)
 Map from a transformed point to the original point. More...
 
QSizeF mapToOrigin (const QSizeF &size, float scaleX, float scaleY, float rotation=0.0f)
 Map from a transformed size to the original size. More...
 
QRectF mapToOrigin (const QRectF &rect, float scaleX, float scaleY, float rotation=0.0f)
 Map from a transformed rect to the original rect. More...
 
QPointF mapFromOrigin (const QPointF &pos, float scaleX, float scaleY, float rotation=0.0f)
 Map from a original point to the transformed point. More...
 
QSizeF mapFromOrigin (const QSizeF &size, float scaleX, float scaleY, float rotation=0.0f)
 Map from a original size to the transformed size. More...
 
QRectF mapFromOrigin (const QRectF &rect, float scaleX, float scaleY, float rotation=0.0f)
 Map from a original rect to the transformed rect. More...
 

Function Documentation

Document * MuPDF::loadDocument ( const QString &  filePath)

Load a document.

Parameters
filePathdocument path
Returns
NULL if failed (Note: you need delete manually when it's useless)

Definition at line 23 of file mupdf-document.cpp.

Document * MuPDF::loadDocument ( const QByteArray &  bytes)

Load a document.

Parameters
bytesdocument data
Returns
NULL if failed (Note: you need delete manually when it's useless)

Definition at line 49 of file mupdf-document.cpp.

QPointF MuPDF::mapFromOrigin ( const QPointF &  pos,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a original point to the transformed point.

Returns
The transformed point.

Definition at line 121 of file mupdf-page.cpp.

QSizeF MuPDF::mapFromOrigin ( const QSizeF &  size,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a original size to the transformed size.

Returns
The transformed size.

Definition at line 138 of file mupdf-page.cpp.

QRectF MuPDF::mapFromOrigin ( const QRectF &  rect,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a original rect to the transformed rect.

Returns
The transformed rect.

Definition at line 155 of file mupdf-page.cpp.

QPointF MuPDF::mapToOrigin ( const QPointF &  pos,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a transformed point to the original point.

Returns
The original point.

Definition at line 56 of file mupdf-page.cpp.

QSizeF MuPDF::mapToOrigin ( const QSizeF &  size,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a transformed size to the original size.

Returns
The original size.

Definition at line 77 of file mupdf-page.cpp.

QRectF MuPDF::mapToOrigin ( const QRectF &  rect,
float  scaleX,
float  scaleY,
float  rotation = 0.0f 
)

Map from a transformed rect to the original rect.

Returns
The original rect.

Definition at line 98 of file mupdf-page.cpp.