Nextcloud/Collabora Online - Macro to export a PDF

Hi @muzicman0

greate to see the progress nice well done :tada:

Is there ANY way to name the exported file? I have tried pretty much everything AI had to offer with zero luck. It seems the PDF export will be named according to the .ods file name in Nextcloud. I would love to name the exported file something unique based on Cell data.

No. With .uno:ExportToPDF in Collabora Online, you cannot avoid the dialog and you cannot set a custom output filename.

Why:

  • The .uno:ExportToPDF dispatch is UI-driven
  • In Collabora Online the actual save is controlled by the host (Nextcloud via WOPI)
  • Macros are sandboxed and cannot choose the target path or filename
  • The PDF name is always derived from the document name (.ods → .pdf)