Thank you, Nith, for looking at my problem.Do you mean the scripting mehtod xfa.host.exportData?As far as I understood, this can be used to export the data, but not to save the whole file as PDF.My current solution looks like follows. I'm using the docReady event, to ask the user whether s/he wants ...