🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Home Add-ons Upload Page Counter & Print Pricing
Premium Integration

Gravity Forms
+ Upload Page Counter & Print Pricing

Count the pages of files uploaded to Gravity Forms and price by the page. PDF (including PDF 1.5+ files with object streams and encrypted files that open without a password), Word DOCX, PowerPoint PPTX and images are counted on your own server the moment they are uploaded. Each file shows its page count on the form with a running total, and the total goes into a read-only Number field for calculations and product prices, such as pages x price per page x copies with colour and double-sided options. Set minimum and maximum pages, show a blank-pages note, and block files that cannot be counted or allow them with a note. Counts are saved on the entry, available as merge tags and exported as columns. No outside connection.

User User User User
+2k
4.9/5
Trusted by 2,000+ Agencies
Upload Page Counter & Print Pricing

Watch it in action

Gravity Forms Upload Page Counter Setup Guide: Count PDF Pages & Price by the Page

Video setup guide: Gravity Forms Upload Page Counter

Core Features

Count pages of uploaded files on your own server: single-file and multi-file File Upload fields
PDF 1.0 to 2.0, including PDF 1.5+ object streams, re-saved (incremental) files and damaged cross-reference tables
Encrypted PDFs that open without a password are counted; files that need a password are flagged
Word DOCX saved page count, PowerPoint PPTX slides, images 1 page each, multi-page TIFF by page
Live count beside each uploaded file and a running total under the field
Total pages and number of files into read-only Number fields for calculations and product prices
Price by pages x rate x copies with colour / black and white and single / double-sided options
The server counts again on submit: the price cannot be changed in the browser
Minimum and maximum total pages with your own message ({pages}, {min}, {max})
Blank-pages note; files that cannot be counted blocked with a clear reason or allowed with a note
Per-file counts on the entry screen, {page_count} and {page_count_files} merge tags in notifications
Total pages and Pages per file columns in the entry list and CSV export. Local only, no outside connection

What does it do?

Print shops, copy and scan services, translators, proofreaders and binders all price by the page — but a form can only ask the customer how many pages they think they sent. The Gravity Forms Upload Page Counter & Print Pricing add-on reads the real page count of every uploaded file on your own server and puts it straight into your pricing.

Turn on Count pages on any File Upload field, with one file or many. PDF files are read by a built-in PHP reader that handles modern PDF 1.5+ files with object streams, files that were edited and saved again, damaged cross-reference tables and encrypted PDFs that open without a password; files that need a password are flagged. Word (DOCX) files give their saved page count, PowerPoint (PPTX) files their slides, and every image is one page (a multi-page TIFF counts its pages).

The count appears beside each file as soon as it is uploaded, with a running total under the field. The total pages and the number of files go into read-only Number fields, so a calculation such as pages × price per page × copies, with colour or black and white and single or double-sided options, prices the order before payment. The server counts again on submit, so the price cannot be changed in the browser. Set a minimum and maximum number of pages with your own message, show a note that blank pages are counted, and choose whether files that cannot be counted are blocked or allowed with a note — never counted as 0 pages. Every file’s count is saved on the entry: a Page count box on the entry screen, {page_count} and {page_count_files} merge tags for notifications and confirmations, and Total pages and Pages per file columns in the entry list and the CSV export. Everything runs on your own server: no outside connection. For Gravity Forms 2.9 and newer.

How does it work?

When a visitor uploads a file, Gravity Forms stores it in the form’s temporary upload folder; the add-on reads that file on your server and sends back only its page count, which is shown beside the file. For a PDF it reads the cross-reference data (classic tables and PDF 1.5+ cross-reference streams), the objects inside object streams and the page tree; when the page tree is inside an encrypted object stream it decrypts it with the empty password if the file opens without one. A DOCX gives the page count saved by the word processor, a PPTX its slides, and images count as one page. When the form is submitted, the add-on counts every file again before Gravity Forms validates and saves the entry, writes the total into the Number field you chose (ignoring any value typed in the browser), checks the minimum and maximum and the files that could not be counted, and stores each file’s count on the entry. Everything happens on your own server — the add-on makes no outside HTTP request beyond the licence and update checks.

Interface Previews

Screenshot
Screenshot
Screenshot
Screenshot

How do I enable this?

1
Install and activate the add-on, then activate your license key in Forms → Settings → Page Counter.
2
Add a Number field for the total pages (and one for the number of files if you price per file).
3
Open your File Upload field, Advanced tab, tick Count pages and choose the Number field, limits and notes.
4
Use the Number field in a calculation or product price, for example pages × price per page × copies.

Customer Reviews

Submit your review
1
2
3
4
5
Submit
     
Cancel

Create your own review

GravityExtra
Average rating:  
 0 reviews

Have a new Feature idea?

Didn't see a feature in our plugin that you think would be useful? Share with us and let the team be a part of it.

Submit a Feature Request
$59
$39/year
You Save $20
Add any 2nd item, get 30% OFF both!
Use code GFEX30 at checkout
Secure checkout via Stripe
What's Included
  • Automatic Yearly Renewal
  • 1 Year Free Support & Updates (Renewable)
  • 24x7 Dedicated Customer Care
24/7 Support
For any query, connect with us on our support portal.
Submit a Query →
Quick Info
Version 1.0.0
Changelog
Icon
Gravity Forms Upload Page Counter & Print Pricing
8 people are viewing this

Wait! Don't leave
empty-handed 🎁

Grab these exclusive codes to use at checkout!

10% OFF On all products
GFEX10
30% OFF Best Value
On any 2+ items
GFEX30

No thanks, I'll pay full price

Someone just bought this A few seconds ago
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: $49.00/yr
Bundle Special Price: $29.40/yr