# fooman/printorderpdf-m2

> Print the order as a pdf from the admin

`composer require fooman/printorderpdf-m2`

Canonical URL: https://packagento.com/fooman/printorderpdf-m2

## At a glance

- **Vendor**: fooman (https://packagento.com/fooman.md)
- **Latest version**: 3.6.1 — released 2026-05-08
- **Pricing**: Free
- **Package type**: Metapackage (bundle of modules)
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/fooman/printorderpdf-m2 and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require fooman/printorderpdf-m2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Print the order as a pdf from the admin

## Changelog

### [3.6.1] - 2026-05-08
#### Added
- Support for Php 8.5
- Compatibility with Magento 2.4.9
#### Changed
- Lowest supported versions are now Magento 2.4.4-p13 and php 8.1 - use previous versions for older Magento versions

### [3.5.0] - 2025-04-07
#### Added
- Support for Php 8.4
- Compatibility with Magento 2.4.8

### [3.4.0] - 2024-03-26
#### Added
- Support for Php 8.3
#### Changed
- Code style updates for newer Magento Coding Standard

### [3.3.6] - 2023-03-06
#### Added
- Compatibility with Magento 2.4.6
- Support for Php 8.2

### [3.3.5] - 2022-08-03
#### Added
- Compatibility with Magento 2.4.5

### [3.3.4] - 2022-03-29
#### Added
- Compatibility with Magento 2.4.4
- Support for Php 8.0/8.1
- pt_BR translation thanks to Vitor Martins

### [3.3.3] - 2021-07-29
#### Added
- Compatibility with Magento 2.4.3

### [3.3.2] - 2021-04-30
#### Added
- Compatibility with Magento 2.3.7

### [3.3.1] - 2021-02-02
#### Added
- Compatibility with Magento 2.4.2

### [3.3.0] - 2020-10-07
#### Added
- Compatibility with Magento 2.4.1 and 2.3.6
#### Changed
- Don't keep temporary files in var folder

### [3.2.0] - 2020-07-28
#### Added
- Compatibility with Magento 2.4.0
- Support for Php 7.4

### [3.1.8] - 2020-04-21
#### Added
- Support for Magento 2.3.5

### [3.1.7] - 2020-01-23
#### Added
- Support for Magento 2.2.11 and 2.3.4

### [3.1.6] - 2019-10-08
#### Added
- Support for Magento 2.2.10

### [3.1.5] - 2019-10-03
#### Added
- Support for Php 7.3
- Support for Magento 2.3.3

### [3.1.4] - 2019-06-26
#### Changed
- Re-release of 3.1.3

### [3.1.3] - 2019-06-26
#### Added
- Support for Magento 2.3.2, 2.2.9 and 2.1.18
- PHPStan to development tools

### [3.1.2] - 2019-05-02
#### Changed
- Adopt latest Magento Coding Standards

### [3.1.1] - 2019-03-27
#### Added
- Support for Magento 2.3.1, 2.2.8 and 2.1.17
- Initial MFTF acceptance test

### [3.1.0] - 2018-11-28
#### Added
- Support for Magento 2.3

### [3.0.2] - 2018-11-06
#### Fixed
- Adjust integration test for 2.2.5

### [3.0.1] - 2018-05-08
#### Added
- Ability to translate more terms (thanks @gediminaskv)
#### Fixed
- Minor code style issue

### [3.0.0] - 2018-05-08
#### Changed
- Package changed into a Metapackage - Implementation moved into fooman/printorderpdf-implementation-m2 package
- Semantic versioning will only be applied to the implementation package
#### Fixed
- Change setTemplate workaround, use area emulation instead
Constructor change in Plugin\PaymentInfoBlockPlugin, removes copied template files

### [2.2.2] - 2017-09-11
#### Changed
- Allow for different pdf versions in test

### [2.2.1] - 2017-08-30
#### Changed
- Added preprocessing of tests to run across 2.1/2.2

### [2.2.0] - 2017-08-25
#### Fixed
- Empty payment details by providing frontend pdf template for known template files
#### Added
- Added support for PHP 7.1

### [2.1.0] - 2017-03-01
#### Added
- Support for bundled products

### [2.0.3] - 2016-06-29
#### Changed
- Compatibility with Magento 2.1, for Magento 2.0 use earlier versions

### [2.0.2] - 2016-03-30
#### Changed
- Test improvements

### [2.0.0] - 2015-12-09
#### Changed
- Change folder structure to src/ and tests/

### [1.1.0] - 2015-11-29
#### Added
- Provide a Pdf Renderer so that Fooman Email Attachments M2 (separate extension) can attach a pdf to outgoing order confirmation emails
- Translations

### [1.0.2] - 2015-11-15
#### Changed
- PSR-2
- Use Magento repositories and factory
- Use Magento massaction
- Update code to stay compatible with latest Magento development branch

### [1.0.1] - 2015-09-07
#### Changed
- Update code to stay compatible with latest Magento development branch

### [1.0.0] - 2015-08-02
#### Added
- Initial release for Magento 2

## Recent Versions

| Version | Released |
|---|---|
| 3.6.1 | 2026-05-08 |
| 3.5.0 | 2025-04-07 |
| 3.4.0 | 2024-03-26 |
| 3.3.6 | 2023-03-06 |
| 3.3.5 | 2022-08-03 |
| 3.3.4 | 2022-03-29 |
| 3.3.3 | 2021-07-29 |
| 3.3.2 | 2021-04-30 |
| 3.3.1 | 2021-02-02 |
| 3.3.0 | 2020-10-07 |

Showing 10 of 37 versions. Full release history on https://packagento.com/fooman/printorderpdf-m2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| fooman/printorderpdf-implementation-m2 | 105.5.0 |
| magento/framework | >=103.0.4-p13 < 103.0.10 |
| php | ~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0\|\|~8.5.0 |

## Quality

Latest release (3.6.1) passes the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | – | – |
| 2.4.8 | – | not tested | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | N/A | 0 | metapackage ships no source of its own — phpcs skipped (#122) |
| PHPMD | N/A | 0 | metapackage ships no source of its own — phpmd skipped (#122) |
| Cpd | N/A | 0 | metapackage ships no source of its own — cpd skipped (#122) |
| PHP Compatibility | N/A | 0 | metapackage ships no source of its own — php-compatibility skipped (#122) |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | N/A | 0 | metapackage ships no source of its own — malware scan skipped (#122) |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["fooman/printorderpdf-m2"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

fooman is a Magento 2 vendor on Packagento. See https://packagento.com/fooman.md for their full catalogue.

