What's the file name that you're trying to use when it fails?
it is a regular file name like : abc012.fdf
You've removed the part of the code that is actually saving the file...
What method are you using to export this FDF file? Also, how are you
constructing the rest of the path?
the path is just a fixed path predetermined. it is not generated.
the call to save the file is Doc.exportAsFDF ...
My guess is that there's something wrong with that path. Here's a good way
to test if you're using the right path:
Place a PDF file in the folder where you want to export the FDF to. Open it
in Acrobat. Run this code from the JS console:
This will give you the right syntax to use for that location.
Another problem could be that the path is not considered a "safe path", for
example, if you're using a system-folder or the root folder, or something
like that (Adobe are very vague on this subject)...
thanks, will try it later.
one thing interesting is that the same code works in windows environment though, but fails in the MAC 10.7
That's not surprising at all if you're using a hard-coded path, since the
folder structure in both systems is completely different.
we hardcode different path for window and unix.