import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pdf_app_net: {
type: "app",
app: "pdf_app_net",
}
},
async run({steps, $}) {
const data = {
"fileUrl": `https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf`,
"pagesPerSplit": `1`,
"async": `false`,
"fileName": `MyPDF`,
}
return await axios($, {
method: "post",
url: `https://api.pdf-app.net/splitt_PDF`,
headers: {
"Authorization": `${this.pdf_app_net.$auth.api_key}`,
},
data,
})
},
})
Convert an image from a URL to a PDF File with PDF-app.net. See the documentation
Split a PDF into multiple PDFs containing the specified number of pages. See the documentation
PDF-app.net uses API keys for authentication. When you connect your PDF-app.net account, Pipedream securely stores the keys so you can easily authenticate to PDF-app.net APIs in both code and no-code steps.