Jump to content
Gary Hoffman

Export Field Contents on Server

Recommended Posts

I want to export a PDF file from a container field to a file using FMS15. The Export Field Contents script step does not work on Server. It seems that Scriptmaster has a function to IMPORT from a file into a container field, and it works on a server. So what can I use to EXPORT from a container field to a file on the server? I want to avoid running FMP on the server machine, but I will if I have to.

Share this post


Link to post
Share on other sites

The Base Elements plugin has a function to export field contents. You will need to install the plugin on the server, then you can use it when performing a script on the server.

Share this post


Link to post
Share on other sites

You could use the fmpro object that is available from within a Scriptmaster module. It has a function called 'getContainerStream' that will return an InputStream of the file in the container field you pass in. You can then write that input stream to a file. This topic has a few different implementations that should work for you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.