Guide

A PDF API for Make

PDFops is a PDF API. You can use it in Make now: Make's built-in HTTP module has a Make a request action that calls any API, so a scenario can send a row of data to PDFops and get a finished PDF back. This guide builds two real scenarios that way, an invoice from a row of data and a filled PDF form, with screenshots and a 63-second video taken from the Make editor. We have also built a native PDFops app for Make. It is not in Make's app list yet and has no release date, so this guide does not depend on it.

What you can do

These two files came out of the two scenarios below.

An invoice PDF numbered INV-1042 from Northwind Studio to Maple Ridge Dental, with one line item, Website redesign phase 1, 13% tax and a total of CAD 2,712.00.
The invoice from the first scenario: one line item, tax and total in CAD. The checksum Make showed for the run matches this file.
A blank sample application form with empty fields for name, email, date of birth, address, city, postal code, phone and notes.
Before: the blank sample form.
The same application form with name, email, city and phone filled in with sample values.
After: the same file, filled by the second scenario.

The blank form is public, so you can download the sample form and run the same scenario.

Watch the invoice scenario

63 seconds in the Make editor: the two modules, the API key connection, the JSON body, Run once and the result. No sound; captions are on screen.

Job 1: create an invoice PDF from a row of data

The scenario has two modules. The first holds the data. Here it is Tools, Set multiple variables, standing in for a row from a spreadsheet or database module, so the example needs no other account. The second is HTTP, Make a request.

A Make scenario with two modules after a successful run: Row of data (Set variables) and Create invoice PDF (HTTP, POST /api/invoice), both with green check marks.
The finished scenario after Run once. Both modules ran.

1. Add the HTTP module

Click the plus, search for HTTP and choose Make a request. Make's HTTP app also has Download a file, which Job 2 uses.

The Make module picker with HTTP typed in, listing the HTTP app with three modules: Make a request, Download a file and Resolve URL.
Search for HTTP in the module picker.

2. Save your API key in a connection

Set Authentication type to API key and click Add to create a connection. Get a free PDFops key (250 calls a month, no card) and paste it into the API Key field. Keep placement set to In the header, name the parameter X-API-Key, and restrict requests to https://pdfops.dev so the key is only ever sent to PDFops. The key is stored in the connection, so it does not appear in the module's settings, in the scenario or in its run log.

The Make Create a connection window for the HTTP app: connection name PDFops API key, an API Key field shown as dots, placement In the header, parameter name X-API-Key, and an allowed service origin of https://pdfops.dev.
The connection. The key is masked; the one in this screenshot is a placeholder.

3. Point the module at the invoice endpoint

Pick the connection, set the URL to https://pdfops.dev/api/invoice and the method to POST.

The HTTP Make a request settings in Make: Authentication type API key, connection PDFops API key, URL https://pdfops.dev/api/invoice and method POST.
Authentication, connection, URL and method.

Scroll down. Set Body content type to application/json and Body input method to JSON string, then type the body. Click a field in the row of data to drop its value in. Set Parse response to No, so the PDF stays a file instead of being read as text.

The body of the HTTP module in Make: a JSON string with from, to, invoice_number, currency, tax_rate and an items list. The to, invoice_number, currency, item and price values are mapped from the Row of data module.
A JSON body with mapped values. Parse response is No.

The body is plain JSON for the invoice endpoint. Each line item needs a description and a unit price.

4. Run once and read the result

Click Run once, then click the bubble above the HTTP module. A passing run shows statusCode: 200 and a data field that holds the PDF (it starts with the bytes for %PDF). Make also shows the file's size and a checksum.

The Make run result for the HTTP module: operation successful, 1 credit, input values on the left, and on the right output with a data field holding PDF bytes, a SHA1 checksum, headers and statusCode 200.
The run result. data is the PDF file; statusCode is 200.

Pass data to any later module that takes a file, such as an upload or an email attachment, and replace the first module with the one that holds your real data. This guide does not cover those modules.

Job 2: fill a PDF form and save the file

This scenario has three modules: the values to fill in (again Set multiple variables as a stand-in), HTTP, Download a file to fetch the blank form, and HTTP, Make a request to fill it. The same connection from Job 1 is reused.

A Make scenario with three modules after a successful run: Row of data (Set variables), Download the blank form (HTTP) and Fill the form (HTTP, POST /api/fill-form), all with green check marks.
The fill scenario after Run once.
  1. Add HTTP, Download a file with the URL of your blank PDF. Here it is https://pdfops.dev/application-form.pdf.
  2. Add HTTP, Make a request. Use the same connection, the URL https://pdfops.dev/api/fill-form and the method POST.
  3. Set Body content type to multipart/form-data and add three fields.

Field 1 is named pdf, with the type File. Map Data from the Download a file module and give it a file name. Field 2 is named fields, a Text field holding a JSON object of field names and values. Field 3 is named flatten with the value true, which bakes the values into the page so the result is not editable. Leave Flatten out if you want the fields to stay editable.

The HTTP module in Make with a multipart body. Field 1 is named pdf with type File, Data mapped from the HTTP Download a file module, and file name application-form.pdf.
Field 1: the blank PDF, mapped from the Download a file module.
More of the multipart body in Make: a fields value with JSON keys applicant_name, email_addr, city and phone_no, each mapped from the Row of data module, and a flatten field set to true. Parse response is No.
Fields 2 and 3: the JSON of values, mapped from the first module, and flatten.

