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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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