Documentation ¶
Index ¶
Constants ¶
const ( // FormatCSV sets the document to be returned in Comma Separated Values, blank row between pages. FormatCSV = "csv" // FormatXML sets the document to be returned in HTML <table> tags; <td> tags may have colspan= attributes. FormatXML = "xml" // FormatXLSXSingle sets the document to be returned in Excel, all PDF pages on one sheet, blank row between pages. FormatXLSXSingle = "xlsx-single" // FormatXLSXMultiple sets the document to be returned in Excel, one sheet per page of the PDF. FormatXLSXMultiple = "xlsx-multiple" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PDFTables ¶
PDFTables defines a new client for making API calls.
func (*PDFTables) Convert ¶
Convert extracts data from PDF file by calling PDFTables API into supported formats. Supported formats are CSV, XML, XLSX. Returns nil error and creates a file in specified format in the same directory as the PDF file. Upon error (err != nil), no file will be created and appropriate error message will be returned. Example: examples/convert.go Note: `file` parameter only accepts abosulte file path.
func (*PDFTables) GetBalance ¶
GetBalance gets the number of remaining pages. Returns number of pages (integer) and error. Upon error (err != nil), balance returned will be -1 along with appropriate error message. Example: examples/getbalance.go