PDFMonkey is the solution to handle your PDF generation needs.
The PDFMonkey API on Pipedream allows you to automate the creation of PDF documents from dynamic data sources. You can generate invoices, reports, tickets, or any customized document based on templates you define. With Pipedream’s serverless platform, you can trigger PDF generation from a multitude of events, such as form submissions, scheduled times, or changes in a database, and then perform actions like sending these PDFs via email, storing them in cloud storage, or updating records in a CRM.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdfmonkey: {
type: "app",
app: "pdfmonkey",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pdfmonkey.io/api/v1/current_user`,
headers: {
Authorization: `Bearer ${this.pdfmonkey.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})