How to Create a PDF Document

Learn to create a PDF document from scratch, while taking advantage of the Borb Python library.


Creating a PDF document from scratch is not as easy as we might assume.

Ideally, the PDF-making process is best suited for services and applications which entail the creation of data-driven documents.

In a best-case scenario, the PDF creation process can be extended to get data from a database or an API response. Based on the gathered data, this process automates the generation of PDF documents.


The goal of this lesson is to create a tailored PDF letterhead from scratch, while showing you how to add text, images, and barcodes to the generated PDF.

The utility to be developed will leverage the prominence of the Borb Python library in order to define the content and the layout of the envisaged PDF document.

Get hands-on with 1200+ tech skills courses.