http://ubuntuforums.org/showthread.php?t=893968
CUPS-PDF file name prompt
Over the past few months, a number of forum members have requested help in configuring cups-pdf to prompt for a file name. With the help of the threads credited below, I got this working and thought I would pass along the procedure I followed.
1) Create a script similar to the sample script below and place it in a folder in your path (~/bin is good).
2) Open the file /etc/apparmor.d/usr.sbin.cupsd in a text editor and add the path to the script at the end of this file just before the final } symbol. After the path append uxr,. An example is:3) Open the file /etc/cups/cups-pdf.conf in a text editor, remove the # symbol before the line that begins with postprocesssing, and add the path to the script after postprocessing. An example is:/home/kaibob/bin/cupscript.sh uxr,4) Restart apparmor (ignore warning messages):PostProcessing /home/kaibob/bin/cupscript.sh5) Restart your computer (seems to be necessary).sudo /etc/init.d/apparmor restart
The sample script contained below works but is intentionally barebones--you will want to gussy it up a bit to fit your needs. It uses zenity, which I believe is installed by default in Hardy, but is otherwise available in the repo's. Be sure to back up all files before editing them.
SAMPLE SCRIPTSOURCES - CREDIT#!/bin/bash
CURRENT_PDF="${1}"
CURRENT_USER="${2}"
DISPLAY=:0.0
export DISPLAY
XAUTHORITY=/home/${CURRENT_USER}/.Xauthority
export XAUTHORITY
PDFNAME=$(zenity --file-selection --save --confirm-overwrite)
mv "$CURRENT_PDF" "$PDFNAME"
http://ubuntuforums.org/showthread.php?t=750426
http://ubuntuforums.org/showthread.php?t=837257
Last edited by kaibob; August 21st, 2008 at 05:59 AM.
相关推荐
mac os 下的虚拟打印机,直接安装版。 使用步骤: 1、下载安装包,打开安装。...3、此时可以看到名字位CUPS-PDF的打印机,在下边一栏的【使用】下拉单中选择“普通PostScript打印机”。 4、点击【添加】完成配置。
标题中的“cups-windows-6.0-source.tar.gz”表明这是一个针对Windows平台的CUPS源代码包,版本为6.0,采用tar.gz格式进行压缩。这种格式在Unix/Linux环境中常见,用于打包和压缩文件。 描述中的“cups 6.0 open...
linux系统中通用虚拟打印机源代码, 纯c代码,inux系统中通用打印机系统的实现源代码,通过631端口监听打印请求,电脑可以作为打印服务器
cups打印过滤器,用来补充cups的过滤器,以支持pdf等文件的打印
1. 获取源码:下载"cups-2.3.1.tar.gz"压缩包,然后使用`tar -zxvf cups-2.3.1.tar.gz`命令解压。 2. 准备环境:确保系统已经安装了必要的构建工具,如GCC、Make、Autoconf、Libtool等。 3. 配置:进入解压后的目录`...
在压缩包中的“cups-pdf-3.0beta1”,很可能是CUPS的一个虚拟打印机驱动,名为PDF(Portable Document Format)。这个驱动程序允许用户将打印任务输出为PDF文件,而不是实际的纸质文档。这样做的好处在于,用户可以...
cups-devel-1.4.2-48.el6.i686.rpm
离线安装包,测试可用
离线安装包,亲测可用
这个压缩包"cups-2.3.3-source.tar.gz"包含了CUPS源代码,允许开发者或系统管理员在本地编译和定制CUPS以适应特定环境。 CUPS的核心功能包括: 1. **打印作业管理**:CUPS通过IPP(Internet Printing Protocol)...
离线安装包,亲测可用
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
cups-pk-helper-0.0.4-12.el6.i686.rpm
cups-libs-1.4.2-48.el6.i686.rpm
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
cups-2.2.8-source.tar.gz CUPS(Common UNIX Printing System,通用Unix打印系统)是Fedora Core3中支持的打印系统,它主要是使用IPP(Internet Printing Protocol)来管理打印工作及队列,但同时也支持"LPD"(Line ...
离线安装包,亲测可用
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
docker-cups-airprint-hplip 运行带有HPLIP驱动程序的CUPS实例的基于Alpine的Docker映像,以使用不具有AirPrint功能的本地USB打印机作为AirPrint打印机目录 关于取自tigerj / cups-airprint ,它是quadportnick / ...
cups-1.4.2-48.el6.i686.rpm