PHPackages                             ambersive/pdfprinter - 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. ambersive/pdfprinter

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

ambersive/pdfprinter
====================

This package for laravel provides a simple way to create pdf documents. This packages requires a running instance of the PRINT-API (also open sourced).

v0.4.3(5y ago)162.6k[3 PRs](https://github.com/sushidev-team/laravel-print-api/pulls)MITPHPCI failing

Since Jun 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sushidev-team/laravel-print-api)[ Packagist](https://packagist.org/packages/ambersive/pdfprinter)[ RSS](/packages/ambersive-pdfprinter/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (7)Versions (17)Used By (0)

PDF Printer
===========

[](#pdf-printer)

[![Maintainability](https://camo.githubusercontent.com/94feefd2adf5aea2eba51f03e26274ab189b378dba032292421afcc9022fde82/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65643733343562326430373931393038376261342f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/AMBERSIVE/laravel-print-api/maintainability) [![Build Status](https://camo.githubusercontent.com/ea30c380c00c725a253f76d1775bd4828df14e6c05e24543c8c3b2998e997df2/68747470733a2f2f7472617669732d63692e6f72672f414d424552534956452f6c61726176656c2d7072696e742d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AMBERSIVE/laravel-print-api)

This package is a wrapper for the [PRINT-API](https://github.com/AMBERSIVE/print-api) from [AMBERSIVE KG](https://ambersive.com). This package requires this endpoint otherwise you will not be able to create any pdf document.

Installation
------------

[](#installation)

```
composer require ambersive/pdfprinter
```

Usage
-----

[](#usage)

Please be aware that you will need a running instance of the [PRINT-API](https://github.com/AMBERSIVE/print-api). Otherwise the methods won't work as expected.

```
// Setup the pdf printer
$printer  = new PdfPrinter($settings);
$printer->create("http://localhost:8080/pdf")->save("folder");
```

The full possiblities

```
// Setup the pdf printer
$settings = new PdfPrinterSetting("http://localhost", 3000);
$printer  = new PdfPrinter($settings);
$options  = new PdfPrinterOption(
    $filename,
    $postBackUrl,
    [], //$postBackBody
    "" // $token
);

// Set auth header for basic authentication
$username = "test";
$password = "asdf";
$printer->authBasic($username, $password);

// Set auth header for basic authentication
$printer->authBearer("CUSTOM OR JWT TOKEN");

$printer->create("http://127.0.0.1:8000", null, function($instance, $result, $options, $successful) {
    // Will be executed after print execution
})->save('test', null, function($instance, $result, $filename, $path, $successful){
    // Do stuff after storing (even called if store was not successful)
});
```

How to create beautiful documents
---------------------------------

[](#how-to-create-beautiful-documents)

While this package is a connection between the print server and your laravel application (so it's a helper method), we also created a package [document-viewer](https://github.com/AMBERSIVE/laravel-document-viewer) which will help you to create printable documents. The document viewer will help you to define the required routes for getting and uploading the files. And it will even give you a smooth way to delare "Printables".

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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 ~15 days

Total

13

Last Release

1977d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80b1e9efacc425a65161eda871719db5a51d598f46e3afc5455009a889c1483a?d=identicon)[sushidev](/maintainers/sushidev)

---

Top Contributors

[![leganz](https://avatars.githubusercontent.com/u/3373530?v=4)](https://github.com/leganz "leganz (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravellaravel-packagepdf-documentpdf-generation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ambersive-pdfprinter/health.svg)

```
[![Health](https://phpackages.com/badges/ambersive-pdfprinter/health.svg)](https://phpackages.com/packages/ambersive-pdfprinter)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[stevebauman/autodoc-facades

Auto-generate PHP doc annotations for Laravel facades

98186.6k9](/packages/stevebauman-autodoc-facades)[highsolutions/laravel-lang-import-export

A Laravel package providing artisan commands to import and export language files from and to CSV.

25292.3k](/packages/highsolutions-laravel-lang-import-export)

PHPackages © 2026

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