Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I'm writing a script to insert a PDF into a container field.

I've captured the file name and path as a var ($filename) prior to creating the PDF.

If I use the Insert Picture step, I get a "file not found" error, even though the file name and path are correct.

Using Insert File instead, the file is found an inserted into the container field with no errors. However, I need the actual PDF displayed in the container field (as opposed to a file reference, which is the result of using Insert File) and I believe Insert Picture is the only way to achieve this.

For the life of me I can't figure out why $filename works for Insert File but not for Insert Picture.

Thanks in advance for any help with this.

Posted

PDF is not a picture format. See:

http://fmhelp.filemaker.com/fmphelp_11/en/html/add_view_data.4.34.html#1029837

Maybe instead of a container field, you could try using a web viewer.

Posted

I'm on a Mac. But I figured it out. The path I was saving began with "filemac:" This is fine for Insert File, but Insert Picture requires "imagemac:".

Thanks for your help.

This topic is 4797 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.