Field names are often not the labels printed on the page. The sample form prints "Full name" and "Email", but its fields are called applicant_name and email_addr. Find the real names by dropping the blank PDF into the free Form-Field Inspector. Checkboxes take true or false; dropdown and radio values must be one of the field's options.

Run once. As in Job 1, the HTTP module returns statusCode: 200 and the filled PDF as data.

The Make run result for the fill-form HTTP module: operation successful, 1 credit, a data field holding PDF bytes with a SHA1 checksum, and statusCode 200.
The run result for the fill step.
The HTTP Make a request settings for the fill step: API key authentication with the PDFops API key connection, URL https://pdfops.dev/api/fill-form and method POST.
The settings of the fill step, above the body.

What the native PDFops app will add

We have built a native PDFops app for Make. It is not listed yet, and we have not yet sent it to Make for review. Make reviews every public app before it appears in the app list, and we cannot say how long that takes, so keep using the HTTP module for now. The app is meant to replace the JSON and multipart typing above with ready-made fields and file pickers, and to keep the key in one connection. These are the modules it has:

ModuleWhat it does
Get a PDF form's fieldsReturns a form's fillable fields with names, types and options.
Fill a PDF formFills the fields of a fillable PDF and returns the filled file.
Add fillable fields to a PDFAdds text, checkbox, radio, dropdown and signature fields at exact positions.
Get PDF propertiesReturns page count and sizes, title, author, dates and form information.
Extract text and tables from a PDFReads the text layer page by page, with lines, positions and tables.
Extract tables from a PDF to ExcelReturns the tables of a PDF as an Excel workbook, one sheet per table.
Find text in a PDFFinds a word, phrase or pattern and returns each hit with its page and position.
Create an invoice PDFBuilds an invoice from sender, recipient and line items, with a Factur-X option.
Create a PDF from HTMLRenders an HTML string to PDF. JavaScript is off.
Create a PDF from text, Markdown or CSVLays out text, Markdown or CSV as a PDF.
Create a PDF from imagesMakes one page per JPG or PNG image.
Merge PDFsJoins two or more PDFs, in the order you list them.
List split PDF partsSplits a PDF into parts and returns each part as its own file.
Extract pages from a PDFBuilds a new PDF from the pages you pick.
Delete pages from a PDFBuilds a new PDF without the pages you pick.
Rotate pages in a PDFRotates all pages, or the ones you pick.
Add page numbers to a PDFPrints a page number on every page, or the pages you pick.
Stamp text or a barcode on a PDFStamps text, QR codes and barcodes at exact positions.
Add a watermark to a PDFAdds a text watermark to all pages, or the ones you pick.
Attach files to a PDFEmbeds files, such as an XML invoice, inside a PDF.
Update PDF propertiesSets title, author, subject, keywords and creator.
Protect a PDF with a passwordEncrypts a PDF so it needs a password to open.
Unlock a PDFRemoves print, copy and edit restrictions. It does not guess passwords.
Make an API callCalls any PDFops endpoint that is not covered by another module.

When the app is listed, this page will say so. Until then, everything above works as shown.

Limits and quotas

Errors you may see

The HTTP module's Return error if HTTP request fails option is on by default, so a rejected call fails the run and Make shows the response.

What you seeWhat it meansWhat to do
invalid_api_key (HTTP 401)The key is unknown, revoked or mistyped. Keys start with pdfops_live_.Edit the connection and paste the key again. Get a free one if you need it.
rate_limited (HTTP 429)You have used all the calls your plan allows this calendar month (UTC).Wait for the 1st of next month, or choose a larger plan on the pricing page.
request_too_large (HTTP 413) or pdf_too_largeThe request is over 4.5 MB, or one PDF is over 4 MB.Use a smaller PDF.
unknown_field (HTTP 400)A name in the fields JSON does not match any field in the PDF.Check the exact names with the Form-Field Inspector. The error text suggests close matches.

Frequently asked

Is there a PDFops app in Make?

Not yet. PDFops works in Make today through Make's built-in HTTP module, as this guide shows. We have built a native PDFops app for Make, but it is not in Make's app list: it has to pass Make's review first, and we cannot say when that will happen.

Do I need an API key?

A free key is the better choice in Make. It is free: 250 calls a month for an email address, no card. Without a key, calls are limited to 100 per IP address per month, and the limit follows the address your request comes from rather than your account.

Does this work on Make's free plan?

Yes. Both scenarios in this guide were built and run on a free Make account. Each module that runs uses Make credits (the PDFops call in the screenshot used 1 credit), so check Make's own pricing for how many runs your plan covers.

Where does the PDF go after the run?

The HTTP module returns the PDF as a file in its data output. Pass that to any later module that accepts a file, such as a cloud storage upload or an email attachment. This guide stops at the run result and does not cover those modules.

Is PDFops a Make partner?

No. PDFops is an independent service and is not endorsed by Make. The Make sign-up link on this page is an affiliate link, which is disclosed next to it.

Try it in Make

Get a free PDFops key, then build the two-module scenario above. You can also test your own PDF in the playground first.

If you do not have a Make account yet, you can sign up for Make here. That is an affiliate link: if you later pay for a Make plan, PDFops may earn a commission from Make, at no extra cost to you. PDFops is an independent service, not a Make partner. See our privacy policy.