Embed PDF for WPForms

Embed PDF for WP Forms

A free and open-source plugin for WordPress. An add-on for WPForms that provides a PDF Viewer field. Drag and drop a PDF Viewer into any WPForms Form. Choose a PDF from the Media Library, or provide a local URL.

DEMO

This is a WPForm.

Please enable JavaScript in your browser to complete this form.
Page: /

FEATURES

  • Drag a PDF Viewer field onto any WPForm
  • Choose PDF from Media Library or provide local URL
  • Set default zoom level
  • Supports multi-page PDFs
  • Supports Dynamic Population

Download the Plugin

Consume the Code

This project is open source, licensed GPL, and maintained on Github. Visit github.com/breakfastco/embed-pdf-wpforms →

SCREENSHOTS

PDF Viewer Demo Preview
Screenshot of a PDF embedded in a WPForm.
PDF Viewer Demo
Screenshot of a PDF Viewer field type in the WPForms form builder.
PDF Viewer Demo
Screenshot of the form builder sidebar showing the PDF Viewer field settings.

TROUBLESHOOTING

“Invalid PDF structure.”

The URL does not point to a PDF. Perhaps the PDF file is missing and returning a 404 File Not Found error. Perhaps the PDF file is only accessible to some logged-in users. When you check the URL, make sure you are not logged in unless you and users of the form will always be logged in with the same permissions.

“Load failed,” “Failed to fetch,” or “NetworkError when attempting to fetch resource.”

The URL points to a PDF that the browser cannot retrieve. PDFs cannot be hosted on other websites unless that other website grants permission for your website to load their files. You may also see this error message when editing the form and selecting the PDF Viewer field: “Only PDFs hosted by this website and other websites listing this website in a CORS header ‘Access-Control-Allow-Origin’ can load in the viewer. Learn about CORS →

Send Feedback

Have an idea for a new feature? If you have feedback about the source code, please Create an issue on Github →.

Something else? Send a private message →