1.1.0 • Published 2 years ago

@axway-api-builder-ext/api-builder-plugin-fn-pdf v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@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

ParameterTypeDescriptionConfiguration selectionRequired
MarkdownstringA github flavored markdown string.Selector, StringYes

Outputs

OutputTypeDescriptionSave output value as:
NextanyThe PDF data.$.pdf
ErroranyThe PDF generation failed.$.error

Parse PDF data

Parses a PDF using https://www.npmjs.com/package/pdf-parse.

Parameters

ParameterTypeDescriptionConfiguration selectionRequired
DataBufferA PDF Buffer.Selector, ObjectYes

Outputs

OutputTypeDescriptionSave output value as:
NextanyThe parsed PDF.$.parsedPdf
ErroranyPDF parsing failed.$.error