JSON
Convert JSON to XML
{rootName: string, json: object}: string
XML
Convert XML to JSON
{xml: string}: object
Image
Resize image to specific width and height.
{image:base64, width:number, height:number, output:'jpg' | 'jpeg' | 'png' | 'icon'}: base64
/image/extract
Extract specific images ignoring background from pdf or image.
{files:base64[]}: base64[]
FODT
Create PDF from fodt.
{fodt: base64, pwd?: string}: base64 pdf
/fodt/fill
Fill fodt file and create an PDF.
{fodt: base64, values: object, pwd?: string}: base64 pdf
DOC
Create PDF from doc.
{doc: base64, values:object, pwd?: string}: base64
Fill doc with specific values.
{doc: base64, values:object}: base64
XLS
Read XLS file and converts to json.
{base64: string}: {
sheet_names: string[],
sheet: { [key: string]: {
preview: string[][],
columns: { id: number, name: string }[],
rows: string[][],
}}
}
/xls/pdf
Convert XLS file to PDF.
{xls: base64, pwd?: string}: base64
/xls/sheets
Create XLS from sheets array. Including sheet name.
{sheets: { name: string, data: any[] }[]}: base64
/xls/array
Create XLS from data array.
{data: any[]}: base64
/xls/json
Create XLS from js object.
{json: object}: base64
/xls2/append
Appends data to XLS file.
{base64: string, data: any[]}: base64
PDF
Create native PDF.
{json: object}: base64
/pdf/fill
Fill given PDF with values and return filled PDF. Can apply password to output PDF.
{pdf:base64, values:object, pwd?:string}: base64
/pdf/reduce
Reduce size of an PDF.
{pdf:base64}: base64
/pdf/qr
Tries to read all QR codes from an PDF.
{pdf:base64}: { page: number, qr_codes: string[] | undefined, buffer: base64 }[]
/pdf/barcode
Tries to read all bar codes from an PDF.
{pdf:base64}: { page: number, barcodes: string[] | undefined, buffer: base64 }[]
/pdf/extract
Split PDF to several PDFs according given pages information.
{pdf:base64, pages: number[][]}: base64[]
/pdf/combine
Combine several PDFs into one PDF file.
{pdfs:base64[]}: base64
/pdf/password_remove
Remove password from an PDF. If password is present or is correct.
{pdf:base64, pwd:string}: base64|null
/pdf/password_add
App password to an PDF. Or changes password to new one if old is present or correct.
{pdf:base64, pwd:string, old?:string}: base64|null
HTML
Convert html file to pdf and add html header and footer to every pdf page.
{body: base64, header?: base64, footer?: base64, options?: PDFOptions (puppeteer)}
ZIP
Read asice file and resturn documents in base64, like pdf, doc, xls, etc.
{base64: string}: {filename: string, base64: string}[]}
TRANSLATE
Translate strings to en, sk, de, it, hu, ru, cs languages
{to_translate: string, source_lang: string}: {translated: string[]}
MJML
Convert MJML to HTML
{any}: text/html
ISDOC
Add isdoc attachment to the pdf invoice.
{pdf_base64: string,
invoice: {
DocumentType: 1 | 2 | 3 | 4 | 5 | 6 | 7;
ID: string;
IssuingSystem: string;
IssueDate: Date;
TaxPointDate: Date;
VATApplicable: boolean;
AccountingSupplierParty: {
Party: {
PartyIdentification: { ID: string };
PartyName: { Name: string };
PostalAddress: {
StreetName: string;
BuildingNumber: string;
CityName: string;
PostalZone: string;
Country: { IdentificationCode: string; Name: string };
};
PartyTaxScheme: {
CompanyID: string;
TaxScheme: string;
};
Contact: {
Telephone: string;
ElectronicMail: string;
};
};
};
AccountingCustomerParty: {
Party: {
PartyIdentification: { ID: string };
PartyName: { Name: string };
PostalAddress: {
StreetName: string;
BuildingNumber: string;
CityName: string;
PostalZone: string;
Country: { IdentificationCode: string; Name: string };
};
PartyTaxScheme: {
CompanyID: string;
TaxScheme: string;
};
Contact: {
Telephone: string;
ElectronicMail: string;
};
};
};
InvoiceLines: {
InvoiceLine: Array<{
ID: string;
InvoicedQuantity: number;
LineExtensionAmount: number;
LineExtensionAmountTaxInclusive: number;
LineExtensionTaxAmount: number;
UnitPrice: number;
UnitPriceTaxInclusive: number;
ClassifiedTaxCategory: {
Percent: number;
VATCalculationMethod: number;
VATApplicable: boolean;
};
Item: { Description: string };
}>;
};
TaxTotal: {
TaxSubTotal: {
TaxableAmount: number;
TaxAmount: number;
TaxInclusiveAmount: number;
AlreadyClaimedTaxableAmount: number;
AlreadyClaimedTaxAmount: number;
AlreadyClaimedTaxInclusiveAmount: number;
DifferenceTaxableAmount: number;
DifferenceTaxAmount: number;
DifferenceTaxInclusiveAmount: number;
TaxCategory: {
Percent: number;
VATApplicable: boolean;
};
};
TaxAmount: number;
};
LegalMonetaryTotal: {
TaxExclusiveAmount: number;
TaxInclusiveAmount: number;
AlreadyClaimedTaxExclusiveAmount: number;
AlreadyClaimedTaxInclusiveAmount: number;
DifferenceTaxExclusiveAmount: number;
DifferenceTaxInclusiveAmount: number;
PayableRoundingAmount: number;
PaidDepositsAmount: number;
PayableAmount: number;
};
PaymentMeans: {
Payment: {
PaidAmount: number;
PaymentMeansCode: number;
Details: {
PaymentDueDate: Date;
ID: string;
BankCode: string;
Name: string;
IBAN: string;
BIC: string;
VariableSymbol: number;
ConstantSymbol: string;
SpecificSymbol: string;
};
};
};
}}: string
Extract isdoc from pdf or isdocx.
{name: string, content: string}: ISDOCType