Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lpeedin

macrumors regular
Original poster
Nov 4, 2011
193
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.
 

chown33

Moderator
Staff member
Aug 9, 2009
10,751
8,425
A sea of green
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/
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.