Login  Register

Re: Is there a way to intercept the PDF rendering?

Posted by mattwynne on Nov 08, 2018; 12:25pm
URL: https://discuss.asciidoctor.org/Is-there-a-way-to-intercept-the-PDF-rendering-tp6583p6585.html

Hi Mark,

Yes, I'm using asciidoctor-pdf

Thanks, that's exactly what my plan is. The workbook is under heavy development at the moment, and I'd like to have an automated check that keeps the ToCs consistent between both as we go along.

If there was a way to catch the ToC while it's in a data model, before it's turned into PDF content via prawn, I could say save it off as YAML and diff the two during the build pipeline.

I was just wondering if there was a way to hook into that PDF rendering cycle. I had a bit of a splunk around in the code but couldn't see anywhere obvious.