Save the pdf file via headless browser and Vivliostyle.
github.com/vivliostyle/vivliostyle-cli
vivliostyle/vivliostyle-cli