Has anyone used chrome or firefox to headlessly convert a svg to a pdf, via Bonsai?
Has anyone used chrome or firefox to headlessly convert a svg to a pdf?
These are the paths i've tried in SVG to PDF Command but doesn't seem to work.
[["C:/Program Files/Google/Chrome/Application/chrome.exe", "--headless", "--disable-gpu", "--print-to-pdf={output_path}", "path"]][["C:/Program Files/Mozilla Firefox/firefox.exe", "--headless", "--print-to-pdf={output_path}", "file:///{path}"]]

Comments
Firefox at least doesn't seem to support printing from the command line unfortunately, according to https://stackoverflow.com/questions/30067907/firefox-command-line-prin Available command line options https://wiki.mozilla.org/Firefox/CommandLineOptions#Browser
GhostScript came to mind, but it apparently also no longer supports it https://stackoverflow.com/questions/33257452/convert-svg-to-pdf-with-ghostscript-ghostpdl