Blink PDF gives you direct control over the typography and layout of every document you render. You can select any font from the hosted font library, and Blink PDF automatically subsets the font — embedding only the characters your document actually uses — to keep file sizes small. Layout options let you arrange content in multiple columns and fine-tune spacing between elements, all through the same JSON body you already use for every render request.Documentation Index
Fetch the complete documentation index at: https://docs.blinkpdf.io/llms.txt
Use this file to discover all available pages before exploring further.
The parameter names shown on this page reflect the most likely field names based on the Blink PDF API design. Confirm exact names and available values in the API Reference before using them in production.
Listing Available Fonts
Before you set a font, you can fetch the complete list of fonts available on the Blink PDF platform by calling theGET /v1/fonts endpoint. The response is an array of font name strings that you can pass directly to options.font.
The font names shown in the comments above (e.g.,
Inter, Roboto, Merriweather) are illustrative examples. The actual fonts available on your plan are returned by a live call to GET /v1/fonts. Always use names from that response — not the examples here — when setting options.font.Font Parameters
The font family to use for the entire document body. The value must exactly match a name returned by
GET /v1/fonts. Headings, body text, and captions all inherit this font unless the Markdown itself encodes a different style (e.g., code blocks always render in a monospace face).Example: "Merriweather", "Roboto", "Source Serif 4"The base font size for body text. All heading sizes scale proportionally from this value. Accepts standard CSS length units:
"11pt", "14px", "1rem".The line height multiplier applied to body text. A value of
1.5 means lines are spaced at 1.5× the font size. Increase to 1.8 for documents that will be annotated on screen or in print.Font Subsetting
Font subsetting is automatic and always enabled. When Blink PDF renders your document, it inspects every character in your Markdown source and embeds only the glyphs that are actually used into the output PDF. A document that uses only Latin characters and a handful of punctuation marks will embed a fraction of the full font file. This means you get:- Smaller PDF files — typically 60–80% smaller than embedding a complete font.
- Reliable rendering — the characters your document needs are always present, regardless of what fonts the recipient has installed.
- PDF/UA-1 compliance — embedded font data satisfies accessibility requirements for tagged PDF output.
Layout Parameters
The number of columns to flow body text into. Set to
2 for newsletter-style layouts or academic papers that follow a two-column format. Headings that appear at the top level (#) span the full page width regardless of column count.Accepted values: 1, 2, 3.The gap between columns when
options.columns is greater than 1. Accepts CSS-style length units: "10mm", "0.5in".Extra vertical space added below each paragraph. Increase this value to give your document a more open, airy feel. Accepts CSS-style length units.
Complete Example: Serif Font, Two Columns
The following request renders a newsletter-style document using a serif font, a two-column layout, and a slightly open line height.Three-column layouts work best with smaller font sizes (9–10pt) and narrower column gaps. On A4 at standard margins, each column in a three-column layout is approximately 55mm wide — enough for comfortable reading at 9pt but tight at 12pt.