CFx SDK Documentation 2024 SP0
|
#include <RxPdfToRasterServices.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdPdf2ImageConverter) | |
virtual OdResult | loadPdf (const OdString &filename, const OdString &password="")=0 |
virtual OdResult | loadPdf (OdStreamBufPtr &pBuf, const OdString &password="")=0 |
virtual bool | isLoaded ()=0 |
virtual OdString | getFilename ()=0 |
virtual OdUInt16 | getPagesCount ()=0 |
virtual OdResult | setActivePage (OdUInt16 pageNum=1)=0 |
virtual OdUInt16 | getActivePage ()=0 |
virtual OdResult | getLayers (OdPdfLayerArray &layers)=0 |
virtual OdResult | getPageSize (OdGsDCRect &rect)=0 |
virtual OdGiRasterImagePtr | convertPdf (const OdPdf2ImageConversionParams *params=0)=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class is the base class for classes that provide platform-dependent loading and converting of PDF files for ODA SDK. Library: TD_Db <group OdRx_Classes>
Definition at line 117 of file RxPdfToRasterServices.h.
|
pure virtual |
Converts the active page of the PDF file to the raster image using specified parameters.
params | [out] conversion params. |
|
pure virtual |
Gets the active page of the PDF file.
|
pure virtual |
Gets the name of the PDF file, if it was loaded from disk. Otherwise returns an empty string.
|
pure virtual |
Gets the layers of the active page in the PDF file.
layers | [out] Layers array. |
|
pure virtual |
Gets the page count of the PDF file.
|
pure virtual |
Gets the image size on the active page of the PDF file (in pixels for default PDF resolution 72dpi).
rect | [out] Image size. |
|
pure virtual |
Checks if a PDF file is loaded into the converter.
|
pure virtual |
Loads the specified PDF file.
filename | [in] Filename of the file to be read. |
password | [in] Optional password. |
|
pure virtual |
Loads the specified PDF file.
pBuf | [in] Pointer to the StreamBuf object the data are to be read from. |
password | [in] Optional password. |
OdPdf2ImageConverter::ODRX_DECLARE_MEMBERS | ( | OdPdf2ImageConverter | ) |
Sets the page of the PDF file to work with.
pageNum | [in] Page number. The first page has number 1. |