Using Prince, you can generate accessible, tagged PDFs from HTML and CSS. I created a demo site and a plugin to make this easier for people using Eleventy.
I also talked about this topic on a stream of Some Antics with Ben Myers.
Demo site: Accessible document workflow with Eleventy and Prince
Eleventy plugin: eleventy-plugin-prince-pdf