=== PDF Smart Viewer for Elementor ===
Contributors: deknows
Tags: elementor, pdf, viewer, zoom, responsive
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A simple PDF viewer widget for Elementor that displays PDFs directly on your website.

== Description ==

A simple PDF viewer widget for Elementor that displays PDFs directly on your website.

= What It Does =

* Shows PDFs in a clean viewer with zoom controls
* Works with PDFs uploaded to your site or external URLs
* Responsive design that works on mobile and desktop
* Download and print buttons for users

= Features =

* **PDF Rendering**: Powered by PDF.js for fast and reliable display
* **Zoom Controls**: Zoom in/out with smooth scaling (25% to 300%)
* **Fullscreen Mode**: Immersive viewing experience
* **Download & Print**: One-click download and print functionality
* **Page Navigation**: Intuitive previous/next page controls
* **Responsive Design**: Perfect display on all devices
* **Accessibility**: Keyboard navigation and screen reader support
* **Custom Styling**: Extensive Elementor styling options
* **Multiple Sources**: Support for URL and file upload PDF sources

== Installation ==

1. Upload the plugin to your WordPress site
2. Activate it
3. Make sure you have Elementor installed

== Usage ==

1. Edit a page with Elementor
2. Add the "PDF Smart Viewer" widget
3. Choose your PDF file or enter a PDF URL
4. Customize the settings as needed

== Settings ==

Go to **Settings → PDF Smart Viewer** to configure:
* Default zoom level
* Default height (100% by default)
* Which buttons to show

== Frequently Asked Questions ==

= What are the system requirements? =

* WordPress 5.0 or higher
* Elementor 3.0 or higher
* PHP 7.4 or higher
* Modern browser with JavaScript enabled

= Can I use PDFs from external URLs? =

Currently, the plugin supports PDFs uploaded to your WordPress site. External URL support for AWS, DigitalOcean, Google Drive, and SharePoint is coming soon in a future update.

= Does it support password-protected PDFs? =

Currently, the plugin supports publicly accessible PDFs. Password-protected PDFs are not supported.

= Can I customize the appearance? =

Yes! The widget includes extensive styling options in Elementor for complete customization.

= Is it mobile-friendly? =

Absolutely! The viewer is fully responsive and works perfectly on all devices.

= Can I disable certain controls? =

Yes, you can show/hide individual controls like zoom, fullscreen, download, and print buttons.

= Does it support keyboard navigation? =

Yes, the plugin includes full keyboard navigation support for accessibility.

== Screenshots ==

1. PDF Smart Viewer widget in Elementor
2. Advanced zoom controls and navigation
3. Fullscreen mode demonstration
4. Admin settings panel
5. Responsive design on mobile devices

== Changelog ==

= 1.0.3 =
* **BLINK FIX**: Completely eliminated the visual blink/flash when loading first page in incognito mode
* Canvas is now hidden during first page rendering and only shown when properly oriented
* Added safety timeouts to ensure canvas visibility even if something goes wrong
* Enhanced user experience with seamless PDF loading

= 1.0.2 =
* **MAJOR FIX**: Completely resolved upside-down PDF rendering issue in incognito/private browsing mode
* Implemented comprehensive multi-strategy approach for first page rendering
* Added canvas pre-initialization to prevent context issues
* Enhanced error handling and retry mechanisms

= 1.0.1 =
* Fixed upside-down PDF rendering issue in incognito/private browsing mode
* Changed default height from 600px to 100% for better responsiveness
* Moved remote PDF support to "Coming Soon" section
* Simplified documentation

= 1.0.0 =
* Initial release
* Basic PDF viewer with zoom, navigation, and controls

== Coming Soon ==

* **Remote PDF Support**: Load PDFs from Google Drive, Dropbox, etc.
* **More Features**: Thumbnails, search, annotations

== Support ==

Need help? Contact us at [deknows.com](https://deknows.com)

== Upgrade Notice ==

= 1.0.3 =
Major fix for incognito mode - eliminates visual blink when loading PDFs.

== Credits ==

* **Development**: Mr. Hamad Khan - Founding Partner - Lead Development and Operations @Deknows Inc
* **Development**: Mr. Amanat Ali - Wordpress Site Builder @Deknows Inc
* **PDF.js**: Mozilla Foundation (https://mozilla.github.io/pdf.js/)
* **Elementor**: Elementor Ltd (https://elementor.com/) 