PHPackages                             darkterminal/docverter-patch - 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. darkterminal/docverter-patch

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

darkterminal/docverter-patch
============================

A versatile PHP package for document conversion between various formats. - patch from jumbaeric/docverter

v1.0.1(4mo ago)00MITPHPPHP ^8.3

Since Feb 22Pushed 4mo agoCompare

[ Source](https://github.com/darkterminal/docverter)[ Packagist](https://packagist.org/packages/darkterminal/docverter-patch)[ RSS](/packages/darkterminal-docverter-patch/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (7)Versions (3)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

36

—

LowBetter than 79% of packages

Maintenance76

Regular maintenance activity

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.6% 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

2

Last Release

132d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.4

v1.0.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32319439?v=4)[Imam Ali Mustofa](/maintainers/darkterminal)[@darkterminal](https://github.com/darkterminal)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M632](/packages/spatie-laravel-medialibrary)[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k157.3M897](/packages/maatwebsite-excel)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k36.7M158](/packages/spatie-browsershot)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)

PHPackages © 2026

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