Module code_to_pdf

Source
Expand description

Contains HighlighterConfig and CodeToPdf structs

Structs§

CodeToPdf
Main struct for generating PDFs. It handles almost the entire process of reading and highlighting code, as well as actually writing it to the PDF
DocumentSubset
Subset of PdfDocument. Created as some types within PdfDocument weren’t sync so it couldn’t be used with rayon
HighlighterConfig
Configuration struct for the highlighter (syntect)