Foxit PDF SDK
|
Static Public Member Functions | |
def | ConvertFromExcel (src_excel_file_path, src_file_password, saved_pdf_path, setting_data) |
Convert an Excel format file to a PDF file. More... | |
def | ConvertFromExcel (src_excel_reader, src_file_password, saved_pdf_file_stream, setting_data) |
Convert an Excel format file to a PDF file. More... | |
def | ConvertFromPowerPoint (src_ppt_file_path, src_file_password, saved_pdf_path, setting_data) |
Convert a PowerPoint format file to a PDF file. More... | |
def | ConvertFromPowerPoint (src_ppt_reader, src_file_password, saved_pdf_file_stream, setting_data) |
Convert a PowerPoint format file to a PDF file. More... | |
def | ConvertFromWord (src_word_file_path, src_file_password, saved_pdf_path, setting_data) |
Convert a Word format file to a PDF file. More... | |
def | ConvertFromWord (src_word_reader, src_file_password, saved_pdf_file_stream, setting_data) |
Convert a Word format file to a PDF file. More... | |
def | Initialize (library_path) |
Initialize Foxit PDF Conversion. More... | |
def | Release () |
Release all resource allocated by Foxit PDF Conversion. More... | |
This class can be used to convert Office(Word, Excel or PowerPoint) format files to PDF files. This feature is a self- developed product by Foxit and does not rely on other third-party engines. Before using "Conversion" module, please ensure the resource folders named "res" and "lib" in the Foxit PDF Conversion SDK package is valid. Before using methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Office2PDF" module.
|
static |
Convert an Excel format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from XLSX format files.
[in] | src_excel_file_path | Path of an Excel format file. This should not be an empty string. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input Excel format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Convert an Excel format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from XLSX format files. The file is read all at once, rather than progressively.
[in] | src_excel_reader | A FileReaderCallback object which is implemented by user to load an excel document. It should not be null. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input Excel format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_file_stream | A FoxitPDFSDKPython2.StreamCallback object which is implemented by user to read the contents of the converted PDF file. It should not be null. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Convert a PowerPoint format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from PPTX format files.
[in] | src_ppt_file_path | Path of a PowerPoint format file. This should not be an empty string. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input PowerPoint format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Convert a PowerPoint format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from PPTX format files. The file is read all at once, rather than progressively.
[in] | src_ppt_reader | A FileReaderCallback object which is implemented by user to load a PowerPoint document. It should not be null. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input PowerPoint format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_file_stream | A FoxitPDFSDKPython2.StreamCallback object which is implemented by user to read the contents of the converted PDF file. It should not be null. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Convert a Word format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from DOCX format files.
[in] | src_word_file_path | Path of a Word format file. This should not be an empty string. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input Word format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_path | Path of the saved PDF file as conversion result. This should not be an empty string. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Convert a Word format file to a PDF file.
Currently,this function is only available for Windows, and it supports conversion only from DOCX format files. The file is read all at once, rather than progressively.
[in] | src_word_reader | A FileReaderCallback object which is implemented by user to load a word document. It should not be null. |
[in] | src_file_password | (Reserved,encrypted files are unsupported yet)Password for the input Word format file. If no password is needed for the file, please pass an empty string. |
[in] | saved_pdf_file_stream | A FoxitPDFSDKPython2.StreamCallback object which is implemented by user to read the contents of the converted PDF file. It should not be null. |
[in] | setting_data | A FoxitPDFSDKPython2.Office2PDFSettingData object which is used for converting. |
|
static |
Initialize Foxit PDF Conversion.
During the life-cycle of "Office2PDF" module, this function can only be called once and should be called first before any other functions in "Office2PDF" module can be called.
[in] | library_path | Path of Foxit PDF Conversion SDK library. This should not be an empty string. |
|
static |
Release all resource allocated by Foxit PDF Conversion.
When the user does not use "Office2PDF" module, this function should be called to release all memory blocks allocated by the library.