@ocelotlstudio/cfdi-pdf
Version:
Creates a pdf based on an XML CFDI
14 lines (13 loc) • 465 B
TypeScript
import { Cfdi } from '../parser/dataToCfdi';
import { TDocumentDefinitions } from 'pdfmake/interfaces';
export interface Options {
text?: string;
image?: string;
address?: string;
cadenaOriginal?: string;
}
/**
* Receives a json and returns a pdf content object for pdfmake
* @param {Cfdi} json result json from using parseData function
*/
export declare const generatePdfContent: (json: Cfdi, options: Options) => Promise<TDocumentDefinitions>;