PHPackages                             thousandmonkeys/m2-restpdf-module - 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. [API Development](/categories/api)
4. /
5. thousandmonkeys/m2-restpdf-module

ActiveMagento2-module[API Development](/categories/api)

thousandmonkeys/m2-restpdf-module
=================================

Module for magento2 to allow invoice pdfs from eadesignro/module-pdfgenerator to be obtained through a rest end point.

v1.0.0(7y ago)3274OSL-3.0PHP

Since Mar 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lingwooc/restpdf-magento2)[ Packagist](https://packagist.org/packages/thousandmonkeys/m2-restpdf-module)[ RSS](/packages/thousandmonkeys-m2-restpdf-module/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

restpdf-magento2
================

[](#restpdf-magento2)

Module for magento2 to allow invoice pdfs from eadesignro/module-pdfgenerator to be obtained through a rest end point. It requires (and installs) eadesignro/module-pdfgenerator to actually create the pdfs.

Tested and working on magento 2.2.7 and 2.3.7.

Installation
============

[](#installation)

- composer require thousandmonkeys/m2-restpdf-module
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile

Usage
=====

[](#usage)

There is now a rest end point at /V1/invoices/:id/pdf/:template

- :id is the invoice id
- :template is the template id (from eadesignro/module-pdfgenerator)

The output is in the form

```
{
   "pdf": "xxxxx"
}

```

Where xxx is the pdf encoded with base64. You can quickly check the output by putting it in a file called pdf.json and opening json.pdf after running this command `cat pdf.json | jq -r '.pdf' | base64 -d > json.pdf`

Getting module-pdfgenerator to actually work
============================================

[](#getting-module-pdfgenerator-to-actually-work)

You need to patch eadesignro/module-pdfgenerator for it to work as its been abandoned.

These composer patches fix it for the most part (emailing pdfs is still probably broken for instance).

```
            "eadesignro/module-pdfgenerator": {
                "Pull: https://github.com/EaDesgin/magento2-pdf-generator2/pull/101": "https://patch-diff.githubusercontent.com/raw/EaDesgin/magento2-pdf-generator2/pull/101.patch",
                "Pull: https://patch-diff.githubusercontent.com/raw/lingwooc/magento2-pdf-generator2/pull/1": "https://patch-diff.githubusercontent.com/raw/lingwooc/magento2-pdf-generator2/pull/1.patch"
            },

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Unknown

Total

1

Last Release

2623d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a00bd3b8c4f6b3cd7d309befea5afb3224e1d391e58128bec3bfc259ee2e01fd?d=identicon)[lingwooc](/maintainers/lingwooc)

---

Top Contributors

[![lingwooc](https://avatars.githubusercontent.com/u/9419862?v=4)](https://github.com/lingwooc "lingwooc (5 commits)")

### Embed Badge

![Health badge](/badges/thousandmonkeys-m2-restpdf-module/health.svg)

```
[![Health](https://phpackages.com/badges/thousandmonkeys-m2-restpdf-module/health.svg)](https://phpackages.com/packages/thousandmonkeys-m2-restpdf-module)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[magento/module-upward-connector

Magento module used for routing all frontend requests through UPWARD-PHP.

24410.3k1](/packages/magento-module-upward-connector)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

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