
Automate Factur-X and ZUGFeRD e-Invoices in Python with PDF.co
15 MIN READ
This tutorial shows how to generate a completed PDF form whenever a new deal is created in Pipedrive. Zapier retrieves the deal information and sends it to PDF.co to fill a PDF template.
The PDF must contain interactive form fields. Adding text to a non-fillable PDF requires the PDF.co Add Text action instead.
Create a new Zap and configure the trigger:
The sample should include the deal and contact information you want to place in the PDF.
You can choose another Pipedrive trigger, such as Updated Deal Stage, if the PDF should be generated later in the sales process.
Use the PDF.co PDF Inspector to inspect the template and obtain its internal form field names.
These names may differ from the visible labels in the PDF and must be entered exactly.
Add an action to the Zap:
Configure the action:
Use the following format for each form field:
page;fieldName;valueSeparate multiple fields with a pipe character:
0;DealName;[Pipedrive Deal Title]|0;ContactName;[Pipedrive Person Name]Use Zapier’s field picker to replace the bracketed examples with values from the Pipedrive trigger. PDF page numbering starts at 0.
A personalized output name could be:
deal-[Pipedrive Deal ID].pdfTest the PDF.co action and open the returned URL.
Confirm that:
If a value appears in the wrong place or is missing, verify the internal field name with PDF Inspector.
Publish the Zap after the test succeeds.
Whenever the selected Pipedrive event occurs, Zapier will send the deal data to PDF.co and generate a completed PDF form.
PDF.co output URLs are temporary. Add a cloud-storage or email action if the generated document must be retained or delivered automatically.
You now have a complete workflow that creates filled PDF forms from Pipedrive deal data. Additional Pipedrive fields can be included by adding their PDF field mappings to the PDF Filler action.
See the PDF.co PDF Filler documentation for supported field formats and options.
Create an account, get an API key and test a request.