PHPackages                             typesetsh/pdf-bundle - 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. typesetsh/pdf-bundle

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

typesetsh/pdf-bundle
====================

This bundle provides a wrapper for using the typeset.sh pdf engine.

18.0.0(1y ago)1126.4k↓64.9%1[1 issues](https://github.com/typesetsh/pdf-bundle/issues)1MITPHPPHP &gt;=8.0

Since Jan 6Pushed 1y ago2 watchersCompare

[ Source](https://github.com/typesetsh/pdf-bundle)[ Packagist](https://packagist.org/packages/typesetsh/pdf-bundle)[ RSS](/packages/typesetsh-pdf-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (7)Versions (28)Used By (1)

TypesetshBundle
===============

[](#typesetshbundle)

This bundle is simple wrapper for the [typeset.sh](https://typeset.sh/) pdf engine.

Typeset.sh is a css/html layout engine that allows to render as PDF.

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require typesetsh/pdf-bundle

```

### Enable the Bundle

[](#enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in `config/bundles.php` file of your project:

```
return [
    // [...]
    Typesetsh\PdfBundle\TypesetshPdfBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

Render a view as pdf. You can use the abstract controller to render a twig view as pdf.

```
