Avatar

Level 2

Ooooh nice !

I have tried to change the exportData with : xfa.host.exportData("filename.xdp")

But nothing happen. Without parameter I have the dialog showing up. Do you know why ?

I suppose there is a JavaScript variable/constant with the PDF file name so I could do : xfa.host.exportData(pdfFileName + ".xdp")

The idea is to save the xdp file in the same directory and with the same name of the PDF file.

In the XDP there is a dd:dataDescription XML element. Seems it does no harm when deleted. Can you confirm it ?

After all the above, the last thing would be to call the click of this button when saving the PDF. There is events when you save the PDF from Reader ?
Nevermind, just found them (postsave, preSave).

Thanks again for your fast answers !