Jump to content

Corrupt PDFs from GetURLasContainer


This topic is 3474 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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!  :)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 3474 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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