PDF Generator API

Easily create transactional PDF documents from your Wix Velo site

Whether you need to create invoices, packing slips, contracts or labels, PDF Generator API helps you easily create the document templates and generate polished documents with the data you already have available. You can even allow your users to modify their templates without any development effort.

You can use the free Sandbox Account for 30 days to evaluate and integrate the API. The Sandbox Account allows you to make 2500 merges per month.

PDF Generator API Capterra Reviews (4.6)
PDF Generator API Software Advice Reviews (4.7)
PDF Generator API - Press Play to view introduction

Introduction to Wix Velo

Wix Velo is a full-stack development platform that empowers you to build, manage and deploy professional web apps rapidly. You can use PDF Generator API to quickly generate PDF documents using the data you already have in your Velo site (e.g. store orders, database records etc.). You can find the example integration built with Velo and PDF Generator API here.


Wix Velo_PDF Generator API

Generate a PDF with data from your Wix site

It the previous examples we have used static object as the data parameter value, but it is also possible to use your data from Wix database. The ability to use data directly from your database gives you a lot of possibilities to generate transactional documents like invoices, packing slips, certificates and reports. In the example repository you can find getStoreProducts function in backend/datasource.jsw which shows how to get your product records from Wix database.

View code examples

Send generated PDF via email

Most of the transactional email APIs (e.g SendGridMailchimp) allow you to add attachments to your email as base64 encoded content. You can use the same generatePDF function to generate the base64 PDF content and add it directly to your email API request.

View code examples

Generate a URL to PDF

Our API allows you to generate PDF and store it temporarily (for 30 days) to our service. You can access the generated PDF via unique URL that you receive as API request response. You can use the generatePDFUrl function that you can find in backend/pdfapi.jsw. You can use the link to open generated PDF from your application without storing it on your application.

View code examples

Generate a PDF and save to Wix database

You can generate base64 encoded PDF file that you can store to your Wix database and later re-use to send emails, display to user or prompt download.

View code examples

How PDF Generator API works?

Don’t worry about the PDF generation layer in your software - we will handle it.

Users can edit and manage document templates

We provide a workspace logic that allows creating a separate workspace for each of your users where they can store and manage document templates. A new workspace is automatically created whenever you make API requests with a new workspace identifier.

Allow your users to edit document templates

You can embed the document template editor into your application to allow your users to modify their own PDF templates. It is possible to display the editor in a new window/tab or in an iframe.

Powerful Expression language

You can write mathematical and logical expressions to manipulate and customize values displayed in components. Use ternary, arithmetic, bitwise and comparison operators, functions to sum, join and iterate arrays.

Share document templates with your users

You can set up default document templates that can be used as base templates by your users. Whenever they modify a default PDF template a new copy is saved to their workspace.

A wide range of smart components

You can use different components like Text, Table and Barcode and define the formatting for number and date values. It is possible to group, filter and sort lists and tables without a need to modify the data set on the software application side.

Merge PDF template and data via API

Powerful Web API to merge templates with data from your software. Just send the template identifier and JSON data to generate PDF.

Data Security, backed by best practises

We are commited to keep your data safe and we follow the best practices known to us to achieve this goal. We do not save the data used for document generation and in order to comply with data securiity standards like GDPR, we enable you to choose the location where your data is being processed. Read more about our security principles here.

Convert HTML to PDF

Leverage our scalable html to pdf conversion functionality in order to focus all your development time on your core functionality. Building a html to pdf converter is not hard but why waste the time? In addition to that, there are a number of solutions available on the market, but not all of them are capable of generating pdf documents at scale. Learn more about our solution here.

Highly flexible templates.

Document Template Examples

Here is an example of what you can achieve with our PDF editor. Find more of our templated from the link below.

More Templates
Invoice 2 2

Our customers have trusted us to generate millions of PDFs

Here is what they have to say about us...

  • Taavi Hõbejõgi

    Taavi Hõbejõgi

    ERPLY Books

    I would recommend PDF Generator API to everyone that needs to print something into PDF. Think about it: if you are creating software that focuses on accounting then you want to focus on accounting. You shouldn't waste time with coding fancy forms that you can easily drag-drop using PDF Generator API.

  • Kristjan Annus Fleet Complete PDF Generator API

    Kristjan Annus

    Fleet Complete

    We realized early on that developing a PDF creator in-house wouldn't make any sense when there are well-working solutions such as PDF Generator API available on the market.

  • Ben Inman

    Ben Inman


    PDF Generator API allows our customers to quickly design and print multiple document template types for Invoice PDFs, Picking/Packing Slips, Drop Notes, Address labels and pretty much any other document. Building a similar functionality in-house would have cost a lot of money in terms of resources.

Let's set you up

Create your Sandbox Account

You can use the free Sandbox Account for 3 months to evaluate and integrate the API. The Sandbox Account allows you to make 2500 merges per month.

Get Started