How to print pdf handouts in impress as a script?

Is it possible to script the creation of handout-PDFs with the settings defined in the .odp document?

I know you can print as pdf with:
libreoffice --headless -convert-to pdf anImpressDocument.odb -outdir output/path/for/pdf

But I cannot find any setting that would make the PDF with the handout settings. That would be so helpful!

Is this even possible?

(any hint is welcome, also VBA hints)