Printing with Python

Discussion in 'Mac Programming' started by lpeedin, Oct 20, 2012.

  1. macrumors regular

    Joined:
    Nov 4, 2011
    #1
    Does anyone know of a library/module that will allow access to a printer attached to an OSX device? I'm not talking about just dumping some raw text, I need to be able to set font parameters and just as important, I must be able to draw lines. I can do this under Windows/Python using the PyWin32 library.
     
  2. macrumors 603

    Joined:
    Aug 9, 2009
    #2
    What have you tried? Be specific.

    Here's what I tried, which took less than one minute:
    1. I selected the thread title: Printing with Python.

    2. I did a right-click and chose "Search with Google".

    3. On the first page of results was this:
    http://stackoverflow.com/questions/1364595/printing-to-a-usb-printer-with-python-on-a-mac

    4. In the example, it mentions printing a PDF file. So the next step was googling: python pdf library

    5. On the first page of results is this:
    http://code.google.com/p/pdfrw/
     

Share This Page