Creates a PDF from one or more assets which will be merged in the given order.
Simplified helper built on top of convertDocument. Use convertDocument directly for advanced scenarios.
URL to the generated cfgn file, if successful
const resultUrl = await CfgnFiles.createPdfFromAssets( 'MyBundle', [ { type: 'PdfAsset', assetPath: 'quotePdfAsset', context: { subject: 'MySubject', }, }, { type: 'Asset', assetPath: 'Pdf2', }, ], 'QuotePdf', `Your_quote_${new Date().toISOString()}`);
Bundle name where the assets are stored
One or more "assets tasks" which will be merged in the given order
Name which will be used when downloading the file
Generated using TypeDoc
Creates a PDF from one or more assets which will be merged in the given order.
Simplified helper built on top of convertDocument. Use convertDocument directly for advanced scenarios.
Returns
URL to the generated cfgn file, if successful
Example