Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: andrez on February 07, 2003, 04:06:17 AM

Title: PDF on 5.6 NOT WORK !?
Post by: andrez on February 07, 2003, 04:06:17 AM
i have installed this on sms 5.6
NO ERROR
BUT NO MAKE NOTHIG
i thik is a problem of samba 2.2.7-3
this is part of smb.conf


; Set up our PDF-creation print service
[pdf]
path = /tmp
printable = yes
guest ok = yes
print command = /usr/bin/printpdf %s

; There is no need to support listing or removing print jobs,
; since the server begins to process them as soon as they arrive.
; So, we set the lpq (list queued jobs) and lprm (remove jobs in queue)
; commands to be empty.
lpq command =
lprm command =

and this my /usr/bin/printpdf

#!/bin/sh
DATE=date +%b%d-%H%M%S
OUTDIR=/home/e-smith/files/ibays/pdfdrop/files
ps2pdf $1 $OUTDIR/$DATE.temp
mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
rm $1

i have install all ps2pdf work fine if i make a pdf from ps
Title: Re: PDF on 5.6 NOT WORK !?
Post by: Jon Blakely on February 07, 2003, 12:15:08 PM
If  PS to PDF is working then you do not have a problem surely. That is what ps2pdf is supposed to do and all it is supposed to do.

Jon
Title: Re: PDF on 5.6 NOT WORK !?
Post by: andrez on February 07, 2003, 02:36:42 PM
ps2pdf work ... but when i try to print , no make nothing :(
Title: Re: PDF on 5.6 NOT WORK !?
Post by: Jáder Marasca on February 08, 2003, 12:22:53 AM
Have you installed a Postscript printer on your workstation and pointed it to \server\pdf  ?
I use HP Color PS ??? (I don´t remember the exact model) or the APPLE PS xxxx (same problem to remember exact model)

I have no problems at all with this!

If this don´t work, verify if when you print, a file is created on /tmp of your server. So try to run printpdf  on it and verify to any errors.

hope this help you!

Jáder
Title: Re: PDF on 5.6 NOT WORK !?
Post by: andrez on February 08, 2003, 04:16:51 AM
the probles is when i print no make nothing in /tmp ...
HELP :(
Title: Re: PDF on 5.6 NOT WORK !?
Post by: Jáder Marasca on February 08, 2003, 01:43:32 PM
So you don´t have a postscript printer installed at workstation (and his port redirected to pdf on server!)

Because this file on /tmp is transformed by printpdf to a PDF file. No file, no PDF.

Try install another postscript printer on your workstation pointing to the PDF port you created on server (not for the ibay pdfdrop!)
Title: Re: PDF on 5.6 NOT WORK !?
Post by: Tim Hogan on March 18, 2003, 08:24:32 PM
I have the same problem as Andrez.  I followed Lasse Johansson's how-to (http://e-smith.saxdalen.com/howto/How_to_install_PDF_over_LAN.html ) to install on a server that had recently been upgraded to 5.6.  I have installed a postscript printer obtained from adobe using their winsteng.exe utility selecting 'Acrobat Distiller' as the printer.  I have done the same on other servers running 5.12 and everything worked fine and continued to work after updating the servers to more recent versions.  I have also tried installing various other Postcript printers with the same result.  When I print, there are no error messages but nothing appears in the pdfdrop folder either.  However, each time I have attempted to print a file is left in the /tmp folder on the server tiltled "FormMagick_XML_XXXXX" where the final X's are numbers.  the contents of the file is always:




Anyone else run into this?  Any ideas?
Title: Re: PDF on 5.6 NOT WORK !?
Post by: Tim Perreault on March 20, 2003, 07:03:30 AM
Hey folks I'm getting the same error as the other Tim. I don't have any printers on this server thou.

I also get these messages

[Sat Mar 15 23:48:28 2003] navigation: Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 213, line 67.

[Sat Mar 15 23:48:28 2003] navigation: Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/XML/Parser/Expat.pm line 474.

[Sat Mar 15 23:48:28 2003] navigation: Use of uninitialized value in print at /usr/lib/perl5/site_perl/5.6.1/CGI/FormMagick/Setup.pm line 174.

In the FormMagick.pm line 213 and surounding lines mention Lexicon and Lextext if thats any help.

I'd apperciate any help.

Thanks Tim