PdfConversion class.
More...
#include <pdfix.h>
|
virtual void | Destroy ()=0 |
| Destroys the object and its associated resources. More...
|
|
virtual bool | AddPage (int index, PdfCancelProc cancel_proc, void *cancel_data)=0 |
| Adds page for conversion. When none page is added, the whole document is saved. More...
|
|
virtual bool | Save (const wchar_t *path, PdfCancelProc cancel_proc, void *cancel_data)=0 |
| Writes conversion of the document into the file. More...
|
|
virtual bool | SaveToStream (PsStream *stream, PdfCancelProc cancel_proc, void *cancel_data)=0 |
| Writes conversion of the document into the stream. More...
|
|
PdfConversion class.
A PdfConversion allows you to convert PDF to other document format.
◆ AddPage()
virtual bool PdfConversion::AddPage |
( |
int |
index, |
|
|
PdfCancelProc |
cancel_proc, |
|
|
void * |
cancel_data |
|
) |
| |
|
pure virtual |
Adds page for conversion. When none page is added, the whole document is saved.
- Parameters
-
index | Index of the page to be added for conversion. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if page was added successfully false otherwise.
- See also
- Save
◆ Destroy()
virtual void PdfConversion::Destroy |
( |
| ) |
|
|
pure virtual |
Destroys the object and its associated resources.
- See also
- PdfDoc::CreateHtmlDocConversion
-
PdfDoc::CreateTiffDocConversion
◆ Save()
virtual bool PdfConversion::Save |
( |
const wchar_t * |
path, |
|
|
PdfCancelProc |
cancel_proc, |
|
|
void * |
cancel_data |
|
) |
| |
|
pure virtual |
Writes conversion of the document into the file.
- Parameters
-
path | Path to the output file. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the document was created successfully or false in case of an error.
◆ SaveToStream()
virtual bool PdfConversion::SaveToStream |
( |
PsStream * |
stream, |
|
|
PdfCancelProc |
cancel_proc, |
|
|
void * |
cancel_data |
|
) |
| |
|
pure virtual |
Writes conversion of the document into the stream.
- Parameters
-
stream | output stream. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the document was created successfully or false in case of an error.