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

From: Timothy Stone (citylists_at_petmystone.com)
Date: 11/05/03

  • Next message: Matthew Galgoci: "Re: flashplayer plugin for mozilla shipped with RHEL WS 3.0"
    To: redhat-list@redhat.com
    Date: Wed, 05 Nov 2003 13:08:33 -0500
    
    

    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@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Matthew Galgoci: "Re: flashplayer plugin for mozilla shipped with RHEL WS 3.0"

    Relevant Pages

    • Re: converting documents to postscript
      ... >> actually there are scripts with hylafax to do that for you. ... If you send the file to the script in some format other than ... >> file to postscript. ... What I now use is an email to fax conversion program. ...
      (comp.os.linux.misc)
    • Re: Turning 3 pages of A4 into a 2-up A3 spread and 1 A4 sheet?
      ... > If in the future I get to grips with Postscript I can perhaps follow ... > Chapman's procedure and rewrite the perl script so that it adds code ... defines a version of showpage that executes postshow if ... If ODD, sets the initial paper selection to A4, and sets postshow to ...
      (comp.lang.postscript)
    • RE: Separating a word file using executable script
      ... you good in Visual Basic Tom? ... >> I have a 200 page word document that contains information on applications. ... >> I'm hoping that the script will be an executable file. ... >> in a folder along with the script and run it from the folder. ...
      (microsoft.public.word.vba.general)
    • Re: Run a Word Macro from Excel VBA
      ... If I understand your question correctly, you have composed a script with 100 ... Set FSO = CreateObject ... could easily have been run from inside a VBA routine. ... Word document, the "Scripting.FileSystemObject" might be an even ...
      (microsoft.public.excel.programming)
    • Re: altering postscript code on the fly to get pure black and white
      ... I want to convert the postscript code ... I have considered setting up the printer queue so that ... Then altering the file via some script, ... about developing printer drivers, but i know C++ and am willing to try ...
      (comp.periphs.printers)