|
| FromExcel = _fsdk.Convert_FromExcel |
| Convert an Excel format file to a PDF file. More...
|
|
| FromHTML = _fsdk.Convert_FromHTML |
| Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
|
| FromPowerPoint = _fsdk.Convert_FromPowerPoint |
| Convert a PowerPoint format file to a PDF file. More...
|
|
| FromTXT = _fsdk.Convert_FromTXT |
| Convert a TXT format file to a PDF file. More...
|
|
| FromWord = _fsdk.Convert_FromWord |
| Convert a Word format file to a PDF file. More...
|
|
| ToXML = _fsdk.Convert_ToXML |
| Convert a PDF file to a XML format file. More...
|
|
Conversion add-on module can be used to do some conversion between PDF file and other file formats. Before using "Conversion" module, user should first prepare font resource folder as described in "Foxit PDF SDK Developer
Guide.pdf" document. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Conversion" module.
- See also
- FoxitPDFSDKPython2.Library
FoxitPDFSDKPython2.Convert.FromHTML = _fsdk.Convert_FromHTML |
|
static |
Convert a HTML format file or a URL of a Web page to a PDF file.
Currently, this function can only be used for desktop platforms; for other platform, this function will return directly without doing anything.
- Parameters
-
[in] | src_html | A URL of Web page or a HTML format file path. This should not be an empty string. |
[in] | engine_path | The directory path of "HTML to PDF" engine. This should not be an empty string. |
[in] | cookies_path | Path of cookies file. If this is an empty string, that means no cookie file is used. Data format is strongly recommended to use JSON format. |
[in] | setting_data | Setting data used for converting. |
[in] | saved_pdf_path | A path for saving the converted PDF file. This should not be an empty string. |
[in] | timeout | Seconds for timeout used for loading web pages. It should be set to a value greater than 15. If this is less than 15, 15 will be used by default. |
- Returns
- None.
Currently, this function can only be used for desktop platforms; for other platform, this function will return directly without doing anything.
- Parameters
-
[in] | src_html | A URL of Web page or a HTML format file path. This should not be an empty string. |
[in] | engine_path | The directory path of "HTML to PDF" engine. This should not be an empty string. |
[in] | cookies_reader | A FoxitPDFSDKPython2.FileReaderCallback object which is implemented by user to pass cookies data to Foxit PDF SDK. If this is null, that means no cookie data is used. Data format is strongly recommended to use JSON format. |
[in] | setting_data | Setting data used for converting. |
[in] | saved_pdf_path | A path for saving the converted PDF file. This should not be an empty string. |
[in] | timeout | Seconds for timeout used for loading web pages. It should be set to a value greater than 15. If this is less than 15, 15 will be used by default. |
- Returns
- None.
Currently, this function can only be used for desktop platforms; for other platform, this function will return directly without doing anything.
- Parameters
-
[in] | src_html | A URL of Web page or a HTML format file path. This should not be an empty string. |
[in] | engine_path | The directory path of "HTML to PDF" engine. This should not be an empty string. |
[in] | cookies_reader | A FoxitPDFSDKPython2.FileReaderCallback object which is implemented by user to pass cookies data to Foxit PDF SDK. If this is null, that means no cookie data is used. Data format is strongly recommended to use JSON format. |
[in] | setting_data | Setting data used for converting. |
[in] | saved_pdf_filestream | A FoxitPDFSDKPython2.FileWriterCallback object for saving the converted PDF file. This should not be null. |
[in] | timeout | Seconds for timeout used for loading web pages. It should be set to a value greater than 15. If this is less than 15, 15 will be used by default. |
- Returns
- None.
Currently, this function can only be used for desktop platforms and mac arm platforms; for other platform, this function will return directly without doing anything.
- Parameters
-
[in] | src_html | A FoxitPDFSDKPython2.FileReaderCallback object which is implemented by user to pass html data to Foxit PDF SDK. It must be vaild. |
[in] | html2pdf_related_resource_array | The HTML2PDFRelatedResourceArray which is related to source HTML. |
[in] | engine_path | The directory path of "HTML to PDF" engine. This should not be an empty string. |
[in] | cookies_reader | (Reserved;Not supported yet)A FoxitPDFSDKPython2.FileReaderCallback object which is implemented by user to pass cookies data to Foxit PDF SDK. If this is null, that means no cookie data is used. Data format is strongly recommended to use JSON format. |
[in] | setting_data | Setting data used for converting. |
[in] | saved_pdf_filestream | A FoxitPDFSDKPython2.FileWriterCallback object for saving the converted PDF file. This should not be null. |
[in] | timeout | Seconds for timeout used for loading web pages. It should be set to a value greater than 15. If this is less than 15, 15 will be used by default. |
- Returns
- None.