Can you programmatically call "Export to PDF" and collect the result?

You can export dashboards to PDF using this dropdown:

Is it possible to programmatically call “Export to PDF” and collect the result?

For example, I may wish to collect the PDF & display it in an external system :wink: