PHPackages                             jumbaeric/docverter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jumbaeric/docverter

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

jumbaeric/docverter
===================

A versatile PHP package for document conversion between various formats.

1.2.1(1y ago)4644[1 issues](https://github.com/jumbaeric/docverter/issues)MITPHPPHP &gt;=7.4

Since Jun 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jumbaeric/docverter)[ Packagist](https://packagist.org/packages/jumbaeric/docverter)[ RSS](/packages/jumbaeric-docverter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (5)Used By (0)

Docverter
=========

[](#docverter)

Docverter is a versatile PHP 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.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require jumbaeric/docverter
```

Usage
-----

[](#usage)

### RTF to PDF Conversion

[](#rtf-to-pdf-conversion)

```
use DocVerter\RTF2PDFConverter;

$rtfContent = file_get_contents('example.rtf');
$pdfFilePath = 'output.pdf';

$converter = new RTF2PDFConverter($rtfContent, $pdfFilePath);
$converter->convert();
```

### PDF to RTF Conversion

[](#pdf-to-rtf-conversion)

```
use DocVerter\PDF2RTFConverter;

$pdfFilePath = 'example.pdf';
$rtfFilePath = 'output.rtf';

$converter = new PDF2RTFConverter($pdfFilePath, $rtfFilePath);
$converter->convert();
```

### HTML to PDF Conversion

[](#html-to-pdf-conversion)

```
use DocVerter\HTML2PDFConverter;

$htmlContent = file_get_contents('example.html');
$pdfFilePath = 'output.pdf';

$converter = new HTML2PDFConverter($htmlContent, $pdfFilePath);
$converter->convert();
```

### PDF to HTML Conversion

[](#pdf-to-html-conversion)

```
use DocVerter\PDF2HTMLConverter;

$pdfFilePath = 'example.pdf';
$htmlFilePath = 'output.html';

$converter = new PDF2HTMLConverter($pdfFilePath, $htmlFilePath);
$converter->convert();
```

### Text to PDF Conversion

[](#text-to-pdf-conversion)

```
use DocVerter\Text2PDFConverter;

$textContent = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';
$pdfFilePath = 'output.pdf';

$converter = new Text2PDFConverter($textContent, $pdfFilePath);
$converter->convert();
```

### PDF to Text Conversion

[](#pdf-to-text-conversion)

```
use DocVerter\PDF2TextConverter;

$pdfFilePath = 'example.pdf';
$textFilePath = 'output.txt';

$converter = new PDF2TextConverter($pdfFilePath, $textFilePath);
$converter->convert();
```

### Image to PDF Conversion

[](#image-to-pdf-conversion)

```
use DocVerter\Image2PDFConverter;

$imagePath = 'example.jpg';
$pdfFilePath = 'output.pdf';

$converter = new Image2PDFConverter($imagePath, $pdfFilePath);
$converter->convert();
```

### PDF to Image Conversion

[](#pdf-to-image-conversion)

```
use DocVerter\PDF2ImageConverter;

$pdfFilePath = 'example.pdf';
$imageFolderPath = 'output/';

$converter = new PDF2ImageConverter($pdfFilePath, $imageFolderPath);
$converter->convert();
```

### Markdown to PDF Conversion

[](#markdown-to-pdf-conversion)

```
use DocVerter\Markdown2PDFConverter;

$markdownContent = file_get_contents('example.md');
$pdfFilePath = 'output.pdf';

$converter = new Markdown2PDFConverter($markdownContent, $pdfFilePath);
$converter->convert();
```

### PDF to Markdown Conversion

[](#pdf-to-markdown-conversion)

```
use DocVerter\PDF2MarkdownConverter;

$pdfFilePath = 'example.pdf';
$markdownFilePath = 'output.md';

$converter = new PDF2MarkdownConverter($pdfFilePath, $markdownFilePath);
$converter->convert();
```

### Excel to PDF Conversion

[](#excel-to-pdf-conversion)

```
use DocVerter\Excel2PDFConverter;

$excelFilePath = 'example.xlsx';
$pdfFilePath = 'output.pdf';

$converter = new Excel2PDFConverter($excelFilePath, $pdfFilePath);
$converter->convert();
```

### PDF to Excel Conversion

[](#pdf-to-excel-conversion)

```
use DocVerter\PDF2ExcelConverter;

$pdfFilePath = 'example.pdf';
$excelFilePath = 'output.xlsx';

$converter = new PDF2ExcelConverter($pdfFilePath, $excelFilePath);
$converter->convert();
```

### Word to PDF Conversion

[](#word-to-pdf-conversion)

```
use DocVerter\Word2PDFConverter;

$wordFilePath = 'example.docx';
$pdfFilePath = 'output.pdf';

$converter = new Word2PDFConverter($wordFilePath, $pdfFilePath);
$converter->convert();
```

### PDF to Word Conversion

[](#pdf-to-word-conversion)

```
use DocVerter\PDF2WordConverter;

$pdfFilePath = 'example.pdf';
$wordFilePath = 'output.docx';

$converter = new PDF2WordConverter($pdfFilePath, $wordFilePath);
$converter->convert();
```

Features
--------

[](#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
-----------------

[](#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
-------

[](#credits)

[Dompdf](https://github.com/dompdf/dompdf) - PDF generation library. [PHPRtfLite](https://github.com/phprtflite/phprtflite) - RTF generation library. [PhpSpreadsheet](https://github.com/PHPOffice/phpspreadsheet) - Excel generation library. [PhpWord](https://github.com/PHPOffice/PHPWord) - Word generation library.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

702d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f178a74e07b5626b1519bc0861b3026bbb068c19e6682072e7630ee0dbc01f1?d=identicon)[jumbaeric](/maintainers/jumbaeric)

---

Top Contributors

[![jumbaeric](https://avatars.githubusercontent.com/u/7954516?v=4)](https://github.com/jumbaeric "jumbaeric (10 commits)")

### Embed Badge

![Health badge](/badges/jumbaeric-docverter/health.svg)

```
[![Health](https://phpackages.com/badges/jumbaeric-docverter/health.svg)](https://phpackages.com/packages/jumbaeric-docverter)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M709](/packages/maatwebsite-excel)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)[spatie/laravel-pdf

Create PDFs in Laravel apps

9963.4M11](/packages/spatie-laravel-pdf)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3944.4k](/packages/bfinlay-laravel-excel-seeder)[finller/laravel-media

A flexible media library for Laravel

472.1k](/packages/finller-laravel-media)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
