This post will provide step by step instructions for converting any web page to a PDF and then emailing that PDF as an attachment using IFTTT (If This Than That). This post assumes you have an account with IFTTT already.
Step 1: Sign up for free
Step 2: Test out the Url to PDF conversion.
Open a new browser window and copy and paste the url below. Replace {ApiKey} and {Url} with your Api Key from api2pdf.com and a url of your choice that you want to convert to a PDF.
https://v2018.api2pdf.com/wkhtmltopdf/url?url={Url}&apikey={ApiKey}
It should generate a PDF from that url you provided. If so, you’re all set to create your applet on IFTTT.
Step 3: Setup the IFTTT Applet Trigger
Step 4: Setup the IFTTT Applet Action
https://v2018.api2pdf.com/wkhtmltopdf/url?url={{Value1}}&apikey={{Value2}}
Step 5: Call your webhook with the url you want to convert to pdf.
https://maker.ifttt.com/trigger/pdf_requested/with/key/{IFTTT_KEY}?value1={Url}&value2={ApiKey}
When you replace those variables in the url, a PDF of the url will be created and emailed based on the action settings you configured in the applet. That’s all!
Tags: generate-pdf, ifttt, url-to-pdfComments are closed.