Skip to main content
tobiask43046735
Inspiring
July 18, 2016
Answered

How to determine the latest export options chosen?

  • July 18, 2016
  • 1 reply
  • 958 views

Is there any way to determine which file type and export options where last chosen via Menu → Export? E.g. if the user exported as a PDF (print), I would like to obtain the chosen filename, ExportFormat.PDF_TYPE and PDFExportPreset​, or ExportFormat.INTERACTIVE_PDF (does that also use PDFExportPreset btw?) etc.

This topic has been closed for replies.
Correct answer tobiask43046735

Couldn't find any valuable thing. Unless you have some persistent startup script that would be triggered on export so you can store the latest setup at this time. Apart from that…


Loic.Aigon wrote:

Couldn't find any valuable thing. Unless you have some persistent startup script that would be triggered on export so you can store the latest setup at this time. Apart from that…

Unfortunately there seems to be no way to obtain the settings. Ok, I could add my own Export Dialog implementation to the onInvoke event thus overriding the original export function, but that seems overkill...

1 reply

karthikS
Inspiring
July 18, 2016

Hi

Could, you post your code and error screenshot.

Thanks

tobiask43046735
Inspiring
July 18, 2016

There is no error nor code yet. I merely want to figure out which format the user (via File, Export...) exported to and the options involved, so I can e.g. provide a "Repeat last export" script with no dialogs.

Correction to my question: I want the PDFExportPreference, not the PDFExportPreset of course...

I've also posted this question on https://graphicdesign.stackexchange.com/q/74879/4003.

Loic.Aigon
Legend
July 18, 2016

app.pdfExportPreferences.properties should return latest values of the PDF export panel.