#navi(../)
*cups-pdfの出力先ディレクトリ変更方法 [#gaac08ff]
CentOSへのcups-pdfのインストール方法は「[[CentOS/PDF出力ができるcups-pdfのインストール(CentOS)]]」を参照のこと。~
#br
CentOS5.4にcups-pdfをインストールするとデフォルトではデスクトップに出力されます。~
この出力先を変更する方法を以下に記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* /etc/cups/cups-pdf.confの修正 [#d4d788a6]
/etc/cups/cups-pdf.confにはPDF出力先ディレクトリが指定されています。~
本ファイルを修正することにより出力先の変更をおこなえます。~
修正箇所は&color(red){赤字};の部分になります。~
以下、/etc/cups/cups-pdf.confの抜粋
#hr
###########################################################################~
# #~
# Path Settings #~
# #~
###########################################################################~
~
### Key: Out~
## CUPS-PDF output directory~
## special qualifiers:~
## ${HOME}
will be expanded to the user's home directory~
## ${USER} will be expanded to the user name~
## in case it is an NFS export make sure it is exported without~
## root_squash!~
### Default: /var/spool/cups-pdf/${USER}~
~
#Out /var/spool/cups-pdf/${USER}~
Out &color(red){${HOME}/Desktop};~
### Key: AnonDirName~
## ABSOLUTE path for anonymously created PDF files~
## if anonymous access is disabled this setting has no effect~
### Default: /var/spool/cups-pdf/ANONYMOUS~
#hr
&color(red){赤字};部分はの意味は各ユーザのホームディレクトリ(=${HOME})のDesktopディレクトリに出力します。~
この部分を変更することによりPDF出力先を変更することができます。~
尚、/etc/cups/cups-pdf.confを修正するときは’’root''で作業をおこなってください。~
一般ユーザではファイルの修正が行えませんので。
#br
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
#br