=== PDFFixNow Embed Viewer ===
Contributors: phpinterview1991
Tags: pdf, embed pdf, pdf viewer, document
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

PDFFixNow Embed Viewer lets you display PDF files in any WordPress post or page via the PDFFixNow viewer. Supports shortcode and Gutenberg block.

== Description ==

**PDFFixNow Embed Viewer** makes it simple to display PDF documents directly inside your WordPress content. Whether you are sharing a product brochure, a company report, a legal document, or any other PDF file, your visitors can read it right on the page without leaving your site.

= How it works =

The plugin generates an inline viewer powered by [PDFFixNow](https://pdffixnow.com/embed-pdf). Provide a public PDF URL and the viewer is rendered automatically inside an iframe on your post or page.

= Two ways to embed =

**1. Gutenberg Block**
- Open the block editor and click the **+** icon to add a new block.
- Search for **PDFFixNow Embed Viewer**.
- In the block sidebar, paste your PDF URL and set the viewer height in pixels.
- The PDF renders as a preview inside the editor.

**2. Shortcode**
Place the following shortcode anywhere in your content:

`[pdffixnow url='https://example.com/your-file.pdf']`

To customise the height:

`[pdffixnow url='https://example.com/your-file.pdf' height='700']`

The `height` value must be a whole number (pixels). Default is 500.

= Features =

- No API key or account registration required
- Works with any publicly accessible PDF URL
- Mobile-responsive viewer
- PDF viewer is served from PDFFixNow's infrastructure
- Clean reading experience for your visitors
- Supports both the Gutenberg block editor and classic shortcode

= Use of Third-Party Services =

This plugin uses the PDF embed viewer provided by [PDFFixNow](https://pdffixnow.com) to display PDF documents. When a page containing the shortcode or block is loaded, the PDF URL you specified is passed to PDFFixNow's viewer at `https://pdffixnow.com/embed-pdf` so the document can be rendered for your visitor.

No personal visitor data is collected or transmitted by this plugin. The only information sent to PDFFixNow is the URL of the PDF file you choose to display.

By installing and using this plugin you agree to PDFFixNow's [Terms of Use](https://www.pdffixnow.com/terms-of-use) and [Privacy Policy](https://www.pdffixnow.com/privacy-policy).

== Installation ==

= From the WordPress Admin Dashboard =

1. Go to **Plugins → Add New Plugin**
2. Search for **PDFFixNow Embed Viewer**
3. Click **Install Now**, then **Activate**

= Manual Installation =

1. Download the plugin `.zip` file
2. Extract it and upload the `embed-pdf-pdffixnow` folder to `/wp-content/plugins/`
3. Go to **Plugins → Installed Plugins**
4. Find **PDFFixNow Embed Viewer** and click **Activate**

== Frequently Asked Questions ==

= Do I need an account on PDFFixNow to use this plugin? =
No. The plugin works without any account or API key. Just install, activate, and start embedding.

= Can I embed more than one PDF on the same page? =
Yes. Add as many shortcodes or blocks as you need — each one displays an independent PDF viewer.

= How do I control the viewer height? =
Use the `height` parameter in the shortcode (e.g. `height='600'`) or adjust the height field in the Gutenberg block sidebar. The value is in pixels.

= What PDF files can I embed? =
Any PDF file that is publicly accessible via a direct URL. The URL must point to a `.pdf` file that is not behind a login wall, password protection, or a firewall.

= Does this plugin work with PDFs uploaded to my WordPress Media Library? =
Yes. Upload your PDF via **Media → Add New**, then copy the file URL and paste it into the shortcode or block.

= Does this plugin send any personal visitor data? =
No. Only the PDF URL you specify is sent to PDFFixNow's servers to render the viewer. No visitor personal data is transmitted. Please review [PDFFixNow's Privacy Policy](https://www.pdffixnow.com/privacy-policy) for full details.

== Screenshots ==

1. Gutenberg block in the editor — paste a PDF URL and set the height in the sidebar.
2. PDF viewer displayed on a live page on the frontend.
3. Shortcode example inside the Classic Editor.

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release — no upgrade steps required.
