PdfHtmlDoc class.
More...
|
virtual bool | Close ()=0 |
| Closes PdfHtmlDoc. More...
|
|
virtual bool | Save (const wchar_t *path, PdfHtmlParams *params, PdfCancelProc cancel_proc, void *cancel_data)=0 |
|
virtual bool | SaveDocHtml (PsStream *stream, PdfHtmlParams *params, PdfCancelProc cancel_proc, void *cancel_data)=0 |
|
virtual bool | SavePageHtml (PsStream *stream, PdfHtmlParams *params, int page_num, PdfCancelProc cancel_proc, void *cancel_data)=0 |
| Writes HTLML data for of a page into stream. More...
|
|
PdfHtmlDoc class.
A PdfHtmlDoc allow you to set convert PDF to HTML.
◆ Close()
virtual bool PdfHtmlDoc::Close |
( |
| ) |
|
|
pure virtual |
Closes PdfHtmlDoc.
- See also
- PdfToHtml::CreateHtmlDoc
◆ Save()
Writes html for the document into the file. Data contains document HTML, CSS and JS content including all pages. Any external reference like image or stylesheet is saved into the same folder as the input path unless kHtmlNoExternal flag is used.
- Parameters
-
path | Path to the output html file. |
params | Html parameters that allow modify the conversion algorithm. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the html document was created successfully or false in case of an error.
◆ SaveDocHtml()
Writes html for the document into the stream. Data contains document specific html content excluding any page content.
- Parameters
-
stream | The stream to write data into. |
params | Html parameters that allow modify the conversion algorithm. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the document html was written successfully or false in case of an error.
◆ SavePageHtml()
Writes HTLML data for of a page into stream.
- Parameters
-
stream | The stream to write data into. |
params | Html parameters that allow modify the conversion algorithm. |
page_num | The page number of the page to get html data. The first page is 0. |
cancel_proc | Callback to check for canceling operations. |
cancel_data | Pointer to client data for the cancel procedure. |
- Returns
- true if the page html was written successfully or false in case of an error.