R2D2 Posted December 2, 2019 Posted December 2, 2019 (edited) 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 December 2, 2019 by R2D2
R2D2 Posted December 2, 2019 Author Posted December 2, 2019 Solved!! In the Insert PDF -script step has to be written "imagemac:" and then the variable with path. Now it works!🎉
comment Posted December 2, 2019 Posted December 2, 2019 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).
Recommended Posts
This topic is 1886 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