<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing a PDF Document in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009815#M751173</link>
    <description>Tony,&lt;BR /&gt;&lt;BR /&gt;Many thanks for the idea of using Ghostscript. After some playing with the settings I've managed to get a correct sized printout from the command line using the command&lt;BR /&gt;&lt;BR /&gt;gs -sDEVICE=pswrite -sPAPERSIZE=a4 -sOutputFile=%pipe%"lp -dprinter" -q -dNOPAUSE -dBATCH ducument.pdf.&lt;BR /&gt;&lt;BR /&gt;As document.pdf is 2 pages I found I had to use the -dNOPAUSE option. The only thing I have found is that I get a message saying:&lt;BR /&gt;&lt;BR /&gt;GNU Ghostscript 8.55: **** Could not open the file lp -dprinter . &lt;BR /&gt;but I still get the output sent to the correct printer.</description>
    <pubDate>Mon, 04 Jun 2007 04:41:36 GMT</pubDate>
    <dc:creator>John Waller</dc:creator>
    <dc:date>2007-06-04T04:41:36Z</dc:date>
    <item>
      <title>Printing a PDF Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009811#M751169</link>
      <description>I'm looking for a way to use acroread to print pdf documents to a printer from the command line or via a script. I've been looking at the following thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1090377" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1090377&lt;/A&gt;&lt;BR /&gt;which talks about using xinit but it doesn't explain how direct output to the printer, or give details about the options used within the wrapper.&lt;BR /&gt;I can print the pdf by using the command cat tmp.pdf | acroread -toPostScript -shrink -size a4 | lp -dprinter but this doesn't appear to shrink the document to fit onto the page. Any help anybody can give would be welcomed.</description>
      <pubDate>Wed, 30 May 2007 08:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009811#M751169</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2007-05-30T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a PDF Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009812#M751170</link>
      <description>Hi John,&lt;BR /&gt;  Piping the output to 'lp' should be sending it to the printer (as in that thread you quoted).  Assuming that's a postscript printer, it should then print.&lt;BR /&gt;&lt;BR /&gt;What are you actually getting printed?&lt;BR /&gt;&lt;BR /&gt;I don't have documentation; is the order of arguments significant?  If so, does 'acroread -toPostScript  -size a4 -shrink' work better?&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Wed, 30 May 2007 11:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009812#M751170</guid>
      <dc:creator>Andrew Merritt_2</dc:creator>
      <dc:date>2007-05-30T11:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a PDF Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009813#M751171</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;I do get printed output but it is doesn't reduce to fit onto the page correctly.&lt;BR /&gt;&lt;BR /&gt;One other point I forgot to mention is that I need to set the DISPLAY to a valid xterminal and cannot use the Xvfb as described in the previous thread. Ideally I don't want to do this as the site where I want to implement this printing facility currently don't have any X terminals</description>
      <pubDate>Thu, 31 May 2007 01:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009813#M751171</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2007-05-31T01:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a PDF Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009814#M751172</link>
      <description>We use Ghostscript to print PDF files created on Windows workstations dropped on a SAMBA mount to our HP-UX systems. When we originally set this up, the X libraries were needed, but you didn't need to be running X (init 3 was fine). Since then, I think they've changed that requirement. &lt;BR /&gt;&lt;BR /&gt;I'm not sure if this is what you need, but it sounded relevant. We specify several orientation, sizing, and page specifications on the command line, which is formatted from a custom application.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ghostscript.com/awki/Ghostscript" target="_blank"&gt;http://www.ghostscript.com/awki/Ghostscript&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Jun 2007 16:09:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009814#M751172</guid>
      <dc:creator>Tony Berry</dc:creator>
      <dc:date>2007-06-01T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Printing a PDF Document</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009815#M751173</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;Many thanks for the idea of using Ghostscript. After some playing with the settings I've managed to get a correct sized printout from the command line using the command&lt;BR /&gt;&lt;BR /&gt;gs -sDEVICE=pswrite -sPAPERSIZE=a4 -sOutputFile=%pipe%"lp -dprinter" -q -dNOPAUSE -dBATCH ducument.pdf.&lt;BR /&gt;&lt;BR /&gt;As document.pdf is 2 pages I found I had to use the -dNOPAUSE option. The only thing I have found is that I get a message saying:&lt;BR /&gt;&lt;BR /&gt;GNU Ghostscript 8.55: **** Could not open the file lp -dprinter . &lt;BR /&gt;but I still get the output sent to the correct printer.</description>
      <pubDate>Mon, 04 Jun 2007 04:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printing-a-pdf-document/m-p/4009815#M751173</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2007-06-04T04:41:36Z</dc:date>
    </item>
  </channel>
</rss>

