A minimal PDF
The smallest complete file: a page, and shapes drawn on it.
The sheet itself, the words on it, and the lettering — carried inside the file so the page looks the same everywhere.
A page has a size, like a sheet of paper, and words are placed on it. The lettering — what a printer calls the typeface, the particular shape of the letters — is kept inside the document itself rather than fetched from whichever machine opens it.
That single decision is what makes a PDF worth sending. Give the file to a customer, a supplier or a printing works, and every one of them sees the page you laid out, in the lettering you chose, at the size you chose, whatever is installed at their end.
Every one of these is a real PDF this library wrote, with the source that wrote it.
The smallest complete file: a page, and shapes drawn on it.
Text set in a font the file carries inside it, cut down to the letters actually used.