My starting point for this project is based on Oxygen PDF Chemistry {Beta} - PDF output from HTML5/XML styled with CSS!
https://www.oxygenxml.com/chemistry.html
https://www.oxygenxml.com/doc/versions/20.0/ug-chemistry/topics/ch_getting_started.html
https://www.w3.org/TR/css3-page/