Expand description
PDF export for RaTeX DisplayList.
Built directly on pdf-writer with manual font subsetting
via subsetter. Produces compact PDFs with embedded CIDFontType2
fonts and Identity-H encoding. No high-level abstraction layer.
§Font sources
- Without the
embed-fontsfeature: setPdfOptions::font_dirto a directory that contains the KaTeX.ttffiles (same layout as the repofonts/tree). The defaultPdfOptions::defaultuses an emptyfont_dirand will fail at render time until you set it. - With
embed-fonts: glyph bytes are loaded from theratex-katex-fontscrate;font_diris ignored. Therender-pdfbinary (clifeature) always enablesembed-fonts, so its--font-dirflag does not affect which fonts are embedded.
Structs§
- PdfOptions
- Options controlling PDF output.
Enums§
- PdfError
- Errors that can occur during PDF rendering.
Functions§
- render_
to_ pdf - Render a
DisplayListto a PDF byte buffer.