🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms PrintNode Premium Add-on Setup Guide

Updated 6 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Get your PrintNode API key
  4. The settings page
  5. Add a feed to a form
  6. Choosing the printer
  7. Conditions
  8. What your visitors see
  9. On the entry
  10. Retries are safe
  11. Privacy and security
  12. Troubleshooting

Video walkthrough

Gravity Forms PrintNode Add-On Setup Guide: Send Uploaded PDFs to a Printer (WordPress Side)
Video setup guide: Gravity Forms PrintNode Watch on YouTube

The Gravity Forms PrintNode Premium Add-on turns every form submission into a print job on one of your registered PrintNode printers: it can print a file your visitor uploaded on the form, or a PDF (or raw document) at a URL you map from your fields. You choose the printer per feed or fall back to a default, and the created PrintNode job id is kept with the entry so you can show it in notifications. This guide walks through connecting your PrintNode account, picking your printer, adding a feed to a form, and understanding exactly what the add-on sends and stores.

What you need

You need Gravity Forms 2.9 or newer, a WordPress site running PHP 7.4 or newer, and a PrintNode account. PrintNode signup is free and self-serve: you create an account, install a small PrintNode client application on the computer that has your printer, register the printer, and create an API key — no partner approval is needed. The add-on only ever contacts the PrintNode REST API at api.printnode.com; it never talks to any other service.

Get your PrintNode API key

In PrintNode, sign in and open API Keys in your account, then create an API key. This key belongs to your account, so treat it like a password. You paste it into the add-on settings once, and from then on it is stored encrypted on your own site. PrintNode authenticates with the key as an HTTP Basic credential, so it travels only in the Authorization header of the request.

The settings page

In WordPress go to Forms → Settings → PrintNode, activate your GravityExtra license key, then paste your PrintNode API key into the key field and save. The field is a password field, the key is encrypted before it reaches the database, and it is never shown again in clear. Next click Load printers: the add-on asks PrintNode which printers your key can see and lists them, and you click Use next to the one you want to set as the default printer. Use the Test connection button to confirm the key works: it asks PrintNode for your account and reports success, without printing anything.

The PrintNode settings page in Gravity Forms: license key, PrintNode API key, a Load printers picker and a Test connection button
The settings page: your PrintNode API key, a printer picker and a Test connection button.

If your site cannot encrypt secrets (the PHP openssl extension is missing), the add-on tells you, and you can instead define the key with the GFPN_API_KEY constant in wp-config.php. When that constant is set, the key field is replaced with a short note and nothing is stored in the database. You can also fix the default printer with the GFPN_PRINTER constant.

Add a feed to a form

Open a form, go to Settings → PrintNode, and add a feed. Give the feed a name so you can recognise it later, then map the Job title (shown for the print job in PrintNode) and, optionally, a Printer id — leave it empty to use the default printer from the settings. A single form can have several feeds, and each runs when its condition is met.

The PrintNode feed in Gravity Forms: the job title, printer id, document source and document type mapped from the submission
A feed maps the printer, the title and the document to print from the submission.

In the Document section you choose the document source. For a file uploaded on the form, map the file-upload field — for example {Receipt:5} — and the add-on reads that file on your server and sends it to PrintNode as base64. For a document at a URL, map a URL field or a template that resolves to an https link, and PrintNode fetches it. The document type is PDF or raw: PDF sends a pdf_uri or pdf_base64 content type, and raw sends raw_uri or raw_base64 for data that is already in the printer’s language.

Choosing the printer

Every print job goes to one printer, identified by its PrintNode printer id. The simplest setup is to pick a default printer on the settings page and leave the feed’s printer id empty. If you print to different printers depending on the submission — a front-desk printer versus a warehouse printer, say — map the Printer id in the feed from a field, so a hidden field or a drop-down whose values are PrintNode printer ids chooses the printer per submission. When the mapped value is empty, the default printer is used.

Conditions

A conditional-logic rule at the bottom of the feed lets you print only when a rule is met, for example only when an order is marked paid, so one form can serve several cases through separate feeds. You can run several feeds on one form — for instance a feed that prints a kitchen ticket and a feed that prints a customer receipt from the same order.

What your visitors see

Nothing changes for the person filling in the form. They submit as usual and see your normal confirmation. The print job is sent quietly in the background, and if the PrintNode call ever fails the submission is still saved, so you never lose a request.

A front-end Gravity Form whose submission sends a print job to a registered PrintNode printer
A normal form: the visitor never sees anything about PrintNode.

On the entry

Every entry records a note saying what happened, and keeps the id of the PrintNode print job that was sent. The merge tag {printnode_job} is available in your Gravity Forms notifications so you can send the created job id to the customer and to your team. The add-on also fires print-job-sent and print-job-failed events you can attach notifications to.

A Gravity Forms entry screen showing the PrintNode note with the created print job id
The entry note records the print job that was sent for your records.

Retries are safe

The add-on sends each entry’s print job once and never sends it twice. If you resend a feed, or Gravity Forms retries it, a “done” marker on the entry means nothing is printed a second time, and a short per-entry lock stops two simultaneous runs from both printing the same document. If a call fails, you can safely resend once the problem is fixed and it will print exactly once.

Privacy and security

Your PrintNode API key is encrypted at rest with AES-256-GCM and is never shown again, never written to an entry, and never written to a log. The key travels only in the HTTP Basic Authorization header of the request, never in the URL or the request body. A file your visitor uploaded is read on your own server, only from this site’s uploads folder, and sent only to PrintNode — it is never stored or forwarded anywhere else. The add-on fixes the host to api.printnode.com over https with certificate verification on, and never follows a redirect, so the key cannot be sent anywhere else. Error messages have the key stripped out before they are shown or stored.

Troubleshooting

If Test connection fails, re-copy the key from PrintNode and confirm it has not been revoked. If a submission leaves an error note, the note includes the HTTP status from PrintNode (for example a 401 for an invalid key, a 403 when the printer is not owned by the account, a 404 when the printer id is wrong, or a 429 if you are rate limited). Check that your PrintNode client is online and the printer is registered. Fix the cause, then resend the feed from the entry. If you use the constants, remember that GFPN_API_KEY overrides the stored key and GFPN_PRINTER overrides the saved default printer.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr