Gary Hoffman Posted November 29, 2016 Share Posted November 29, 2016 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. Link to comment Share on other sites More sharing options...
Mike Duncan Posted November 29, 2016 Share Posted November 29, 2016 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. Link to comment Share on other sites More sharing options...
Ben360Works Posted December 2, 2016 Share Posted December 2, 2016 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. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 2865 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now