=== Quick Embed PDF - PDF viewer, PDF embeds, PDF Reader, PDF Embedder ===
Contributors: devbook
Tags: pdf reader, pdf embed, pdf viewer, PDF, pdf download, pdf
Tested up to: 6.7
Stable tag: 1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Quickly embed and display (viewer) PDF files in WordPress posts and pages using a simple shortcode or Gutenberg block.

== Description ==

**100% FREE**

Quick Embed PDF is a lightweight WordPress plugin that allows you to embed PDF files directly into your posts and pages using a simple shortcode or a Gutenberg block. 

== Features ==

* Embed PDF files using the `[qepw_pdf_viewer file="..."]` shortcode or the "Quick Embed PDF" block in Gutenberg.
* Customizable PDF viewer width through the admin settings.
* Supports media library integration for automatic shortcode insertion.
* Includes navigation controls (Previous/Next Page).
* Optional download button for users to download the PDF file.
* Lightweight and responsive design.
* Improved Gutenberg support with a custom block for embedding PDFs.
* Option to disable the download button in the settings.
* Using [Mozilla's PDF.js](https://mozilla.github.io/pdf.js/).
* Best pdf reader wordpress plugin

== Usage ==

### Embedding a PDF using the Shortcode:
To embed a PDF file into your post or page using the plugin, use the following shortcode:
`[qepw_pdf_viewer file="YOUR_PDF_FILE_URL"]`

Replace `YOUR_PDF_FILE_URL` with the actual URL of the PDF file.

### Embedding a PDF using the Gutenberg Block:
1. In the Gutenberg editor, add the "Quick Embed PDF" block from the "Embed" category.
2. Select the PDF file from your media library or upload a new one.
3. The PDF will be embedded and displayed directly in your post or page.

### Customizing the PDF Viewer:
You can customize the width of the PDF viewer in the plugin's settings page. There, you can also enable or disable the download button.

== Installation ==

1. Upload the `quick-embed-pdf` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to the settings page under 'Settings > Quick Embed PDF' to configure options.
4. Use the `[qepw_pdf_viewer file="YOUR_PDF_FILE_URL"]` shortcode to embed a PDF in your posts or pages.
5. Alternatively, use the "Quick Embed PDF" block in Gutenberg to insert PDF files directly.

== Frequently Asked Questions ==

= How do I use the plugin? =
Use the `[qepw_pdf_viewer file="YOUR_PDF_FILE_URL"]` shortcode in your post or page content, replacing `YOUR_PDF_FILE_URL` with the URL of the PDF file you want to embed. Alternatively, use the "Quick Embed PDF" block in Gutenberg for easier embedding.

= How do I embed a PDF into WordPress? =
To embed a PDF into WordPress, you can use either the `[qepw_pdf_viewer file="YOUR_PDF_FILE_URL"]` shortcode or the "Quick Embed PDF" block in the Gutenberg editor. Replace `YOUR_PDF_FILE_URL` with the actual URL of your PDF file.

= Can I customize the PDF viewer's width? =
Yes, you can set a custom width for the viewer on the plugin's settings page.

= Does the plugin support multi-page PDFs? =
Yes, the plugin provides navigation buttons for browsing multi-page PDFs.

= Can I hide the download button? =
Yes, the download button can be disabled in the plugin's settings.

== Screenshots ==
1. Gutenberg block for embedding PDF files.
2. Classic Editor for embedding PDF files.
3. Admin page Quick Embed PDF 
4. Example pdf to post


== Changelog ==

= 1.1 – January 31, 2025 =
* Added Gutenberg block for embedding PDF files directly.
* Improved functionality for embedding PDFs through the block.
* Updated the settings page to allow disabling the download button.
* Minor bug fixes and performance improvements.

= 1.0 =
* Initial release.
* Added shortcode functionality to embed PDF files.
* Integrated PDF.js for rendering PDF files.
* Provided admin settings for customizing viewer width.
* Automatic shortcode insertion for PDFs added through the media library.
* Added Gutenberg block for embedding PDF files easily.
