Jump to content
Server Maintenance This Week. ×

Insert PDF fails


R2D2

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

Recommended Posts

Hi!

 

In my script I would like to print a form as pdf and then import (insert) it back to FileMaker (18 adv) to a container field. I have declared a variable for printing path to temporary folder ($FullPdfPath) which is shown as "/Macintosh HD/var/folders/v0/1xnctqb11hz6qff8qt937yn40000gn/T/S10/print.pdf".

So far, so good... Printing to pdf-file works well and this "print.pdf" appears to temporary folder. But when I now Go To Field ("Printed PDF")  (container field, optimized for interactive content)  in the script, and Insert PDF (Specify source file, "$FullPdfPath"), I always get an error 100 (File is missing).

I have tried to export and import to different paths (Desktop etc) but always same Error 100 File is missing. The file IS there, but is there something wrong with my path? Or what?

Is there an easier way to store a printed pdf to a container field directly?

 

Edited by R2D2
Link to comment
Share on other sites

For Insert PDF to work, the file path must begin with "image:" or "imagemac:" or "imagewin:" or "imagelinux:".

My preference is to use Insert File, which does not require going to the target field first (in fact, the field does not have to be on the layout at all).

Link to comment
Share on other sites

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