=== PDF Embed Viewer ===
Contributors: snehalpancholi
Tags: pdf, embed, viewer, shortcode, document
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed PDFs inline via [pdf src="..."] shortcode with a native browser viewer and a Google Docs fallback.

== Description ==

PDF Embed Viewer lets you drop a `[pdf]` shortcode anywhere in your content to display a PDF document inline. Uses the browser's native PDF renderer via `<object>` for same-origin files, or optionally routes through Google Docs Viewer for remote PDFs.

**Features**

* `[pdf src="..." height="600" download="true"]` — simple, one-tag embedding.
* Native `<object>` renderer for fast, same-domain PDFs with no external dependency.
* Google Docs Viewer mode for remote PDFs or browsers without a built-in reader.
* Download link below the viewer (enable/disable per-shortcode or globally).
* Configurable height, width, and accessible title.
* Lightweight CSS-only styling with dark mode support.
* Zero JavaScript — fully server-rendered HTML.

== Installation ==

1. Upload the `pdf-embed-viewer` folder to `/wp-content/plugins/`.
2. Activate via **Plugins > Installed Plugins**.
3. Go to **Settings > PDF Embed Viewer** to set defaults.
4. Use `[pdf src="https://example.com/file.pdf"]` in any post or page.

== Frequently Asked Questions ==

= My PDF doesn't show — just a blank box. =
Some browsers require the PDF to be served from the same domain. Try switching to Google Docs Viewer mode in Settings or add `fallback="google"` to the shortcode.

= Does it work on mobile? =
Mobile browsers typically open PDFs in the system PDF viewer when using the native mode. Google Docs Viewer renders inline on most mobile browsers.

= Can I use PDFs from my media library? =
Yes. Upload the PDF via Media > Add New, copy its URL, and use it in the shortcode.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First release.
