|
static void | fromExcel (String src_excel_file_path, String src_file_password, String saved_pdf_path, String engine_path, Excel2PDFSettingData setting_data) throws com.foxit.sdk.PDFException |
| Convert an Excel format file to a PDF file. More...
|
|
static void | fromHTML (String src_html, String engine_path, String cookies_path, HTML2PDFSettingData setting_data, String saved_pdf_path, int timeout) throws com.foxit.sdk.PDFException |
| Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
|
static void | fromHTML (String src_html, String engine_path, FileReaderCallback cookies_reader, HTML2PDFSettingData setting_data, String saved_pdf_path, int timeout) throws com.foxit.sdk.PDFException |
| Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
|
static void | fromHTML (String src_html, String engine_path, FileReaderCallback cookies_reader, HTML2PDFSettingData setting_data, FileWriterCallback saved_pdf_filestream, int timeout) throws com.foxit.sdk.PDFException |
| Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
|
static void | fromHTML (FileReaderCallback src_html, HTML2PDFRelatedResourceArray html2pdf_related_resource_array, String engine_path, FileReaderCallback cookies_reader, HTML2PDFSettingData setting_data, FileWriterCallback saved_pdf_filestream, int timeout) throws com.foxit.sdk.PDFException |
| Convert a HTML format file or a URL of a Web page to a PDF file. More...
|
|
static void | fromImage (String src_img, String saved_pdf_path) throws com.foxit.sdk.PDFException |
| Convert a Image format file to a PDF file. More...
|
|
static void | fromImage (FileReaderCallback file_reader, FileWriterCallback saved_pdf_filestream) throws com.foxit.sdk.PDFException |
| Convert a Image format file to a PDF file. More...
|
|
static void | fromPowerPoint (String src_ppt_file_path, String src_file_password, String saved_pdf_path, String engine_path, PowerPoint2PDFSettingData setting_data) throws com.foxit.sdk.PDFException |
| Convert a PowerPoint format file to a PDF file. More...
|
|
static void | fromTXT (String src_txt, String saved_pdf_path, TXT2PDFSettingData setting_data) throws com.foxit.sdk.PDFException |
| Convert a TXT format file to a PDF file. More...
|
|
static void | fromWord (String src_word_file_path, String src_file_password, String saved_pdf_path, String engine_path, Word2PDFSettingData setting_data) throws com.foxit.sdk.PDFException |
| Convert a Word format file to a PDF file. More...
|
|
static boolean | toXML (String src_pdf_path, String src_file_password, String saved_xml_path, String saved_image_folder_path, boolean is_force_to_tagged_pdf) throws com.foxit.sdk.PDFException |
| 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 common.Library.initialize with a key including "Conversion" module.
- See also
- com.foxit.sdk.common.Library
Convert an Excel format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux desktop system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux desktop system, then please ensure that LibreOffice is installed on the machine. Currently, it does not support LibreOffice 7.0 and later version.
- Parameters
-
[in] | src_excel_file_path | Path of a Excel format file. This should not be an empty string. |
[in] | src_file_password | 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] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcetapi.so). For examples, "/opt/kingsoft
/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux desktop system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
[in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
- Returns
- None.
Convert a PowerPoint format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux desktop system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux desktop system, then please ensure that LibreOffice is installed on the machine. Currently, it does not support LibreOffice 7.0 and later version.
- Parameters
-
[in] | src_ppt_file_path | Path of a PowerPoint format file. This should not be an empty string. |
[in] | src_file_password | 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] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcwppapi.so). For examples, "/opt/kingsoft/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux desktop system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
[in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
- Returns
- None.
static void com.foxit.sdk.addon.conversion.Convert.fromWord |
( |
String |
src_word_file_path, |
|
|
String |
src_file_password, |
|
|
String |
saved_pdf_path, |
|
|
String |
engine_path, |
|
|
Word2PDFSettingData |
setting_data |
|
) |
| throws com.foxit.sdk.PDFException |
|
static |
Convert a Word format file to a PDF file.
Currently, this function can be used for Linux armv8 or Linux desktop system. If you are on a Linux armv8 system, then please ensure that WPS professional is installed on the machine. If you are on a Linux desktop system, then please ensure that LibreOffice is installed on the machine. Currently, it does not support LibreOffice 7.0 and later version.
- Parameters
-
[in] | src_word_file_path | Path of a Word format file. This should not be an empty string. |
[in] | src_file_password | 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] | engine_path | In linux armv8 system, it is used to represent the path of WPS engine(librpcwpsapi.so). For examples, "/opt/kingsoft/wps-office/office6". It can be empty. Default path: "/opt/kingsoft/wps-office/office6". In linux desktop system, it is used to represent the path of LibreOffice engine(soffice.bin), and it can not be empty. For examples, "/usr/lib/libreoffice/program". |
[in] | setting_data | (Reserved, unsupported yet)Setting data used for converting. |
- Returns
- None.