What is ?
For many projects, you need to create printable PDF documents. Serving as excellent bridges between the digital world to the analog world, PDF documents are useful if you need an invoice for your eCommerce site, a packing slip, a ticket for an event, or simply a report.
Thanks to typeset.sh, you can create your PDF documents as easily as you create a website. HTML and CSS, the language for creating websites, provide the syntax and means to describe paged documents like PDFs, and typeset.sh helps you generate them.
With typeset.sh, we want to give web developers a tool for creating beautiful, print-ready documents while using the technology stack they are already familiar with.
Generating a PDF otherwise can prove frustrating and time-consuming, and small changes can quickly turn into hours of work. Instead of putting up with all that trouble, let us help you and your developer(s)!
CSS w3.org standards
We focus on supporting the HTML and CSS standards (w3.org).
This makes life easy for web developers and saves them a lot of time. Using the technology and coding language they are already familiar with, they never need to learn any complicated new syntax. See a list of our current supported features.
Support for the common font formats (.otf, .ttf, .woff)
Implement your fonts via CSS the same way you would on your website. You can even use google fonts out of the box.
Small file size
Smart font and image management.
By only adding the font features and glyphs your document actually uses, typeset.sh keeps your file size small.
Images are only attached once, and you can reference each one multiple times without blowing up the document.
Font layout & shaping
Use advanced font rendering for your open-type fonts, resulting in more readable and attractive texts.
Supporting international scripts
Displaying text is a complex task that not many are aware of.
Scripts can go from right to left, instead of left to right, and those scripts can get mixed together, creating a bi-directional text. Other scripts then change their glyphs appearance depending on their position and the text surrounding them. Find out more.
Produce PDF files according to the PDF/UA standard.
This requires a little of effort from the author side, but it can be very simple if you follow the HTML5 accessibility guidelines.
Security & privacy
Your data never leaves your system.
When you run the application on your own server, you do not need to transfer any data to us. This is important if your product-sensitive customer data needs to conform to GDPR.
Sure, PHP is not C++, but it is fast.
From the very start, performance was a key concern, driving many of our architectural design decisions. We try our best to ensure peak performance. Of course, rendering is a complex process, and it does require some work. You can render small documents with a couple of pages within a few hundred milliseconds. Large documents with lots of text can eat up significant time and memory.
Get in touch with us to see if typeset.sh is the right choice for you!
Supporting PHP frameworks
Simple integration with known PHP frameworks.
We have started to provide and share our framework-specific components on GitHub to make the implementation process as easy as possible. If your framework is missing, let us know! We are looking for new projects to support other frameworks.Go to GitHub
Composer support (PHP package manager)
Easy access to updates with composer.
If your application is written in PHP, then you can implement typeset.sh easily by using composer (a PHP package manager).
Otherwise, you can use a single executable phar file to render your document using your language stack. Read more about this in the documentation.