NGDesktop Utils
NGDesktop Utils
Getting Started
Example Usage
`//print a pdf document to the specified printer`
`const options = {`
`printer: "Zebra"`
`}`
`plugins.ngdesktoputils.printPDF("/Users/admin/Documents/myZebraFile.pdf", options);`
`//print a pdf document with options: second page only on windows, and 2 page on one side for Unix like system`
`const options = {`
`printer: "Zebra",`
`unix: ["-o number-up=2"], `
`win32: ['-print-settings "2"']`
`};`
`//For available options on Unix like systems check you system's lp manual (man lp)`
`//For available Windows options check the "Printing options" of the command-line arguments for SumatraPDF: https://www.sumatrapdfreader.org/docs/Command-line-arguments`API Documentation
Method Summary
exit
executeCommand
Type
Name
Summary
Required
executeCommandSync
Type
Name
Summary
Required
setClipboardContent
Type
Name
Summary
Required
getClipboardContent
isNGDesktop
printPDF
Type
Name
Summary
Required
getPrinters
getDefaultPrinter
Last updated
Was this helpful?