# Where to start if I want to print to

**URL:** <https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906>\
**Category:** Ruby\
**Created:** [May 7, 2008, 9:48am UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906 "2008-05-07T09:48:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 9:48am UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/1 "2008-05-07T09:48:37Z")

</div>

1. Linux (CUPS) printers
2. Windows printers

by  
TheR

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 10:16am UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/2 "2008-05-07T10:16:54Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Damjan R. wrote:  
| 1. Linux (CUPS) printers  
| 2. Windows printers

1.) The CUPS API documentation  
2.) The Windows API documentation

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

~ “If we wanted more leisure, we’d invent machines that do things less  
efficiently.” -Calvin’s dad  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkghZUYACgkQbtAgaoJTgL8JNQCdFW/k+TCH/KmG59oSPkl/ogHd  
I4oAn0RG8pd6qaNFseh1MLB66b+6rgZQ  
=g6Ak  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 11:44am UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/3 "2008-05-07T11:44:35Z")

</div>

Phillip G. wrote:

> -----BEGIN PGP SIGNED MESSAGE-----  
> Hash: SHA1
> 
> Damjan R. wrote:  
> | 1. Linux (CUPS) printers  
> | 2. Windows printers
> 
> 1.) The CUPS API documentation  
> 2.) The Windows API documentation

Seriously. I thought this would be simplier.

Is there no library which would simplify drawing pixels and fonts and  
pictures etc. and send result to printer queue?

by  
TheR

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/4 "2008-05-07T13:04:29Z")

</div>

Phillip G. wrote:

> -----BEGIN PGP SIGNED MESSAGE-----  
> Hash: SHA1
> 
> Damjan R. wrote:  
> | Seriously. I thought this would be simplier.  
> |  
> | Is there no library which would simplify drawing pixels and fonts and  
> | pictures etc. and send result to printer queue?
> 
> Beats me. My mind-reading powers are in the shop for maintenance at the  
> moment, so I have no clue what your problem is.
> 
> Also, it might be a good idea to use [search.yahoo.com](http://search.yahoo.com) to answer your  
> question? Or this new kid on the block, [google.com](http://google.com)?
> 
> A general question gets a general answer, since more isn’t possible  
> (since, as aforementioned psychic power is not available currently).

So why do you answer if you are on maintenence.

And no searching friends don’t have any goooood answers. At least not on  
first few pages.

by  
TheR

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 12:18pm UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/5 "2008-05-07T12:18:21Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Damjan R. wrote:  
| Seriously. I thought this would be simplier.  
|  
| Is there no library which would simplify drawing pixels and fonts and  
| pictures etc. and send result to printer queue?

Beats me. My mind-reading powers are in the shop for maintenance at the  
moment, so I have no clue what your problem is.

Also, it might be a good idea to use [search.yahoo.com](http://search.yahoo.com) to answer your  
question? Or this new kid on the block, [google.com](http://google.com)?

A general question gets a general answer, since more isn’t possible  
(since, as aforementioned psychic power is not available currently).

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

~ “I don’t understand this! Not a single part of my horoscope came  
true! … The paper should print Mom’s daily predictions. Those sure  
come true.”

- -Calvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkghgZsACgkQbtAgaoJTgL8LPQCbBlQsInxzIxmbnl4aEVm55GoR  
KzsAnRPQANAQE24o5QJMMGT0ySgd2Dls  
=qQza  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![ther](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/977dab/32.png) [@ther](https://www.ruby-forum.com/u/ther)\
**Post date:** [May 7, 2008, 1:16pm UTC](https://www.ruby-forum.com/t/where-to-start-if-i-want-to-print-to/136906/6 "2008-05-07T13:16:52Z")

</div>

Damjan R. wrote:

> 1. Linux (CUPS) printers
> 2. Windows printers

You could look into the cross-platform GUI toolkits, for example wxRuby,  
FxRuby, QT or GTK. Some of these should should provide abstractions for  
writing to a printer. wxRuby for example provides a variety of classes  
which abstract the native printing frameworks on Mac, Linux and Windows:

[http://wxruby.rubyforge.org/doc/htmleasyprinting.html](http://wxruby.rubyforge.org/doc/htmleasyprinting.html) (very simple to  
use)  
[http://wxruby.rubyforge.org/doc/#printing](http://wxruby.rubyforge.org/doc/#printing) (full control)

a
