I am developing a component based on Tk's text widget.
But when I use `tk print $textwidget` instead of a print
dialog it just throws an error:
"No installed printers found.
Please check or update your CUPS installation."
I do have CUPS and a printer installed.
I'm using Tcl/Tk 9.0.2 (64-bit) on Debian 12 (bookworm) on
Linux 6.1.0. My Tcl/Tk was built from source and is installed locally.
I'm not after printing per-se; but I _would_ like to get either
postscript or PDF output from the text widget.
On Tue, 14 Oct 2025 07:49:47 -0000 (UTC)
Mark Summerfield <m.n.summerfield@gmail.com> wrote:
I am developing a component based on Tk's text widget.
But when I use `tk print $textwidget` instead of a print
dialog it just throws an error:
"No installed printers found.
Please check or update your CUPS installation."
I do have CUPS and a printer installed.
Can you please fill a ticket at https://core.tcl-lang.org/tk/ticket ?
I'll take a look.
I'm using Tcl/Tk 9.0.2 (64-bit) on Debian 12 (bookworm) on
Linux 6.1.0. My Tcl/Tk was built from source and is installed locally.
If you have installed libcups2 development files (libcups2-dev package
on debian based distros) Tk will link with such library and you
get a much faster print processing.
I'm not after printing per-se; but I _would_ like to get either
postscript or PDF output from the text widget.
On free unices you can install the Generic-CUPS-PDF-Printer virtual
printer and get a pdf from the text widget in the $env(HOME)/PDF
folder.
Regards
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 1,073 |
Nodes: | 10 (0 / 10) |
Uptime: | 216:33:11 |
Calls: | 13,783 |
Calls today: | 1 |
Files: | 186,987 |
D/L today: |
427 files (128M bytes) |
Messages: | 2,434,687 |