PDFix SDK  7.2.0
Loading...
Searching...
No Matches
PdfConversion Struct Referenceabstract

PdfConversion class. More...

#include <pdfix.h>

Inheritance diagram for PdfConversion:
PdfHtmlConversion PdfJsonConversion PdfTiffConversion

Public Member Functions

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...
 

Detailed Description

PdfConversion class.

A PdfConversion allows you to convert PDF to other document format.

Member Function Documentation

◆ 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
indexIndex of the page to be added for conversion.
cancel_procCallback to check for canceling operations.
cancel_dataPointer 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
pathPath to the output file.
cancel_procCallback to check for canceling operations.
cancel_dataPointer 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
streamoutput stream.
cancel_procCallback to check for canceling operations.
cancel_dataPointer to client data for the cancel procedure.
Returns
true if the document was created successfully or false in case of an error.