nandakyawwinn / pdf2webview
A package to upload and convert PDF to HTML with style.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nandakyawwinn/pdf2webview
Requires
- php: >=7.2
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0
- tecnickcom/tcpdf: ^6.3
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Overview
The pdf2webview Laravel package provides functionality to upload PDF files, convert them to HTML, and display the HTML content with styling.
Requirements
- PHP >= 7.2
- Laravel Framework >= 6.0
- Tecnickcom TCPDF >= 6.3
Installation
-
Install the package via Composer:
composer require nandakyawwinn/pdf2webview
-
Publish the package assets:
php artisan vendor:publish --provider="Nandakyawwinn\Pdf2webview\Pdf2webviewServiceProvider" -
Configure the package settings in
config/pdf2webview.phpif necessary.
Usage
-
Upload PDF Files:
- Access the PDF upload form at
http://your-app-url/pdf/upload. - Select a PDF file and click "Upload PDF".
- Access the PDF upload form at
-
Convert PDF to HTML:
- Upon upload, the package automatically converts the PDF to HTML using TCPDF.
-
Display HTML Content:
- The HTML content is displayed with styles in the
pdf2webview::pdfBlade view.
- The HTML content is displayed with styles in the
Configuration
You can customize the package behavior by modifying the settings in config/pdf2webview.php.
Support and Issues
For any issues or feature requests, please open an issue on GitHub.
License
This package is open-source software licensed under the MIT License.