4 ms·
I once used this with pygmentize as part of a really hacky pipeline to convert code snippets to syntax highlighted PDFs with selectable text: %.pdf: %.*
by udp 6y ago
I once used this with pygmentize as part of a really hacky pipeline to convert code snippets to syntax highlighted PDFs with selectable text:
%.pdf: %.*
pygmentize -f html -O full $< | wkhtmltopdf -T 0 -B 0 --page-width 210mm --page-height 5000mm --no-background - - > .tmp.pdf
pdfcrop .tmp.pdf $@
rm -f .tmp.pdf