Foxit PDF SDK
|
Static Public Attributes | |
Initialize = _fsdk.PDF2Office_Initialize | |
Initialize Foxit PDF Conversion SDK Library. More... | |
Release = _fsdk.PDF2Office_Release | |
Release all resource allocated by Foxit PDF Conversion SDK Library. More... | |
StartConvertToExcel = _fsdk.PDF2Office_StartConvertToExcel | |
Start to convert a PDF file to a Excel format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function. More... | |
StartConvertToPowerPoint = _fsdk.PDF2Office_StartConvertToPowerPoint | |
Start to convert a PDF file to a PowerPoint format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function. More... | |
StartConvertToWord = _fsdk.PDF2Office_StartConvertToWord | |
Start to convert a PDF file to a Word format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function. More... | |
This class can be used to convert PDF files to Office(Word, Excel or PowerPoint) format files. Before using "Conversion" module, please ensure the resource folder named "res" in the PDF Conversion SDK package is valid. Before using methods in this module, please ensure Foxit PDF Conversion SDK has been initialized successfully by function FoxitPDFSDKPython3.Library.Initialize with a key including "PDF2Office" module.
|
static |
Initialize Foxit PDF Conversion SDK Library.
During the life-cycle of "pdf2office" module, this function can only be called once and should be called first before any other functions in "pdf2office" module can be called.
[in] | library_path | Path of PDF Conversion SDK library. This should not be an empty string. |
|
static |
Release all resource allocated by Foxit PDF Conversion SDK Library.
When the user does not use "pdf2office" module, this function should be called to release all memory blocks allocated by the library.
|
static |
Start to convert a PDF file to a Excel format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function.
Currently only support converting to XLSX format file.
[in] | src_pdf_path | Path of a PDF file. This should not be an empty string. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_excel_file_path | Path of the saved Excel format file as conversion result. This should not be an empty string. If the suffix name of the saved Excel format file is not "xlsx", a new suffix named "xlsx" will be added to the original file name. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |
Currently only support converting to XLSX format file.
[in] | src_pdf_reader | A FileReaderCallback object which is implemented by user to load a PDF document. It should not be null. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_excel_file_stream | A FoxitPDFSDKPython3.StreamCallback object which is implemented by user to read the contents of the converted Excel format file. It should not be null. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |
|
static |
Start to convert a PDF file to a PowerPoint format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function.
Currently only support converting to PPTX format file.
[in] | src_pdf_path | Path of a PDF file. This should not be an empty string. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_ppt_file_path | Path of the saved PowerPoint format file as conversion result. This should not be an empty string. If the suffix name of the saved PowerPoint format file is not "pptx", a new suffix named "pptx" will be added to the original file name. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |
Currently only support converting to PPTX format file.
[in] | src_pdf_reader | A FileReaderCallback object which is implemented by user to load a PDF document. It should not be null. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_ppt_file_stream | A FoxitPDFSDKPython3.StreamCallback object which is implemented by user to read the contents of the converted PowerPoint format file. It should not be null. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |
|
static |
Start to convert a PDF file to a Word format file. Function FoxitPDFSDKPython3.PDF2Office.Initialize must be called before calling this function.
Currently only support converting to DOCX format file.
[in] | src_pdf_path | Path of a PDF file. This should not be an empty string. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_word_file_path | Path of the saved Word format file as conversion result. This should not be an empty string. If the suffix name of the saved Word format file is not "docx", a new suffix named "docx" will be added to the original file name. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |
Currently only support converting to DOCX format file.
[in] | src_pdf_reader | A FileReaderCallback object which is implemented by user to load a PDF document. It should not be null. |
[in] | src_pdf_password | Password for the input PDF file. If no password is needed for the file, please pass an empty string. |
[in] | saved_word_file_stream | A FoxitPDFSDKPython3.StreamCallback object which is implemented by user to read the contents of the converted Word format file. It should not be null. |
[in] | setting_data | Setting data used for converting. |
[in] | convert_callback | A FoxitPDFSDKPython3.ConvertCallback object which is implemented by user to pause and notify the conversion progress during the converting process. This can be null which means not to pause and notify the conversion progress. If this is not null, it should be a valid FoxitPDFSDKPython3.ConvertCallback object implemented by user. |