PDFdistiller - Small change proposal

Goffioul Michael goffioul at imec.be
Mon Nov 15 09:23:36 CET 2004


Well, you have pros and cons. IMO, it depends on the environment
where you create the PDF files. In a multi-user setup, where the
PDF are stored in a central place, I think it's best to name PDF
files according to the user name. Of course, in a single-user
environment, you'd prefer to name file according to the job name
(or title) as it was in the first place. It's a matter of taste.
Maybe I should make this configurable.


> -----Original Message-----
> From: Paulo A. Santos [mailto:paulodesenhista at brturbo.com]
> Sent: Saturday, November 13, 2004 13:48
> To: kde-print at kde.org
> Subject: PDFdistiller - Small change proposal
> 
> 
> Hello
> 
> I'm using the KDEPrint/CUPS without big problems. I just have a small 
> change proposal on the "pdfdistiller" script. It's on the output name 
> generation section. Following the section with the change :
> 
> # generate output filename
> OUTPUTFILENAME=
> if [ "$3" = "" ]; then
>     OUTPUTFILENAME="$PDFDIR/unknown.pdf"
> else
>     # OUTPUTFILENAME="$PDFDIR/${3//[^[:alnum:]]/_}.pdf"
>     # I changed this to user name, and the printtime to track down who
>     # printed the PDF and when, samba printing just uses nobody
> 
>     #OUTPUTFILENAME="$PDFDIR/$2-$PRINTTIME.pdf"
>    
>     #This line catch "Title" on the ps file head and set 
> OUTPUTFILENAME.
>     #So we have just the real filename. It will help each 
> file owner to 
> find their file on a very
>     #active print server. The user won't need to rename 
> manually. But It 
> still have some
>     #throuble with special chars like deadkeys.
> 
>     OUTPUTFILENAME="$PDFDIR/`cat $6 | grep -i title | cut -d: 
> -f2 | cut 
> -d. -f1`.pdf"
>    
>     echo "PDF file: $OUTPUTFILENAME placed in: $PDFDIR" >> $LOGFILE
> fi
> 
> I hope it may help, and you may include it as one more option for the 
> next release.
> Thanks a lot for the great job on the KDEPrint/CUPS.
> 
> Paulo A. Santos
> 
> 
> 
> _______________________________________________
> kde-print mailing list
> kde-print at kde.org
> https://mail.kde.org/mailman/listinfo/kde-print
> 


More information about the kde-print mailing list