|
Foxit PDF SDK
|
Public Member Functions | |
| synchronized void | delete () |
| Clean up related C++ resources immediately. More... | |
Static Public Member Functions | |
| static boolean | convertToMarkdown (String src_pdf_file_path, String src_file_password, String saved_md_path, String saved_image_dir_name, PDF2MdSettingData setting_data) throws com.foxit.sdk.PDFException |
| Convert a PDF format file to a Markdown file. More... | |
| static String | getVersion () throws com.foxit.sdk.PDFException |
| Get the version of Foxit PDF Conversion SDK. More... | |
| static void | initialize (String library_path) throws com.foxit.sdk.PDFException |
| Initialize the PDF2Md module by loading the Foxit PDF Conversion SDK library. More... | |
| static void | release () throws com.foxit.sdk.PDFException |
| Release the PDF2Md module and unload the Foxit PDF Conversion SDK library. More... | |
This class can be used to convert PDF format files to Markdown files.
|
static |
Convert a PDF format file to a Markdown file.
Function PDF2Md.initialize must be called successfully before calling this function.
| [in] | src_pdf_file_path | Path of a PDF format file. This should not be an empty string. |
| [in] | src_file_password | Password for the input file. Pass an empty string if no password. |
| [in] | saved_md_path | Path of the saved Markdown file as conversion result. This should not be an empty string. |
| [in] | saved_image_dir_name | Name of the directory to save extracted images, placed next to the output Markdown file. Must be a plain folder name without path separators (e.g. "my_images"). If null or empty, images will be saved to a default directory named <md_basename>_images next to the output Markdown file. |
| [in] | setting_data | A PDF2MdSettingData object which is used for converting. Default value: PDF2MdSettingData default values. |
| synchronized void com.foxit.sdk.addon.conversion.pdf2md.PDF2Md.delete | ( | ) |
Clean up related C++ resources immediately.
|
static |
Get the version of Foxit PDF Conversion SDK.
This function should be called after the function PDF2Md.initialize has been called successfully.
|
static |
Initialize the PDF2Md module by loading the Foxit PDF Conversion SDK library.
Before using PDF2Md.convertToMarkdown , please call this function first with the path to the Foxit PDF Conversion SDK library. Function common.Library.initialize must already have been called successfully with a key including "PDF2Md" module right.
| [in] | library_path | Path to the Foxit PDF Conversion SDK dynamic library (e.g. "fpdfconversionsdk_win64.dll" on Windows, "libfpdfconversionsdk.so" on Linux). This should not be an empty string. |
|
static |
Release the PDF2Md module and unload the Foxit PDF Conversion SDK library.
This function should be called after all PDF2Md.convertToMarkdown calls are finished. It must be called after PDF2Md.initialize has been called successfully.