Printing Methods – Mac

This page is referenced from Printing Methods.

Whereas Linux via such packages as kprinter and gtklp can be "passed" files to present to the user for additional options prior to printing (or even cancelling the print job), the Mac provides no such package.

A tiny, developed-for-purpose application (in Cocoa) could be created to do this, and would likely take a Mac developer half a day or a day depending on their background.

In the meantime, options include:

  • directing the output straight to whatever is each Mac user's default network (CUPS) printer
  • modifying the control file's lpr command on a per-machine, or per-machine system account user level
  • substituting, in place of the lp or lpr command, one redirecting the file (for example a PDF) into the Apple's 'Preview" application:
    • # open -a Preview or
    • # osascript -e 'tell application "Preview" to open ((POSIX file "fullySpecifiedFilenameInQuotes") as text)'

Apple Script

http://forums.macosxhints.com/showthread.php?s=&threadid=19736

http://www.macosxhints.com/article.php?story=20050523140439734

http://www.macobserver.com/tmo/forums/viewthread/10606/


http://lists.apple.com/archives/printing/

http://developer.apple.com/legacy/mac/library/referencelibrary/GettingStarted/GS_Printing/index.html

http://gemma.apple.com/mac/library/documentation/Porting/Conceptual/win32porting/Articles/printing.html

http://www.mactech.com/macintosh-c/chap15-1.html

http://www.datalogics.com/pdf/doc/jr/JobReady_Developers_Guide.pdfhttp://www.datalogics.com/pdf/doc/jr/JobReady_Developers_Guide.pdf

Cocoa PDE with Carbon Printing
   http://developer.apple.com/mac/library/samplecode/CarbonPrintingSample/index.html

http://developer.apple.com/mac/library/samplecode/OutputBins2PDE/

http://17.254.2.129/mac/library/documentation/Printing/Reference/PDEPanel_Protocol/Reference/Reference.html

http://www.glorifiedtypist.com/2006/05/print_dialog_extensions_vs_app.html

klprPDE
   http://oit.ncsu.edu/macintosh/klprpde

http://www.lprng.com/

fax from command line or apple script
   http://www.macosxhints.com/article.php?story=20031128150928128

http://aplawrence.com/MacOSX/macosxshell.html

http://osxdaily.com/2007/02/01/how-to-launch-gui-applications-from-the-terminal/

http://localhost:631/

http://tldp.org/HOWTO/Printing-HOWTO/how.html

https://www.itu.dk/sysadm/dokuwiki/doku.php?id=user_driven_wiki:mac:ip_print

http://lists.apple.com/archives/printing/2003/Nov/msg00033.html
code snippets that I've sent to other developers

http://lists.apple.com/archives/printing/2003/Dec/msg00054.html
I don't know about MacApp but the PrintCore framework has NoDialog variants of the standard print loop APIs that enable applications to print without showing a progress dialog -- PMSessionBeginDocumentNoDialog(), PMSessionBeginPageNoDialog(), PMSessionEndPageNoDialog, PMSessionEndDocumentNoDialog().

The PrintCore framework has PMServerCreatePrinterList() that returns a list of printers and PMPrinterGetID() to get the unique queue id. In Panther we handle multiple printers of the same model on the USB bus so your app should be able to identify each printer.

cupstestppd command?

http://aplawrence.com/MacOSX/macosxshell.html

http://osxdaily.com/2007/02/01/how-to-launch-gui-applications-from-the-terminal/

http://localhost:631/

http://tldp.org/HOWTO/Printing-HOWTO/how.html

https://www.itu.dk/sysadm/dokuwiki/doku.php?id=user_driven_wiki:mac:ip_print

Topic revision: 14 Jan 2010, JamesBusser
 
Download.png
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Powered by Olark