jumbaeric / laraveldocverter
A versatile laravel package for document conversion between various formats.
dev-master
2024-06-01 01:13 UTC
Requires
- dompdf/dompdf: ^1.0
- phpoffice/phpspreadsheet: ^1.18
- phpoffice/phpword: ^0.22
- spatie/image: ^1.0
- spatie/pdf: ^1.0
- spatie/pdf-parser: ^2.1
- spatie/pdf-to-image: ^2.3
- spatie/pdf-to-text: ^2.3
- spatie/temporary-directory: ^1.0
This package is auto-updated.
Last update: 2025-03-06 00:11:33 UTC
README
Laravel Docverter is a versatile PHP Laravel package for document conversion between various formats. Whether you need to convert RTF, PDF, HTML, Text, Image, Markdown, Excel, or Word documents, this package provides seamless functionality using industry-standard libraries.
Requirements
PHP Version : 7.4 + Laravel Version: 8 +
Installation
You can install the package via Composer:
composer require jumbaeric/laraveldocverter
Usage
use DocVerter\Facades\DocverterFacade; // Convert RTF to PDF DocverterFacade::convert('rtf2pdf', 'example.rtf', 'output.pdf'); // Convert PDF to RTF DocverterFacade::convert('pdf2rtf', 'example.pdf', 'output.rtf'); // Convert HTML to PDF DocverterFacade::convert('html2pdf', 'example.html', 'output.pdf'); // Convert PDF to HTML DocverterFacade::convert('pdf2html', 'example.pdf', 'output.html'); // Convert Text to PDF DocverterFacade::convert('text2pdf', 'example.txt', 'output.pdf'); // Convert PDF to Text DocverterFacade::convert('pdf2text', 'example.pdf', 'output.txt'); // Convert Image to PDF DocverterFacade::convert('image2pdf', 'example.jpg', 'output.pdf'); // Convert PDF to Image DocverterFacade::convert('pdf2image', 'example.pdf', 'output.jpg'); // Convert Markdown to PDF DocverterFacade::convert('markdown2pdf', 'example.md', 'output.pdf'); // Convert PDF to Markdown DocverterFacade::convert('pdf2markdown', 'example.pdf', 'output.md'); // Convert Excel to PDF DocverterFacade::convert('excel2pdf', 'example.xlsx', 'output.pdf'); // Convert PDF to Excel DocverterFacade::convert('pdf2excel', 'example.pdf', 'output.xlsx'); // Convert Word to PDF DocverterFacade::convert('word2pdf', 'example.docx', 'output.pdf'); // Convert PDF to Word DocverterFacade::convert('pdf2word', 'example.pdf', 'output.docx');
Features
- Versatile Conversion: Convert between RTF, PDF, and HTML formats seamlessly.
- Powered by Industry-standard Libraries: Utilizes Dompdf, PHPRtfLite, PhpSpreadsheet, PhpWord, and other libraries for reliable conversion.
- Simple Integration: Easily integrate into your PHP projects with Composer.
- Customizable Options: Easily customize PDF generation options as needed.
Keywords and Tags
- Docverter
- PHP RTF to PDF
- Rich Text Format to PDF
- HTML to PDF
- PDF to HTML
- Dompdf
- PHPRtfLite
- RTF Converter
- HTML Converter
- PDF Generation
- PHP Package
- Composer Package
- Document Conversion
Credits
Dompdf - PDF generation library. PHPRtfLite - RTF generation library. PhpSpreadsheet - Excel generation library. PhpWord - Word generation library.