If you don't need any interaction with the user, I print PDFs on a Mac with
the "lpr" command
$printerName:=Get current printer
$pathToPDF:="SnapServer:Test_Invoices:Checon_Invoices:2019:04 -
April:224747_04_12.PDF"
LAUNCH EXTERNAL PROCESS("lpr -P "+$printerName+" "+Replace string(Convert
path system to POSIX($pathToPDF);" ";"\\ "))
You can also populate $printerName from the "PRINTERS LIST" command and
present the user what printer they want before you send it... or have a
company setting to keep it to a printer you want to always print these with.
I think this does the default "shrink to fit" that preview does and should
work for your PDFs, I have not had any problem printing this way for years.
- Matt
--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************