How can I print a PDF that resides in the same directory as the solution from a script? Probably very simple, but I've tried everything... I think!
benniemc wrote:that resides in the same directory!
that resides in the same directory!
Do you mean: save it to the same directory?
Let ( [
fp = Get ( FilePath ) ;
lastPos = Position ( fp ; "/" ; Length ( fp ) ; -1 )
Left ( fp ; lastPos )
calculates the path to the solution's folder.
Thanks for the response. The PDF already exists (sometimes multi-page) I just want to include it in my printing script.
benniemc wrote:I just want to include it in my printing script.
I just want to include it in my printing script.
What does “Include” mean?
Just want to print a PDF. Need to "include" the print step in a script.
Filemaker does not have a script step for printing a PDF. You can create a PDF but not print a pdf. There might be a plugin that can do this.
"Send Event" script step has ability to print any document.
Mac or Win?
for Mac you can use MBS Plugin function PDFKit.Print to print a PDF. See website:
You are not being very expansive with your information. Is the PDF in a container field perhaps? If so, you can print it directly from the field using the floating toolbar.
The PDF is a separate file in the same directory.
Is this Windows or Mac?
Search your favourite search engine of choice for
print PDF from command line
this link might be helpful
Use Applescript if on a mac.
Otherwise put the PDF in a container field on a separate layout and print then print that record.
We do this all the time.
What script step would be used to create a pdf?
I'm using FM 13 Adv on a Mac. I have an invoice document of which I need a pdf copy. Thank you
Retrieving data ...