gtk print operation (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: gtk print operation
|
edryan (User)
Fresh Boarder
Posts: 19
|
|
gtk print operation 2 Months, 3 Weeks ago
|
Karma: 0
|
|
how could i perform print operations in php gtk???
do i need extensions for that???
|
|
|
|
|
|
|
Last Edit: 2008/08/26 23:46 By edryan.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:gtk print operation 2 Months, 1 Week ago
|
Karma: 0
|
|
Printing requires Cairo support to function properly.
Before this year's GSOC this was not possible. Now it is possible, but the code is not ready for release yet (still some bugs)
Print capability is only available with the cvs version of PHP-GTK and with the cvs version of the new OO cairo PECL extension. So you have to check out the cairo extension, compile it, then compile PHP-GTK against the cairo extension, and then look at the examples in the /demos/examples folders in CVS. It's a lot of work, you might just want to wait until the the cairo extension and PHP-GTK get their next release ;)
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
XeKtRuM (User)
Fresh Boarder
Posts: 14
|
|
Re:gtk print operation 2 Months, 1 Week ago
|
Karma: 0
|
|
are you talking about print on a printer? if so, theres a php_printer extension for windows in the PECL repository, and if you are under Linux you can do it by using the lpr/lpd commands (CUPS) by using shell_exec or exec. I don't know if you could print images with any, but shure you can print text
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|