Typesetter.io
Github
Now on
GitHub!

Convert Markdown to PDF in a Snap!

Typesetter is a PHP-based tool that can be used as a PHP library or via the command line to convert your markdown to PDF. Customize the layout with print media CSS and embed high quality images and illustrations.

Features

Typesetter is free and open-source software. Use PHP for an easy-to-use command line tool to create ebooks or convert any markdown to PDF.

Command Line

                            composer require typesetterio/typesetter-cli
                            vendor/bin/typesetter init
                            vendor/bin/typesetter generate
                        

As a Library

                            composer require typesetterio/typesetter
                            $typesetter = new Typesetter();
                            $pdf = $typesetter->generate(new Config());
                        

Other Options

Use Docker and more... Check the docs.

Full Github-flavored Markdown Support

By default, Typesetter uses GFM to support some of the most common bits of functionality you're used to. You're not locked in, though. Through an observer, Typesetter makes the underlying package league/commonmark available for you to customize.

Industry-leading PDF Creation Software

Speed is important - especially when processing large ebooks. Memory usage is also important. Typesetter uses the venerable MPDF library to generate your content. Most of the MPDF features are supported!

Fully Extensible

The main Typesetter library is made to be used and extended in your projects. If you're just creating an ebook, you can still customize your content generation through a combination of Listeners and Observers in PHP.

Get Started Now

Have a ton of markdown you need to convert into an ebook as a PDF? Typesetter is the tool you need.

Get Started Now