We Built a WordPress PDF Plugin (Here's Why and How to Use It)

LightningPDF now has a WordPress plugin. Generate PDFs from posts, pages, and WooCommerce orders without killing your server. Here's how it works.

By LightningPDF Team · · 5 min read
We Built a WordPress PDF Plugin (Here's Why and How to Use It)
TL;DR: We released a WordPress plugin that turns posts, pages, and WooCommerce orders into PDFs. It uses the LightningPDF cloud API so your server does zero rendering work. Free plugin, 50 PDFs/month on the free plan.

We Built a WordPress PDF Plugin (Here's Why and How to Use It)

WordPress PDF generation has always been rough. If you've used any of the existing plugins, you've probably run into the same problems we kept hearing about: mPDF takes 7 seconds to render a simple invoice. DOMPDF crashes when you throw flexbox at it. And on shared hosting? Good luck.

The root issue is that these plugins try to render PDFs on your WordPress server using PHP libraries that were written before CSS Grid existed. They don't support modern layouts, they eat memory, and they fall apart under any real load.

We already had an API that solves this problem — LightningPDF renders PDFs in the cloud using a native engine (sub-100ms) and a Chromium fallback for complex layouts. So we figured: why not bring that directly into WordPress?

That's what this plugin does. Your WordPress server makes a quick API call, we render the PDF, and your server sends it back to the visitor. No PHP memory spikes, no font configuration, no "Fatal error: Allowed memory size exhausted."

What you can actually do with it

The short version: turn any WordPress content into a PDF.

Posts and pages get a download button that appears below the content. A visitor clicks it, the post content goes to our API, and they get a PDF back. You pick the paper size, orientation, margins, and can add custom CSS that only shows up in the PDF (so you can hide your nav bar, adjust fonts, whatever).

WooCommerce stores get invoices, packing slips, and receipts. You fill in your company details once, set an invoice number format like INV-{YYYY}-{####}, and the plugin handles the rest. Invoices can auto-attach to order emails — so when WooCommerce sends a "your order is complete" email, the PDF invoice rides along with it. Customers can also grab their invoices from My Account without bugging your support team.

There's a shortcode ([lightningpdf]) and a Gutenberg block if you want to place download buttons in specific spots. And if you need to generate PDFs for a hundred posts at once, the bulk action in the posts list does that — it spits out a ZIP file.

For the terminal folks, there's WP-CLI support too:

wp lightningpdf generate 42

The existing WordPress PDF plugins don't do this

We looked at what's already out there, and honestly the landscape is a bit fragmented.

E2Pdf (the biggest one with 500K+ downloads) is actually a form filler. It takes data from Contact Form 7 or Gravity Forms and injects it into a pre-existing PDF with blank fields. It doesn't render HTML to PDF — it maps form data to PDF form fields. Totally different use case.

PDFCrowd's plugin is closer to what we do, but it's basically a "screenshot this webpage as PDF" button. No templates, no WooCommerce integration, and the free version slaps a watermark on everything. Their paid plans start at $1/month for 10 PDFs, scaling up to $2,600/month.

Gravity PDF only works if you use Gravity Forms. If you use WPForms, Contact Form 7, or anything else, it's useless.

None of them offer template management, batch generation, WooCommerce invoice workflows, or a dual rendering engine. There's a real gap here, and that's what we're filling.

Getting started takes about 2 minutes

No exaggeration. Here's the whole setup:

  1. Install the plugin from Plugins → Add New (search "Paperbolt")
  2. Grab a free API key from lightningpdf.dev — no credit card, takes 30 seconds
  3. Paste the key in Paperbolt → Settings and hit Test Connection
  4. Turn on the PDF button
  5. Done

If you want WooCommerce invoices, flip the WooCommerce toggle, fill in your company name/address/logo, and set your invoice number format. Then head to WooCommerce → Settings → Paperbolt to turn on auto-attach for order emails.

Templates and customization

You don't have to use the raw post content as your PDF. The plugin syncs with templates from your LightningPDF account, so you can design something in our template editor and use it from WordPress.

Templates use simple variables — {{title}}, {{content}}, {{author}}, {{date}} — that get swapped with the current post's data. If you don't want to build from scratch, there's a starter library with pre-built designs you can import and tweak.

You can also specify templates per-shortcode:

[paperbolt template="your-template-id" text="Download Report"]

Caching keeps your credit usage low

Nobody wants to burn an API credit every time someone downloads the same post. The plugin caches PDFs using WordPress transients, so the first download hits the API and every subsequent download serves the cached file. The default cache lasts an hour (configurable), and a daily cron job sweeps out stale entries.

In practice, this means a blog post that gets 500 downloads uses 1 credit, not 500.

What it costs

The plugin is free. The API has a free tier with 50 credits/month (one credit = one PDF), and paid plans if you need more:

  • Free — 50/month, no card needed
  • Starter ($9/mo) — 2,000/month, Chromium engine
  • Pro ($29/mo) — 10,000/month, batch API, priority rendering
  • Business ($99/mo) — 50,000/month, everything

Post-processing stuff like compressing, merging, splitting, or password-protecting PDFs doesn't cost credits.

Try it out

  1. Read the full setup guide
  2. Sign up for free
  3. Browse the template marketplace

If something doesn't work or you have a feature request, let us know. We're actively developing this and shipping updates regularly.

Frequently Asked Questions

How do I generate a PDF from a WordPress post?

Install the LightningPDF plugin, enter your API key in the settings, and enable the PDF button. A "Download PDF" button automatically appears on every post. Visitors click it to download the post as a styled PDF document, rendered in the cloud with full CSS support.

Can I generate WooCommerce invoices as PDFs?

Yes. The plugin generates invoices, packing slips, and receipts for WooCommerce orders. You can auto-attach invoices to order emails, let customers download from My Account, and bulk-generate invoices for multiple orders at once.

Does the plugin work on shared hosting?

Yes. Unlike PDF plugins that render on your server using mPDF or DOMPDF, LightningPDF renders in the cloud. Your server makes a lightweight API call — no memory spikes, no timeouts, works on any hosting plan.

Is there a free plan?

Yes — 50 PDF credits per month, no credit card required. The WordPress plugin itself is free regardless of plan.

Can I customize how the PDF looks?

Multiple ways: custom CSS that only applies to PDF output, paper size and margin controls, portrait or landscape orientation, or a fully custom HTML template with variable substitution if you want total control.

L

LightningPDF Team

Building fast, reliable PDF generation tools for developers.

Ready to generate PDFs?

Start free with 50 PDFs per month. No credit card required.

Get Started Free