Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
This is the legacy Gravity PDF v4 documentation which is NOT supported. Go to the latest documentation.
Weird characters showing up instead of PDF

When rendering PDFs, Gravity PDF sets a DONOTCACHEPAGE constant that is suppose to prevent any caching plugin from running when we display the PDFs. We tested all popular caching plugins with Gravity PDF and out of the box there were no issues. However, there are edge cases that can cause caching plugins to try apply cache techniques to the PDF anyway. When that happens you may see weird characters on the screen instead of your PDF document (for those technically savvy, we narrowed this down to a Gzip Compression issue).

To test if there is a conflict between Gravity PDF and your caching plugin just temporarily deactivate the caching plugin and see if the problem with the PDF persists. If the PDF starts displaying correctly you’ve found the conflict. If your caching plugin allows you to manually prevent caching on certain URLs it’s very easy to resolve. Just exclude /pdf/ from being cached and retest.

Exclude PDFs from WP Super Cache

Under the Advanced Tab in WP Super Cache you can exclude PDFs by include `/pdf/` in the “Exclude Strings” section.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Gravity PDF 40K Active Installs Celebration! Take 20% off any products with coupon 40KMILESTONE (this week only)Visit Store
+ +
Scroll To Top

Choose your currency:

Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)