1.1.0 • Published 2 years ago
@axway-api-builder-ext/api-builder-plugin-fn-pdf v1.1.0
@axway-api-builder-ext/api-builder-plugin-fn-pdf
PDF flow-node for API Builder provides functions to generate and parse PDF files.
Install
Install within an API Builder project using:
npm install @axway-api-builder-ext/api-builder-plugin-fn-pdf
Methods
The following sections provide details of the PDF flow-node methods.
Generate PDF from markdown
Generates PDF from markdown text using https://www.npmjs.com/package/md-to-pdf.
Parameters
Parameter | Type | Description | Configuration selection | Required |
---|---|---|---|---|
Markdown | string | A github flavored markdown string. | Selector, String | Yes |
Outputs
Output | Type | Description | Save output value as: |
---|---|---|---|
Next | any | The PDF data. | $.pdf |
Error | any | The PDF generation failed. | $.error |
Parse PDF data
Parses a PDF using https://www.npmjs.com/package/pdf-parse.
Parameters
Parameter | Type | Description | Configuration selection | Required |
---|---|---|---|---|
Data | Buffer | A PDF Buffer. | Selector, Object | Yes |
Outputs
Output | Type | Description | Save output value as: |
---|---|---|---|
Next | any | The parsed PDF. | $.parsedPdf |
Error | any | PDF parsing failed. | $.error |