
Automate Factur-X and ZUGFeRD e-Invoices in Python with PDF.co
15 MIN READ
Automatically create a PDF copy of a sent Mailchimp campaign and deliver it as a Gmail attachment using PDF.co and Zapier.
You’ll need accounts for Mailchimp, PDF.co, Zapier, and Gmail.
Create a Zap and select Mailchimp → New Campaign.
Connect your Mailchimp account, select the Audience, and set Status to sent campaigns.
Test the trigger and select a campaign containing an Archive URL. Open that URL to confirm that the campaign’s webpage is accessible without signing in.
Add PDF.co → HTML to PDF Converter.
Connect your PDF.co account through OAuth, then configure:
mailchimp-campaign.pdf, or build a filename using the campaign name.See the HTML to PDF action documentation for additional settings.
Test the action. Open the returned url and check the campaign’s text, images, and page layout.
Add Gmail → Send Email and connect your Gmail account.
Configure the email:
Zapier downloads the PDF from the mapped URL and attaches it to the email. See Zapier’s file-handling guide.
Test Gmail using your own email address. Confirm that the message arrives and the attached PDF opens correctly.
Set the intended recipient, then publish the Zap. Matching Mailchimp campaigns will be converted to PDF and emailed automatically.
Create an account, get an API key and test a request.