问题标签 [cups]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
service - 用户付费打印服务
在一家公司工作,我一直致力于开发一种可在多个平台上使用的打印服务解决方案。该服务至少应在 Windows(本机打印对话框)、OSX、IOS 和 Android 中可用。我需要能够看到哪个用户正在打印,有多少页等。
我正在寻找一个系统,如适用于 Windows 或 Linux 的 CUPS,它允许我添加/连接到这个支付系统。支付系统确认用户有足够的积分来打印给定的文件。系统应该对用户尽可能透明,并且他/她应该能够像普通网络打印机一样进行打印。
支付系统是现有产品,所以我的系统应该只处理打印和用户认证。
我的第一个想法是开发一个简单的侦听器,它将在服务器上运行并且客户端可以连接到,将文件添加到打印队列并在它们有足够的点时打印。我怎么找不到这种方法的任何教程或类似项目。因此,我正在考虑调整现有产品以满足我的需求。
我已经绘制了我认为系统应该是什么样子的图
linux - 如何编写正在写入特定设备的杯子光栅驱动程序
对于嵌入式 linux 项目,我为自定义热敏打印机编写了打印机驱动程序。一切正常。我现在有一个设备 /dev/thprint ,我可以将像素写入该设备并实际打印该像素(只是一个固定为 384 像素的位数组)。下一步是现在制作一个杯子光栅驱动程序,所以我可以将它用作“真正的”打印机。我查找了许多示例,但我只是不明白在哪里指定要使用的设备。有没有人有一个例子如何做到这一点?
macos - 如何以编程方式将数据发送到原始 CUPS 打印队列?
我正在使用 MonoMac(带有 gtk#),我需要将原始 ZPL 命令发送到 CUPS 打印机。原始命令看起来像文本。它们不是“图像”。我看到 Mono 可以通过 System.Drawing 打印图像,但是如何发送原始数据(原始文本)?
看来我需要调用PMPrinterPrintWithFile或直接与CUPS API交谈。但是我在 Mono 中看不到这些函数的绑定。
我知道我可以对“lpr”命令执行 CreateProcess。它有效,但这是一个非常非常最后的解决方案。
macos - 从 perl 脚本打开 .app 文件(OSX 上的 Perl 脚本)
我需要从打印过滤器调用的 perl 脚本中打开 .app 文件。这个 perl 脚本做了很多其他的事情,但最后,我需要从一个文件夹中打开 .app。我在终端上尝试了“打开/Applications/abc.app”命令,它可以工作。我需要从 Perl 脚本做同样的事情。下面从 Perl 尝试过,但不起作用。知道问题出在哪里吗?也试过 - 打开“/Applications/abc.app”并打开(“/Applications/abc.app”);
错误是: 24/03/14 8:22:33.526 am open[5181]: spawn_via_launchd() failed, errno=54 label=[0x0-0xca0ca].abc path=/Applications/abc.app/Contents/MacOS/abc flags=0 : LaunchApplicationClient.cp #990 LaunchApplicationWithSpawnViaLaunchD() q=com.apple.main-thread
24/03/14 8:22:33.526 am open[5181]: spawn_via_launchd() failed, errno=54 label=[0x0-0xca0ca].EFI.PrintMessenger path=/Applications/abc.app/Contents/MacOS/abc flags =0
试图打开其他应用程序,如 chess.app 或 firefox.app。但同样的错误
linux - 定制工程 VKP80 - 在 linux 上打印根本不打印任何东西
为什么Linux无法打印到打印机型号:Custom Engineering VKP80
?
什么都没发生。
编辑:
linux - 如何使用杯子打印更多作业作为一项作业
我必须使用不同的 lp 选项打印大型作业(混合零件列表为 PDF,图纸为 TIF)。所有这些作业都应在没有任何其他打印作业的情况下打印。我想通了,我可以使用lp -H hold ....最后lp -i plot_job -H resume,但不能同时使用更多的绘图工作。
有没有人有想法来处理这些工作?
例子:
3 套包含:
{
. 1 x 起始页
。2 x first_part_list
。2 x first_drawing
。2 x second_part_list
。.
. .
. .
. 1 x end_page
}
printing - 带有自定义过滤器的 CUPS 页面记帐
我有两台 Konica Bizhub 打印机并希望 Windows 机器通过 Samba 打印。
问题是,这些打印机使用帐户跟踪进行复印/扫描。我是这样处理的:http ://casa.apertus.es/blog/2011/06/howto-account-tracking-konica-minolta-c220-under-linux/(由另一篇文章修改:将 *cupsFilter 添加到打印机 PPD)。
但现在我无法计算打印页数,因为每个作业都以 1 计算。
如果我理解正确,则pstops
必须应用“”过滤器才能正确计数。有没有办法链接过滤器?
由 CUPS 管理的另一台打印机(没有自定义过滤器)被正确计算并使用相同的驱动程序方法(带有打印机特定 PPD 的 Windows PS 驱动程序)。
debian - install needed shared library debian
XeroxPhaser3100 MFP has only 32-bit drivers. I want to use it with CUPS on my openmediavault (NAS) based on Debian. The OS is 64bit.
I install drivers like in this manual https://wiki.archlinux.org/index.php/Xerox_Phaser_3100MFP only changing arch commands to debian commands. On this link there is a help how to avoid the following error (this error happened to me too):
Error: /usr/lib/cups/filter/rastertoprinter failed /var/log/cups/error.log shows:
readelf -d /usr/lib/cups/filter/rastertoprinterbin shows me
With apt-get install ia32-libs I install proper libraries and now I have these libraries, that are NEEDED. But I don't understand what should I do to load them, to make system understand, that these libraries are installed. What should I do? On that manual there is a sentense:
Note: If you driver binary is linked against other libraries (or versions) you need to install them and create proper symlinks. See this.
Under "this" they mean the following:
First of all, check if this library is installed properly. Then check symlinks. Also you may need to run ldconfig after symlinks creation.
ldconfig -v shows this:
PS. command ln -s /usr/lib32/libc.so /usr/lib32/libc.so.2
made a symlink but the NEEDED shared library is still NEEDED I still have the error:
Here is my question: What symlinks should I make and how? Or what should I do to make system understand the NEEDED shared libraries?
macos - 文本文件的命令行打印以适应 Unix / Mac OS 上的一页
我需要打印一堆文本文件。它们都非常小,如果字体大小选择得当,它们都可以放在一个文本页面上。我怎样才能自动做到这一点?
我试过(find ... -exec
...完整的通话,这只是一个文件)
但这只是在 A4 的一页上打印 text.txt。
做这项工作,但我如何“自动检测” cpi 和 lpi?