October 4, 201114 yr 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.
October 4, 201114 yr 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.
October 6, 201114 yr Author 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.
Create an account or sign in to comment