[Samba-it] pdf generator e molto di +

Riccardo Gaggero riccardo.gaggero at sogefifiltration.it
Wed Jul 26 15:18:01 MDT 2006


fabio.pellegri at garr.it ha scritto:
> un saluto a tutti
>
> ho trovato su un  smb.conf tra i vari che si trovano in rete questa 
> sezione:
>
> [pdf-gen]
>    comment = PDF Generator (only valid users)
>    path = /var/tmp
>    printable = Yes
>    printing = bsd
>    print command = /usr/share/samba/scripts/print-pdf "%s" "%H" 
> "//%L/%u" "%m" "%I" "%J" &
>    lpq command = /bin/true
>    lprm command = lprm -P'%p' %j
>
> qualcuno sa dirmi come funziona e dove trovare lo script per generare pdf
>
> grazie
> _______________________________________________
> Samba-it mailing list
> Samba-it at xsec.it
> https://lists.xsec.it/mailman/listinfo/samba-it
>
>
>
prerequisiti installare ghostscript e tools

[Tiff]
        comment = Generatore file TIFF
        printable = yes
        print command = /usr/local/bin/creatiff.sh %s
        printing = BSD
        read only = yes
        guest ok = yes

 [Jpeg]
        comment = Generatore file Jpeg
        printable = yes
        print command = /usr/local/bin/creajpeg.sh %s
        printing = BSD
        read only = yes
        guest ok = yes

 [Pdf]
        comment = Generatore file PDF
        printable = yes
        print command = /usr/local/bin/creapdf.sh %s
        printing = BSD
        read only = yes
        guest ok = yes


[Pdf Share]
        comment = Dir TMP per conversione
        path = /home/pdfshare
        guest ok = yes
        writable = yes

----------------
#!/bin/sh
# Creiamo un numero seriale per il nome del file se stampi piu'
# di un  job al secondo aggiugici il PID in coda con $$
DATE=`date +%b%d-%H%M%S`
# Directory in which to place the output
# Be sure this directory exists and is writable by the user that Samba
# is running as (for example, the nobody user)
OUTDIR=/home/pdfshare
gs -dNOPAUSE -sDEVICE=jpeg  -dJPEGQ=10 -r300X300 
-sOutputFile=$OUTDIR/$DATE.jpg $1 -c quit
----------------
#!/bin/sh
# Creiamo un numero seriale per il nome del file se stampi piu'
# di un  job al secondo aggiungici il PID in coda con $$
DATE=`date +%b%d-%H%M%S`
# Directory in which to place the output
# Be sure this directory exists and is writable by the user that Samba
# is running as (for example, the nobody user)
OUTDIR=/home/pdfshare
ps2pdf $1 $OUTDIR/$DATE.pdf
----------------
#!/bin/sh
# Creiamo un numero seriale per il nome del file se stampi piu'
# di un  job al secondo aggiugici il PID in coda con $$
DATE=`date +%b%d-%H%M%S`
# Directory in which to place the output
# Be sure this directory exists and is writable by the user that Samba
# is running as (for example, the nobody user)
OUTDIR=/home/pdfshare
gs -dNOPAUSE -sDEVICE=tiffg4 -r600x600 -sOutputFile=$OUTDIR/$DATE.tiff 
$1 -c quit
----------------

la cartella /home/pdfshare in share con samba è di appoggio per 
prelevare i file di output

sul pc window$$$$$$ devi installre un driver POSTSCRIPT COLOR io uso un 
HP plotter color (ma non mi ricordo il modello)
spero che ti sia stato d'aiuto




More information about the samba-it mailing list