Printing MathJax (to PDF) with selenium
I’m trying to use Python / selenium to print a bunch of webpages to PDF. When I use selenium to open the page (not shown here), Mathjax renders fine, and if I manually print to PDF (I’m using Firefox) it comes out fine too. But when I use the code below to print the page, the MathJax comes out completely blank on the PDF. I’ve tried inserting some additional code to force MathJax to render but that really doesn’t seem to be the issue.
I should mention I’m using Linux PopOS and I set my default printer to print to PDF.
Also the webpages require sign-in; I’m doing that programmatically but haven’t shown that here. I mention that because it seems if I use wkhtmltopdf
from the command line I can print PDFs nicely but not sure if it’s possible to incorporate that somehow. I’m afraid I’m very much a tinkerer in Python, not a great coder. Thanks for any help…