public class CPDFConversion
extends java.lang.Object
Constructor and Description |
---|
CPDFConversion() |
Modifier and Type | Method and Description |
---|---|
static void |
cancel() |
static ErrorCode |
startPDFToExcel(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
ExcelOptions options)
Converts a PDF file to Excel format.
|
static ErrorCode |
startPDFToHtml(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
HtmlOptions options)
Converts a PDF file to HTML format.
|
static ErrorCode |
startPDFToImage(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
ImageOptions options)
Converts a PDF file to a series of images.
|
static ErrorCode |
startPDFToJson(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
JsonOptions options)
Converts a PDF file to structured JSON format.
|
static ErrorCode |
startPDFToMarkdown(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
MarkdownOptions options)
Converts a PDF file to Markdown format.
|
static ErrorCode |
startPDFToPpt(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
PptOptions options)
Converts a PDF file to PowerPoint format.
|
static ErrorCode |
startPDFToRtf(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
RtfOptions options)
Converts a PDF file to RTF (Rich Text Format).
|
static ErrorCode |
startPDFToSearchablePdf(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
SearchablePdfOptions options)
Converts a PDF file to a searchable PDF.
|
static ErrorCode |
startPDFToTxt(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
TxtOptions options)
Converts a PDF file to plain text format.
|
static ErrorCode |
startPDFToWord(java.lang.String filePath,
java.lang.String password,
java.lang.String outputPath,
WordOptions options)
Converts a PDF file to Word format.
|
public static ErrorCode startPDFToWord(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, WordOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the Word file will be saved.options
- The Word conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToExcel(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, ExcelOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the Excel file will be saved.options
- The Excel conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToPpt(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, PptOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the PowerPoint file will be saved.options
- The PowerPoint conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToHtml(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, HtmlOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the HTML file will be saved.options
- The HTML conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToImage(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, ImageOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The directory where the images will be saved.options
- The image conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToMarkdown(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, MarkdownOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the Markdown file will be saved.options
- The Markdown conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToRtf(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, RtfOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the RTF file will be saved.options
- The RTF conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToTxt(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, TxtOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the TXT file will be saved.options
- The TXT conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToJson(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, JsonOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the JSON file will be saved.options
- The JSON conversion options.ErrorCode
indicating the result of the conversion.public static ErrorCode startPDFToSearchablePdf(java.lang.String filePath, java.lang.String password, java.lang.String outputPath, SearchablePdfOptions options)
filePath
- The path to the input PDF file.password
- The password for the PDF file, or empty if not encrypted.outputPath
- The path where the searchable PDF will be saved.options
- The searchable PDF conversion options.ErrorCode
indicating the result of the conversion.public static void cancel()