[Samba] pdf-printer

L.P.H. van Belle belle at bazuin.nl
Tue Jun 30 05:46:52 MDT 2015


Hai Koenraad, 

Just a suggest, what about and email adres to create your pdf files. 
thats what im doing here. 
like companypaper at domain.tld , which generates from excel doc etc to a pdf file with companypaper. 
or   plain at domain.tld same as above but no company logo. 
or   multipdf at domain.tld merge mutiple pdf files to 1. ( or multiple doc/xls files ) 
and this is much faster for us then use cups-pdf. 
im have my emails generated in few seconds and back in my mailbox. 

If you need some examples, just ask. 
all above is done on a debian wheezy system, and the temp folders for generating pdf files are ramdisks. 


Greetz, 

Louis




>-----Oorspronkelijk bericht-----
>Van: samba.k.lelong at ace-electronics.be 
>[mailto:samba-bounces at lists.samba.org] Namens Koenraad Lelong
>Verzonden: dinsdag 30 juni 2015 13:40
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] pdf-printer
>
>Op 30-06-15 om 11:28 schreef Rowland Penny:
>> On 30/06/15 10:24, Rowland Penny wrote:
>>> On 30/06/15 10:10, Koenraad Lelong wrote:
>>>> Op 30-06-15 om 08:58 schreef Rowland Penny:
>>>>
>>>>>
>>>>> Hi, did you read to the bottom of this wiki page :
>>>>> https://wiki.samba.org/index.php/Virtual_PDF_Printer#Setup
>>>>>
>>>>> By my reading, if you add what it tells you, you should 
>find a new log
>>>>> file in '/var/log/samba/Pdfprint.log'
>>>>>
>>>>> Rowland
>>>>>
>>>> Hi,
>>>>
>>>> Yes I did read that, but there is no output to that log-file, it's
>>>> not created either.
>>>>
>>>> This is my printer section :
>>>> [Pdfprinter]
>>>>         comment = Samba Virtual PDF Printer
>>>>         path = /var/spool/samba
>>>>         printable = Yes
>>>>         lpq command =
>>>>         lprm command =
>>>>         print command = /usr/bin/pdfprint.sh -s %f -d 
>/home/%U -o %U
>>>> -m 600 -l /var/log/samba/Pdfprint.log
>>>>
>>>> Slighty modified (other path, no uppercase), and all on 
>one line. And
>>>> pdfprint.sh is located in /usr/bin and executable by all.
>>>>
>>>> I tried the print command manually (as root) and that works.
>>>>
>>>> Koenraad.
>>>
>>> This sounds like a permission problem, if you examine the 
>script, the
>>> logfile is created here:
>>>
>>> # Print messages to stdout / logfile
>>> output () {
>>>     if [ -z "$LOG" ] ; then
>>>         echo -e "$(date "+%b %d %H:%M:%S") $*"
>>>     else
>>>         echo -e "$(date "+%b %d %H:%M:%S") $*" | tee -a "$LOG"
>>>     fi
>>> }
>>>
>>> I think if you look now, the logfile will exist.
>>>
>>> If the logfile exists, I would suggest temporarily making it world
>>> writeable (chmod +w
>>>
>>> /var/log/samba/Pdfprint.log
>>>
>> OOPs wrong button :-[
>>
>> Anyway, once you have the logfile and it is world writable, 
>try again as
>> a normal user and see if you get anything in the logfile.
>>
>> Rowland
>
>The file is -rw-rw-rw-, but still no output.
>That's why I was trying to generate a samba-log-file, to see if there 
>were permission-errors or something.
>
>Any idea what log-level will give meaningfull output, but is still 
>managable ? Can I get logging for printing alone ?
>
>Koenraad
>
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list