Dynamic Table Template

Generate this PDF document with a simple API request.

Dynamic Table (basic)

Example JSON

Below is the JSON used to create the dynamic table above. All of the attributes within the data parameter are non mandatory. Supply only what you want to populate on the document.

    
        {
    "template": "table2",
    "font": "Roboto",
    "data": {
        "color": "#000000",
        "thead_dark": false,
        "borderless": false,
        "striped": true,
        "compact": false,
        "title": "Dynamic Table",
        "info": "This table was dynamically generated from JSON.",
        "columns": [
            "SKU",
            "Description",
            "Manufacturer",
            "Unit Cost",
            "Quantity"
        ],
        "rows": [
            [
                "PRS3f000011-AH",
                "Men's Pursuit Running Shoes - 10/M - BLACK",
                "Nike",
                "59.99",
                "35"
            ],
            [
                "SBX44733742-BF",
                "Men's Shelby Leather Boots - 10/M",
                "Timberland",
                "99.99",
                "20"
            ],
            [
                "KTR34534535-GT",
                "Gel Venture Trail Runners - 11/M - BLUE",
                "Asics",
                "54.99",
                "12"
            ]
        ]
    }
}
    

Styling

It's easy to change the look and feel of the dynamic table. The template API allows you to easily insert your own logo and specify a custom font.

    
        {
    "template": "table2",
    "font": "Open Sans",
    "font_size": 0.9,
    "font_color": "#32325d",
    "data" : {...}
}
    

Generate as PDF or PNG

By default all templates are generated as a PDF document. If you would like to generate as a PNG image, supply the file_type parameter in your API request:

    
        {
    "template": "table2",
    "file_type": "png",
    "data" : {...}
}
    

Need a custom template?

If you prefer to build your own templates or require more flexibility, be sure to try our HTML to PDF API . We are using the same HTML to PDF API to generate the dynamic table above!

If you need a custom template please contact us to see if we can assist.

Back to templates