public class PDFConvertServer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convert(java.lang.String license,
byte[] filebytes)
Convert a PDF file to csv, all default options.
|
static ConverterResults |
convert(java.lang.String license,
java.io.File ifile)
Convert a PDF file to csv, with all default options
|
static ConverterResults |
convert(java.lang.String license,
java.lang.String filename)
Convert a PDF file to CSV, with all default options
|
static ConverterResults |
convert(java.lang.String product,
java.lang.String license,
byte[] byteinput,
OptionsPDF options)
Convert a byte array representing a PDF file to POJO transactions
|
static ConverterResults |
convert(java.lang.String product,
java.lang.String license,
java.io.File ifile,
OptionsPDF options)
Convert a PDF file to csv format, with a specified product name and options.
|
static ConverterResults |
convert(java.lang.String product,
java.lang.String outputFormat,
java.lang.String license,
java.io.File ifile,
OptionsPDF options)
Convert a PDF file to any supported format, with a specified product name and options.
|
static java.util.List<ConverterResults> |
convertMultiple(java.lang.String product,
java.lang.String license,
byte[] byteinput,
OptionsPDF options)
Convert a byte array representing a PDF file to POJO transactions, processing multiple monthly statements and/or accounts
|
static java.util.List<ConverterResults> |
convertMultiple(java.lang.String product,
java.lang.String license,
java.io.File ifile,
OptionsPDF options)
Convert a byte array representing a PDF file to csv output, processing multiple monthly statements and/or accounts
|
static void |
main(java.lang.String... argv)
String based Main program, can be used to do conversion with default options.
|
public static void main(java.lang.String... argv)
arg0
- license codearg1
- filepath to convert.
The converter will generate a .csv and .log file with the same name in the output folder.public static ConverterResults convert(java.lang.String license, java.lang.String filename)
license
- license codefilename
- file name string with full file path of PDF file to convert. The converter will generate a .csv and .log file with the same name in the output folder.public static ConverterResults convert(java.lang.String license, java.io.File ifile)
license
- - String with MoneyThumb license codeifile
- File object of PDF input file to convert. The converter will generate a .csv and .log file with the same name in the output folder.public static java.lang.String convert(java.lang.String license, byte[] filebytes)
license
- license codefilebytes
- byte[] array of PDF file to convertpublic static ConverterResults convert(java.lang.String product, java.lang.String license, java.io.File ifile, OptionsPDF options)
product
- - String with product name of product being licensed. For example, "pdfinsights" or "pdf2csv"license
- - String with MoneyThumb license codeifile
- - File object of input PDF file to convert, must have a .pdf extension. Output files will be created with the same file and appropriate extension
in the same folder as the input file. For example, a pdf2csv conversion would normally create both a .csv file and a .log file.options
- OptionsPDF to specify options for PDF conversionpublic static ConverterResults convert(java.lang.String product, java.lang.String license, byte[] byteinput, OptionsPDF options)
product
- - String with product name of product being licensed. For example, "pdfinsights" or "pdf2csv"license
- - String with MoneyThumb license codebyteinput
- - Byte array of input PDF file to convertoptions
- OptionsPDF to specify options for PDF conversionpublic static java.util.List<ConverterResults> convertMultiple(java.lang.String product, java.lang.String license, byte[] byteinput, OptionsPDF options)
product
- - String with product name of product being licensed. For example, "pdfinsights" or "pdf2csv"license
- - String with MoneyThumb license codebyteinput
- - Byte array of input PDF file to convertoptions
- OptionsPDF to specify options for PDF conversion. Use OptionsPDF.setAccountSeq(-1) and/or OptionsPDF.setMonthSeq(-1)public static java.util.List<ConverterResults> convertMultiple(java.lang.String product, java.lang.String license, java.io.File ifile, OptionsPDF options)
product
- - String with product name of product being licensed. For example, "pdfinsights" or "pdf2csv"license
- - String with MoneyThumb license codeifile
- - input PDF file to convertoptions
- OptionsPDF to specify options for PDF conversion. Use OptionsPDF.setAccountSeq(-1) and/or OptionsPDF.setMonthSeq(-1)public static ConverterResults convert(java.lang.String product, java.lang.String outputFormat, java.lang.String license, java.io.File ifile, OptionsPDF options)
product
- - String with product name of product being licensed. For example, "pdfinsights" or "pdf2csv"outputFormat
- - String with output format, for example "csv", "qbo", "qfx", "ofx", "qif"license
- - String with MoneyThumb license codeifile
- - File object of input PDF file to convert, must have a .pdf extension. Output files will be created with the same file and appropriate extension
in the same folder as the input file. For example, a pdf2csv conversion would normally create both a .csv file and a .log file.options
- OptionsPDF to specify options for PDF conversion