このエントリーをはてなブックマークに追加


cups-pdfの出力先ディレクトリ変更方法

CentOSへのcups-pdfのインストール方法は「CentOS/PDF出力ができるcups-pdfのインストール(CentOS)」を参照のこと。

 

CentOS5.4にcups-pdfをインストールするとデフォルトではデスクトップに出力されます。
この出力先を変更する方法を以下に記します。


/etc/cups/cups-pdf.confの修正

/etc/cups/cups-pdf.confにはPDF出力先ディレクトリが指定されています。
本ファイルを修正することにより出力先の変更をおこなえます。
修正箇所は赤字の部分になります。
以下、/etc/cups/cups-pdf.confの抜粋


###########################################################################
#                                                                         #
# 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 ${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


赤字部分はの意味は各ユーザのホームディレクトリ(=${HOME})のDesktopディレクトリに出力します。
この部分を変更することによりPDF出力先を変更することができます。
尚、/etc/cups/cups-pdf.confを修正するときは’’root''で作業をおこなってください。
一般ユーザではファイルの修正が行えませんので。

 

 

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-03-20 (金) 22:30:21