icon picker
Step 2: Coda Data and Action Setup

megaphone
I create this Pack to use in my own Coda project. And now I release it to everyone.
If you find it useful, please consider sign up though my affiliate link:
It won’t cost you more, and it will help me support the pack. Thank you! 🙏🙏🙏

Install the PDF Generator pack.
Action: Create PDF
Create PDF
Template ID: the idea of the PDF template you wish to auto-fill
Filename: this name will be used for the download file
Data: data needs to be in the following JSON format
{
'key1': 'value1',
'key2': 'value2',
'key2': 'value3'
}
In order to have the JSON formatted properly, it is recommended to use
the built-in function: BuildData()
Result Column: NOT OPTIONAL as it will hold the download link for the PDF

Data builder: BuildData()
BuildData(
key1, value1,
key2, value2,
key3, value3,
...
)
The keys need to be a text and identical to the field name in CraftMyPDF.
{
'productID': 'value1',
'productName': 'value2',
'color': 'value3'
}

BuildData(
'productID', ProductID,
'productName', ProductName,
'color', Color
)

In the table below, Data column is generated with BuildData() function while the Create PDF column run the Create PDF button.

ProductID
ProductName
Color
Data
Create PDF
Download Link
1
A01_65
Pasta Plate
Red
{"productID":"A01_65", "productName":"Pasta Plate", "color":"Red"}
Generate PDF
2
A02_49
Coffee Mug
Grey
{"productID":"A02_49", "productName":"Coffee Mug", "color":"Grey"}
Generate PDF
3
A03_17
Baking Sheet
Metallic
{"productID":"A03_17", "productName":"Baking Sheet", "color":"Metallic"}
Generate PDF
There are no rows in this table

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.