Re: Help Sought with Samba pseudo printer for PDF...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bret Hughes wrote:

On Wed, 2003-11-05 at 10:35, Timothy Stone wrote:

Reuben D. Budiardja wrote:


On Wednesday 05 November 2003 10:11 am, Timothy Stone wrote:
<snip>

Simple enough, right? Well, something is haywire. The pseudo printer is
available to a Windoze client via Add Printer... Printing seems to work
at first, but the resulting output is *always* 321 bytes and cannot be
opened by Adobe Acrobat. :(



<snip>

Hello,
Not sure if this is much help, but I followed the same article with some slight modification / adjustment to suit my need and it works. My suggestion is to test the following:


1. Make sure you can create PDF with the script and everything *on* the linux box itself. This is to make sure that your script is really working.



Great advice


Hmmm... well, this actually produces something I wasn't expecting (using the script per LG#72):

[tstone@psyche bin]$ /usr/local/bin/printpdf ~/viEtcHostsHelp.doc
**** Unable to open the initial device, quitting.
mv: cannot stat `/share/pdfdrop/Nov05-112520.temp': No such file or directory


OK two issues that I see.  I think most of these print to a command
things assume a postscript input but you are not getting that far due to
what looks like permissions on the pdfdrop dir.

What user is samba running as?
open the perms to 777 and see if you get farther.


[tstone@psyche bin]$ ls /share/pdfdrop
[tstone@psyche bin]$ ls -ld /share/pdfdrop
drwxr-xr-x    2 nobody   nobody       4096 Nov  5 09:34 /share/pdfdrop
[tstone@psyche bin]$ ls -ld /usr/local/bin/printpdf
-rwxr-xr-x    1 root     root          879 Nov  5 11:24 printpdf
[tstone@psyche bin]$



once you get that working I am betting that printpdf will puck since it
probably does not know what to do with a word document.  We did smbfax a
wil back that does a similar thing and had to set the windows printer on
the client to an apple postscript printer so that what is sent to the
samba "printer" is postscript.

Ahhh...yes, the word document. I should have known better. I fed the word doc directly to the script as a test only. You are correct, the script is not going to know diddly about the word format. However, what about when the user chooses Print... from Micros~1 Word and prints to the Pseudo Printer in question, assuming of course that the proper Postscript driver is set?


I'll try the permissions as well as send the script a plain text document.



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux