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

Gravity Forms Document Scanner Setup Guide

Updated 10 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Add a Document Scanner field
  5. What visitors see
  6. Scanning with the camera
  7. Choosing photos
  8. The corner editor
  9. The page list
  10. What happens on submit
  11. Entries, merge tags and notifications
  12. Multi-page forms and Save and Continue
  13. Using the PDF with Document Packet
  14. How it differs from Photo Capture, Document Packet and File Upload
  15. Privacy and security
  16. Uninstalling
  17. Troubleshooting

Video walkthrough

Gravity Forms Document Scanner Setup Guide: Phone Scans to One PDF, Edges, Filters & Email
Video setup guide: Gravity Forms Document Scanner Watch on YouTube

The Gravity Forms Document Scanner add-on adds a new field type to Gravity Forms: a Document Scanner. Visitors photograph paper pages with their phone camera, or choose photos they already have. Each page is found in the photo, cropped, straightened so it looks like a flat scan, and cleaned up in colour, grey or black and white. When the form is submitted, all pages are joined into one PDF that is stored with the entry. This guide covers installing the add-on, adding the field, every setting, what visitors see, what is stored, merge tags and notifications, how it works with multi-page forms, Save and Continue and Document Packet, and how it differs from our Photo Capture add-on, from Document Packet and from the core File Upload field.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. The field works with the Gravity Forms theme framework and with legacy markup, on single-page and multi-page forms, with or without AJAX submission. The camera needs a secure site (HTTPS), which is what browsers require for any camera access; choosing photos works everywhere. The image work happens in the visitor’s browser and the PDF is made on your own server, so no page ever leaves your site for an outside service. The only outside connection the add-on makes is the usual licence and update check with gravityextra.com.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Document Scanner, enter your GravityExtra licence key and press Activate License.
  • Open any form in the form editor. A Document Scanner button now appears in the Advanced Fields group.

Without an active licence the Document Scanner button is not shown, so the field cannot be added to new forms. Existing scanner fields show a short “not available” note to visitors instead of the scanner (the rest of the form still submits), the page upload endpoint refuses new pages, and every stored entry stays readable: the PDF link, the thumbnails, the merge tags and the export keep working.

Add a Document Scanner field

Add the field from Advanced Fields and give it a clear label such as “Proof of income” or “Signed contract”. Use the description to tell visitors which pages you need, for example “Your last two payslips and a recent utility bill”. Mark the field as required if at least one page must be added. The scanner settings appear in the General tab under the label:

  • Max pages: how many pages one scan may have (1 to 100, default 20). The browser stops adding pages at the limit and the server checks it again on submit.
  • Max total size (MB): the largest total size of all pages together (1 to 64 MB, default 10). Also checked in the browser and again on the server.
  • Paper size: A4 or US Letter. Straightened pages get these proportions and the PDF pages use this size, portrait or landscape like the page.
  • Resolution: Standard (about 150 dpi, the long side of a page is 1,754 pixels) or High (about 200 dpi). Standard is sharp enough to read and print forms and letters and keeps files small.
  • Image quality (50-95): the JPEG quality of each page, default 82. Lower numbers give smaller files.
  • Default look: the look a new page starts with: Colour, Grey or Black & white. Visitors can change it per page.
  • PDF file name: a pattern with merge tags, for example application-{Name:1}-{entry_id}. A short random part is added so the link cannot be guessed, and the name is cleaned to letters, digits and dashes.
  • Attach the PDF to notifications: when “Attach uploaded files” is on (default), on every notification, or never.
  • Offer the camera: show the “Scan with camera” button on devices that have a camera. Choosing photos is always possible.
  • Also keep each page as a JPEG image: besides the PDF, keep every straightened page as its own image, linked from the entry.

What visitors see

The field shows two buttons, Scan with camera and Choose photos, a short hint with the page and size limits, and the list of pages added so far. On phones the buttons are large and the list is one column; nothing scrolls sideways.

Scanning with the camera

Scan with camera opens the rear camera with a dashed page frame in A4 or Letter proportions. The visitor lays the paper flat, ideally on a darker surface, fits it into the frame and presses Capture page. The photo goes straight to the corner editor. After the page is added the camera comes back for the next page; Done closes it. If the browser refuses the camera (the visitor said no, or there is no camera) a clear message says so and the visitor can choose photos instead.

The camera screen of the Document Scanner on a phone-sized dialog: the live camera picture with a dashed A4 page frame, and the Done and Capture page buttons
The camera with the page frame: line the paper up and press Capture page.

Choosing photos

Choose photos opens the normal picker. On a phone it can also take a photo; on a computer the visitor picks photos of documents from a folder. Several photos can be picked at once; the corner editor opens for each of them in turn. A file that is not an image (or cannot be read) is named in a message and not added, so nothing disappears without a word.

The corner editor

For every photo the add-on looks for the page: it turns the photo grey, smooths it, finds the strong edges, keeps the area enclosed by them and picks the largest four-cornered shape, then fine-tunes each side on a sharper copy of the photo. The four corners appear as round handles on the photo with a live preview of the straightened result next to it. The visitor can:

  • Drag a corner onto the corner of the paper (on a phone with a finger). A selected corner also moves with the arrow keys for fine adjustments.
  • Rotate the result by a quarter turn, for a page photographed sideways or upside down.
  • Use whole photo when the photo is already just the page, or Find edges again after moving corners.
  • Choose the look: Colour (the paper is brightened to white, colours kept), Grey, or Black & white (an adaptive threshold that copes with shadows and uneven light, ideal for text).
  • Press Add page (or Save page when adjusting an existing page), or Cancel.
The corner editor: a photo of a payslip lying skewed on a wooden desk with the four blue corner handles on the corners of the paper, and the straightened result preview with Rotate, Use whole photo, Find edges again and the Colour, Grey and Black and white looks
The corners are found automatically; drag any of them, then add the page.

If the edges cannot be found (for example a white page on a white table), the editor says so and keeps the whole photo, so the visitor can drag the corners by hand. If a page cannot be straightened at all, the original photo is kept as it is and the visitor is told. A page that looks blank or too dark is added but clearly flagged in the list, so the visitor can retake it or keep it on purpose. Problems are always shown; a page is never silently dropped.

The page list

Each added page is uploaded to your site straight away and appears in the list with a thumbnail, its number and its size. Pages can be reordered by dragging (on a computer) or with the Move up and Move down buttons (everywhere, also with the keyboard), adjusted again (corners, rotation and look), retaken (the new photo takes the same place) or deleted. If an upload fails, the page shows the reason and a Try again button. The form cannot be sent while a page is still uploading.

The scanned page list in the form: four straightened page thumbnails numbered 1 to 4 with their size, Move up, Move down, Adjust, Retake and Delete buttons, and the page count
Every page is listed in order and can be moved, adjusted, retaken or deleted.

What happens on submit

The field sends only the ordered list of page tokens. On the server the add-on checks again that every page exists, belongs to this form and field and is a real JPEG image, that there are not more pages than the maximum and that the total size is within the limit. Every problem is named in the field’s validation message, for example “You can add at most 6 pages; this scan has 7” or “Page 3 is no longer available. Please retake it.”, so a forged request cannot get around the limits. When everything is in order, the add-on assembles the pages into one PDF with a bundled PDF library: one page per scanned page, A4 or Letter, portrait or landscape like the page, the image scaled to fit and never cropped. If the PDF cannot be made, the visitor is told before the entry is saved.

The PDF is saved in the form’s Gravity Forms upload folder, so your usual upload folder rules and filters apply, together with a small thumbnail of every page (and each page as a JPEG when you switched that on). The field value is the link to the PDF. Pages that were uploaded but never submitted wait in a private folder that the web server does not serve and are removed after 30 days.

Entries, merge tags and notifications

The entry screen shows a Scanned PDF link with the number of pages and the file size, and a numbered thumbnail of every page. The entries list shows “4 pages · PDF” as a link, and the CSV export contains the PDF link.

The entry screen: the Scanned PDF link with the page count and size, and a thumbnail of each of the four pages
The entry shows the PDF link and a thumbnail of each page.

These merge tags work in notifications, confirmations and anywhere Gravity Forms replaces merge tags (the field id is 4 here):

  • {Scan:4} or {Scan:4:url}: the link to the PDF.
  • {Scan:4:pages}: the number of pages, for example “We received {Scan:4:pages} pages”.
  • {Scan:4:size}: the PDF size, for example “812 KB”.
  • {Scan:4:thumbs}: the thumbnail links, one per line.

To attach the PDF to an e-mail, keep the field setting at “When Attach uploaded files is on” and tick Attach uploaded files in the notification, or set the field to attach it to every notification. The {all_fields} merge tag prints the PDF link with the page count.

Multi-page forms and Save and Continue

The scanner works on any page of a multi-page form. Pages added on one step stay when the visitor goes back and forth, because the page list travels with the form and the thumbnails are served from your site. With Save and Continue the page list is saved in the draft; the resume link brings the pages back and the visitor can add, reorder or delete pages before sending. Pages of a saved draft are kept for 30 days, the same as a Gravity Forms draft by default.

Using the PDF with Document Packet

Our Document Packet add-on builds one combined PDF from an entry after it is submitted. When both add-ons are active, Document Packet treats the scanned PDF like an uploaded file: it appears in its list of upload fields and is added to the packet page by page, after the cover and the entry summary.

How it differs from Photo Capture, Document Packet and File Upload

  • Our Photo Capture add-on takes photos with the camera: each shot is saved as its own picture, optionally with a face or document frame drawn over the camera to help framing. It does not find the page, straighten it, filter it or make a PDF. Use it for photos of people, damage, products and places.
  • Our Document Packet add-on works on the admin side after the form is submitted: it merges the entry summary and the files that were uploaded into one packet. It does not help visitors capture paper.
  • The core File Upload field stores whatever file the visitor picks, as it is: a skewed phone photo stays a skewed photo, and five pages are five separate files.
  • Document Scanner is for paper: several pages captured in the form, each cropped and straightened with perspective correction, cleaned up, and delivered as one tidy PDF with the entry.

Privacy and security

  • Edge detection, straightening and filters run in the visitor’s browser; pages are sent only to your own site.
  • The PDF is assembled on your server with the bundled library; no outside service is used.
  • Uploads are checked for the form’s security token, size and image type, and limited per visitor per hour; unfinished pages are stored in a folder with web access denied.
  • PDF file names include a random part, so links cannot be guessed from the entry number.

Uninstalling

Deleting the add-on from the Plugins screen removes its options (licence key and status, settings, upload counters), its scheduled tasks and the folder of unfinished pages. Forms, Document Scanner fields, entries and their PDFs are kept.

Troubleshooting

  • No Document Scanner button in the editor: activate your licence in Forms → Settings → Document Scanner.
  • No camera button: the site must use HTTPS, the device needs a camera, and “Offer the camera” must be ticked. Visitors can always choose photos.
  • Edges not found: put the paper on a darker surface with even light, or drag the corners by hand.
  • “This page has expired”: the page was open for a long time or served from a page cache; reload the page.
  • Files too large: lower the image quality, use Standard resolution or raise the size limit.

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