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 3w 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 57% 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

2670d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9419862?v=4)[Chris Lingwood](/maintainers/lingwooc)[@lingwooc](https://github.com/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

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M47](/packages/smile-elasticsuite)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.4M1](/packages/fastly-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k7](/packages/buckaroo-magento2)[magento/module-upward-connector

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

24434.4k1](/packages/magento-module-upward-connector)

PHPackages © 2026

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