logoalt Hacker News

everybodyknowstoday at 12:52 AM1 replyview on HN

> ... markdown to HTML to PDF/X-1a processor using Python, WeasyPrint, and ghostscript.

I've been converting HTML to PDF by running WeasyPrint (latest version) with options I hoped were sufficient to satisfy the X-1a rules -- can it not quite do that? Is that why you need ghostscript?


Replies

diamondaptoday at 1:33 AM

I tried make my PDFs X-1a compliant with WeasyPrint, then ran them through Adobe's PDF/X validator and they kept failing. I was in a bit of a hurry and found a way to do it with ghostscript. I would like to remove ghostscript from the mix, so when I have some time, I may try again to do it all with WeasyPrint.