# fooman/printorderpdf-implementation-m2

> Print the order as a pdf from the admin

`composer require fooman/printorderpdf-implementation-m2`

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

## At a glance

- **Vendor**: fooman (https://packagento.com/fooman.md)
- **Latest version**: 105.5.0 — released 2026-04-22
- **Pricing**: Free
- **Package type**: Magento 2 module
- **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-implementation-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-implementation-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

### [105.5.0] - 2026-04-22
#### Added
- Support for Php 8.5
- Compatibility with Magento 2.4.9

### [105.4.0] - 2025-03-04
#### Added
- Support for Php 8.4
- Compatibility with Magento 2.4.8

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

### [105.2.0] - 2023-02-08
#### Added
- Support for Php 8.2

### [105.1.1] - 2022-03-29
#### Added
- pt_BR translation thanks to Vitor Martins

### [105.1.0] - 2022-02-28
#### Added
- Support for Php 8.0
- Support for Php 8.1

### [105.0.2] - 2020-10-07
#### Added
- Compatibility with Magento 2.3.6

### [105.0.1] - 2020-09-25
#### Changed
- Don't keep temporary files in var folder

### [105.0.0] - 2020-09-24
#### Changed
- Compatibility with Magento 2.4.1, for Magento 2.4.0 and below use earlier versions

### [104.0.1] - 2020-07-28
#### Changed
- Updated copyright notice

### [104.0.0] - 2020-07-21
#### Changed
- Compatibility with Magento 2.4, for Magento 2.1 and below use earlier versions
#### Added
- Support for Php 7.4

### [103.2.0] - 2019-10-03
#### Added
- Support for Php 7.3

### [103.1.3] - 2019-06-25
#### Added
- PHPStan to development tools
#### Fixed
- Order item sku is required in tests on 2.3.1

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

### [103.1.1] - 2019-03-27
#### Added
- Initial MFTF acceptance test

### [103.1.0] - 2018-11-27
#### Added
- Support for Magento 2.3

### [103.0.3] - 2018-07-23
#### Changed
- Reorganise unit and integration tests

### [103.0.2] - 2018-07-19
#### Fixed
- Adjust integration test for 2.2.5

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

### [103.0.0] - 2018-05-07
#### Changed
- Package name renamed to fooman/printorderpdf-implementation-m2, installation should be via metapackage fooman/printorderpdf-m2
- Increased version number by 100 to differentiate from metapackage
#### 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 |
|---|---|
| 105.5.0 | 2026-04-22 |
| 104.0.2 | 2025-05-29 |
| 105.4.0 | 2025-03-04 |
| 105.3.0 | 2024-03-18 |
| 105.2.0 | 2023-02-08 |
| 105.1.1 | 2022-03-29 |
| 105.1.0 | 2022-02-28 |
| 105.0.2 | 2020-10-07 |
| 105.0.1 | 2020-09-25 |
| 105.0.0 | 2020-09-24 |

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

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | ^103.0.4-p13 |
| magento/module-backend | ^102.0.4-p12 |
| magento/module-sales | ^103.0.4-p13 |
| php | ~8.1.0\|\|~8.2.0\|\|~8.3.0\|\|~8.4.0\|\|~8.5.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| fooman/testing-and-quality-tools | ^1.5.4 |

## Quality

Latest release (105.5.0) 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 | Pass | not tested | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### 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 | Warning | 17 | 17 warnings (ruleset: Magento2) — 5 auto-fixable with phpcbf |
| PHPMD | Warning | 4 | 4 rule violations (UnusedFormalParameter:2, ExcessiveParameterList:1, MissingImport:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 1 | valid; 1 advisory note (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 | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## 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-implementation-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.

