Foxit PDF Conversion SDK
com.foxit.sdk.conversion.pdf2md.PDF2Md Class Reference
Inheritance diagram for com.foxit.sdk.conversion.pdf2md.PDF2Md:
com.foxit.sdk.common.Base

Public Member Functions

synchronized void delete ()
 Clean up related C++ resources immediately. More...
 
- Public Member Functions inherited from com.foxit.sdk.common.Base
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...
 

Detailed Description

This class can be used to convert PDF format files to Markdown files.

Member Function Documentation

◆ convertToMarkdown()

static boolean com.foxit.sdk.conversion.pdf2md.PDF2Md.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
static

Convert a PDF format file to a Markdown file.

Parameters
[in]src_pdf_file_pathPath of a PDF format file. This should not be an empty string.
[in]src_file_passwordPassword for the input file. Pass an empty string if no password.
[in]saved_md_pathPath of the saved Markdown file as conversion result. This should not be an empty string.
[in]saved_image_dir_nameName 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"). Passing a path (containing '/', '\' or ':') will throw com.foxit.sdk.common.Constants.e_ErrParam . If null or empty, images will be saved to a default directory named <md_basename>_images next to the output Markdown file.
[in]setting_dataA object for conversion settings. Default: default values.
Returns
true means success, while false means failure.

◆ delete()

synchronized void com.foxit.sdk.conversion.pdf2md.PDF2Md.delete ( )

Clean up related C++ resources immediately.

Returns
None.
Note
Once this function is called, current object cannot be used anymore.