the Otter Posted October 3, 2014 Posted October 3, 2014 We have a script that downloads PDFs from our corporate web site and saves them to our internal server. (Long story; suffice to say it’s a good thing.) We use ScriptMaster’s GetURLasContainer to copy the PDF to a container field, then use FileMaker 11’s own Export Field Contents to save the file to an appropriate path. Unfortunately, we’re having an issue where the PDFs being downloaded to the container are corrupt. When we try to open them, we get the following error message: The file [insert file name] could not be opened. It may be damaged or use a file format that Preview doesn’t recognize. —or— Acrobat could not open [insert file name] because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn’t correctly decoded). To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF. I suspect the error is somehow related to our recent upgrade from ScriptMaster 3.34 to 4.206, but we’d really hate to go back due to a plugin conflict we’re no longer having. Does anyone have any suggestions? Thank you!
john renfrew Posted October 3, 2014 Posted October 3, 2014 test it with a known pdf first?? I just did with https://fmhelp.filemaker.com/docs/13/en/fm13_sql_reference.pdf works as expected.. with 4.206 test your served file from inside the 360works examples file?? download it manually and import into your container?
the Otter Posted October 14, 2014 Author Posted October 14, 2014 In case anyone happens along with the same problem, we finally fixed this by moving to BaseElements and using BE_GetURL instead.
Recommended Posts
This topic is 3961 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