The current workaround is to create a wiki page to act as a proxy for the export and that uses the PDF scripting service, see https://extensions.xwiki.org/xwiki/bin/view/Extension/PDF%20Export%20Application/#HScriptService