Skip to main content

browserless@1.0.1

createPDF(input, options)

This adaptor exports the following namespaced functions:

http.request(method, path, options)

This adaptor exports the following from common:

as()
combine()
cursor()
dataPath()
dataValue()
dateFns
each()
field()
fields()
fn()
fnIf()
group()
lastReferenceValue()
map()
merge()
scrubEmojis()
source()
sourceValue()
util

Functions

createPDF

createPDF(input, options) ⇒ Operation

Create a PDF from HTML or URL.

Returns: Operation - Returns state with base64 string directly

ParamTypeDescription
inputstringHTML string or URL string
optionsobjectOptional request options

http

These functions belong to the http namespace.

http.request

request(method, path, options) ⇒ Operation

Make a Browserless-authenticated HTTP request operation. This operation always sends requests to the configured Browserless 'baseUrl'.

Returns: Operation - an OpenFn operation returning a state with data and response.

ParamTypeDescription
methodstringHTTP method (e.g. 'GET', 'POST').
pathstringAPI Path (e.g. 'pdf, 'content) joined to the configured 'baseUrl'.
optionsobjectRequest options (body, headers, query, parseAs).

This operation writes the following keys to state:

State KeyDescription