On Nov 10, 2016, at 6:09 PM, Kirk Brooks wrote:

> Hi Miyako,
> Thanks for this. It works great on MAC OS but I have been unable to figure
> out how to pass the correct parameter for the pDatatype that corresponds to
> PDF on the windows side. Or even what the PDF param would be...

Nice that Miyako made a plugin especially for you and your situation to print a 
PDF. I’m sure you will get it working.

There is another option. Use Adobe Acrobat Reader on Windows. It has always had 
a “hidden” feature where you can control it from the command line and have it 
open and print a PDF. I’ve been using it for years on Windows.

Here is some example code:

$adobeReaderProgramPath_t:="C:\\Program Files (x86)\\Adobe\\Reader 
10.0\\Reader\\AcroRd32.exe"
$printerName_t:=Get current printer

  // issue the print command to Acrobat Reader
$adobeReaderProgramPath_t:=Char(Double 
quote)+$adobeReaderProgramPath_t+Char(Double quote)
$documentPath_t:=Char(Double quote)+$documentPath_t+Char(Double quote)
$commandLineParameters_t:=" /t "
SET ENVIRONMENT VARIABLE("_4D_OPTION_HIDE_CONSOLE";"true")
LAUNCH EXTERNAL 
PROCESS($adobeReaderProgramPath_t+$commandLineParameters_t+$documentPath_t+" 
"+$printerName_t)

Tim

********************************************
Tim Nevels
Innovative Solutions
785-749-3444
[email protected]
********************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to