action api2pdf_wkhtmltopdf_from_url_get {
label: "Convert URL to PDF"
description: "Convert a URL or Web Page to PDF using WkHtmlToPdf on AWS Lambda. This GET request is for convenience and does not support advanced options. Use the POST request for more flexibility.\n### Authorize via Query String Parameter\n**apikey=YOUR-API-KEY**\n### Example\n``` https://v2018.api2pdf.com/wkhtmltopdf/url?url={UrlToConvert}&apikey={YourApiKey} ``` "
provider: api2pdf
method: GET
path: "/wkhtmltopdf/url"
encoding: json
input: {
type: "object"
properties: {
output: {
type: "string"
}
url: {
type: "string"
}
}
required: ["url"]
additionalProperties: false
}
output: {
type: "object"
properties: {
cost: {
type: "number"
description: "Cost of the operation (mbIn + mbOut) * $.001"
}
mbIn: {
type: "number"
description: "The amount of megabytes of bandwidth used to process the pdf"
}
mbOut: {
type: "number"
description: "The amount of megabytes of bandwidth generated from the resulting pdf"
}
pdf: {
type: "string"
description: "A url to the PDF that will exist only for 24 hours"
}
success: {
type: "boolean"
description: "Will be true if the operation suceeded"
}
}
}
}