Skip to main content
NogZoveelTeDoen
Inspiring
June 29, 2019
Answered

exportAsXFDP to a map

  • June 29, 2019
  • 1 reply
  • 763 views

Hi, I don't know how to export a XFDF-file to the fixed map and filename. I does and must work without the file manager. The code is in the Javascript console:

this.exportAsXFDF({cPath:(\C\Test\Test.XFDF), bAnnotations:true});

I tried it with \ and \ and /\ and the bAnnotations:true before the cPath and nothing works. It is on Windows 10.
It originally came from Importing Annotations with JavaScript? and it works for me, but I need only the FDF-file (XFDF in fact) to be saved in a fixed map.
This topic has been closed for replies.
Correct answer try67

Use this:

this.exportAsXFDF({cPath:"/C/Test/Test.XFDF", bAnnotations:true});

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 29, 2019

Use this:

this.exportAsXFDF({cPath:"/C/Test/Test.XFDF", bAnnotations:true});

NogZoveelTeDoen
Inspiring
June 30, 2019

Thx

NogZoveelTeDoen
Inspiring
January 5, 2020

Now it is in use for a while for example:

this.exportAsXFDF({cPath:"/C/My folder/2020/File.XFDF",bAnnotations:true})

And is it possible to change the C/My folder/2020/File.XFDF to The User's Document folder/2020/File.XFDF?