<?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: print pdf using ghostscript. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376302#M664495</link>
    <description>Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I have tried all the options you mentioned.&lt;BR /&gt;&lt;BR /&gt;gs -q -dNOPAUSE -dSAFER -sDEVICE=ibmpro -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;Out2.prn:&lt;BR /&gt;^Q^[30^L&lt;BR /&gt;&lt;BR /&gt;ii)gs -q -dNOPAUSE -dSAFER -sDEVICE=escp -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;out:&lt;BR /&gt;^[*rbC^[*t240R^L^[@&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;iii)gs -q -dNOPAUSE -dSAFER -sDEVICE=epson -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;OUt:&lt;BR /&gt;^[@^[P^[l^[QW^L^[@&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly help me.&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Mar 2009 08:05:45 GMT</pubDate>
    <dc:creator>Barakati</dc:creator>
    <dc:date>2009-03-11T08:05:45Z</dc:date>
    <item>
      <title>print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376300#M664493</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I want to print pdf on epson dot matrix printer. This printer uses "escp" language.&lt;BR /&gt;I tried ghostscript 8.62 on HP_UX itanium&lt;BR /&gt;&lt;BR /&gt;i used like following.&lt;BR /&gt;gs -q -dNOPAUSE -dSAFER -sOutputFile=/tmp/out.prn @stcany.upp alphabet.pdf quit.ps &lt;BR /&gt;&lt;BR /&gt;/tmp/out.prn: &lt;BR /&gt;&lt;BR /&gt;^[^A@EJL 1284.4 &lt;BR /&gt;@EJL &lt;BR /&gt;^[@^[@^[(G^A^A^[(i^A^A^[(U^A &lt;BR /&gt;^[U^[(C^Bx^O^[(c^D-M-0^N^[@^L &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;alphabet.pdf: &lt;BR /&gt;&lt;BR /&gt;It is very long file with complete alphabet(capital and small) and numbers. &lt;BR /&gt;I mean for this file the out.prn must be quite lenghty. &lt;BR /&gt;&lt;BR /&gt;Could any body kindly help me to get the output in escp format which is a language for EPSON DFX 9000 printer. &lt;BR /&gt;&lt;BR /&gt;Thanks and appreciating your kind help.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 04:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376300#M664493</guid>
      <dc:creator>Barakati</dc:creator>
      <dc:date>2009-03-11T04:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376301#M664494</link>
      <description>The stcany.upp file included in the ghostscript distribution contains definitions for Epson Stylus Color series printers. For a black-and-white printer like DFX 9000 they might be incorrect. At best, these settings would include extra complexity, which is best avoided in the current situation. &lt;BR /&gt;&lt;BR /&gt;Ghostscript 8.62 lists its available output formats with "gs -h". At least on my Debian workstation, "escp" is included in the list.&lt;BR /&gt;&lt;BR /&gt;Also omit the "quit.ps" from your command line, use -dBATCH instead. (quit.ps is deprecated: -dBATCH is the current way to achieve the same thing)&lt;BR /&gt;&lt;BR /&gt;I would start with a command line like this:&lt;BR /&gt;&lt;BR /&gt;gs -q -dNOPAUSE -dSAFER -dBATCH -sDEVICE=escp -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;&lt;BR /&gt;You will probably have to add the option "-rXRESxYRES", where XRES and YRES should be the printer resolution in horizontal and vertical directions, in number of dots per inch. For your printer, try "-r240x72".&lt;BR /&gt;&lt;BR /&gt;The printer database of openprinting.org mainly talks about printing on Linux (and other open-source systems), but it's a nice place to find basic information on many printers:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.openprinting.org/show_printer.cgi?recnum=Epson-DFX-9000" target="_blank"&gt;http://www.openprinting.org/show_printer.cgi?recnum=Epson-DFX-9000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As it suggests, you might also try configuring the printer for IBM Proprinter emulation and then use the "-sDEVICE=ibmpro" option instead of "-sDEVICE=escp".&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 11 Mar 2009 07:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376301#M664494</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-03-11T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376302#M664495</link>
      <description>Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I have tried all the options you mentioned.&lt;BR /&gt;&lt;BR /&gt;gs -q -dNOPAUSE -dSAFER -sDEVICE=ibmpro -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;Out2.prn:&lt;BR /&gt;^Q^[30^L&lt;BR /&gt;&lt;BR /&gt;ii)gs -q -dNOPAUSE -dSAFER -sDEVICE=escp -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;out:&lt;BR /&gt;^[*rbC^[*t240R^L^[@&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;iii)gs -q -dNOPAUSE -dSAFER -sDEVICE=epson -r240x72 -sOutputFile=/tmp/out2.prn alphabet.pdf&lt;BR /&gt;OUt:&lt;BR /&gt;^[@^[P^[l^[QW^L^[@&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly help me.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2009 08:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376302#M664495</guid>
      <dc:creator>Barakati</dc:creator>
      <dc:date>2009-03-11T08:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376303#M664496</link>
      <description>The .prn files will definitely contain control codes that are likely to mess up the display output if you use something like "cat" or "more". If the files contain a Control-D character, some tools will interpret it as "end-of-file" and may stop the output prematurely.&lt;BR /&gt;&lt;BR /&gt;What are the file lengths, as reported by the "ll" directory listing? If the files are longer than the displayed data, you are definitely not seeing the whole truth with the tool you've been using to view the files.&lt;BR /&gt;&lt;BR /&gt;For a better view of the .prn file contents, you could use a command like "od -t x1c out2.prn" or "od -t x1a out2.prn". These commands will display a hexadecimal representation of each character and will replace the control characters with printable character names. The od command will also assume that the input is some unknown binary data and will not assume Ctrl-D means end-of-file.&lt;BR /&gt;&lt;BR /&gt;What happens if you try to send the out2.prn file to the printer?&lt;BR /&gt;&lt;BR /&gt;Where did you get your Ghostscript version from? Is it compiled with support for PDF format input? (What is the output of "gs -h" command?)&lt;BR /&gt;&lt;BR /&gt;Could you attach a copy of the alphabet.pdf file to this thread? I could then try to reproduce your output.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 11 Mar 2009 10:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376303#M664496</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-03-11T10:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376304#M664497</link>
      <description>Thanks and i appreciate your continuous support.&lt;BR /&gt;&lt;BR /&gt;The sizes for the files with different options i have used are&lt;BR /&gt;&lt;BR /&gt;-rw-rw-rw- 1 root sys 5 Mar 11 14:42 /tmp/out2.prn&lt;BR /&gt;-rw-rw-rw- 1 root sys 15 Mar 11 14:42 /tmp/out2.prn&lt;BR /&gt;-rw-rw-rw- 1 root sys 14 Mar 11 14:42 /tmp/out2.prn&lt;BR /&gt;&lt;BR /&gt;that is 5, 15, 14 bytes respectively.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The outpud using od:&lt;BR /&gt;&lt;BR /&gt;# od -tx1c /tmp/out2.prn&lt;BR /&gt;0000000   11  1b  33  30   c&lt;BR /&gt;         021 033   3   0  \f&lt;BR /&gt;0000005&lt;BR /&gt;&lt;BR /&gt;I just installed followed the following weblink to install ghostscript i do not know whether i added pdf support or not.&lt;BR /&gt;&lt;BR /&gt;Home URL: &lt;A href="ftp://ftp.mirrorservice.org/pub/gnu/ghostscript/" target="_blank"&gt;ftp://ftp.mirrorservice.org/pub/gnu/ghostscript/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have attached the alphabet.pdf.&lt;BR /&gt;But it is just a sample pdf file to test. I want to produce such format for any pdf file.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Wed, 11 Mar 2009 10:51:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376304#M664497</guid>
      <dc:creator>Barakati</dc:creator>
      <dc:date>2009-03-11T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376305#M664498</link>
      <description>#gs -h&lt;BR /&gt;GPL Ghostscript 8.62 (2008-02-29)&lt;BR /&gt;Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.&lt;BR /&gt;Usage: gs [switches] [file1.ps file2.ps ...]&lt;BR /&gt;Most frequently used switches: (you can use # in place of =)&lt;BR /&gt; -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages&lt;BR /&gt; -g&lt;WIDTH&gt;x&lt;HEIGHT&gt;  page size in pixels   | -r&lt;RES&gt;  pixels/inch resolution&lt;BR /&gt; -sDEVICE=&lt;DEVNAME&gt;  select device         | -dBATCH  exit after last file&lt;BR /&gt; -sOutputFile=&lt;FILE&gt; select output file: - for stdout, |command for pipe,&lt;BR /&gt;                                         embed %d or %ld for page #&lt;BR /&gt;Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF&lt;BR /&gt;Default output device: bbox&lt;BR /&gt;Available devices:&lt;BR /&gt;   alc1900 alc2000 alc4000 alc4100 alc8500 alc8600 alc9100 ap3250 appledmp&lt;BR /&gt;   atx23 atx24 atx38 bbox bit bitcmyk bitrgb bitrgbtags bj10e bj10v bj10vh&lt;BR /&gt;   bj200 bjc600 bjc800 bjc880j bjccmyk bjccolor bjcgray bjcmono bmp16 bmp16m&lt;BR /&gt;   bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 ccr cdeskjet cdj1600 cdj500&lt;BR /&gt;   cdj550 cdj670 cdj850 cdj880 cdj890 cdj970 cdjcolor cdjmono cfax cgm24&lt;BR /&gt;   cgm8 cgmmono chp2200 cif cljet5 cljet5c cljet5pr coslw2p coslwxl cp50&lt;BR /&gt;   declj250 deskjet devicen dfaxhigh dfaxlow dj505j djet500 djet500c dl2100&lt;BR /&gt;   dnj650c epl2050 epl2050p epl2120 epl2500 epl2750 epl5800 epl5900 epl6100&lt;BR /&gt;   epl6200 eps9high eps9mid epson epsonc epswrite escp escpage faxg3 faxg32d&lt;BR /&gt;   faxg4 fmlbp fmpr fs600 gdi hl1240 hl1250 hl7x0 hpdj1120c hpdj310 hpdj320&lt;BR /&gt;   hpdj340 hpdj400 hpdj500 hpdj500c hpdj510 hpdj520 hpdj540 hpdj550c&lt;BR /&gt;   hpdj560c hpdj600 hpdj660c hpdj670c hpdj680c hpdj690c hpdj850c hpdj855c&lt;BR /&gt;   hpdj870c hpdj890c hpdjplus hpdjportable ibmpro ijs imagen imdi inferno&lt;BR /&gt;   iwhi iwlo iwlq jetp3852 jj100 jpeg jpegcmyk jpeggray la50 la70 la75&lt;BR /&gt;   la75plus laserjet lbp310 lbp320 lbp8 lex2050 lex3200 lex5700 lex7000&lt;BR /&gt;   lips2p lips3 lips4 lips4v lj250 lj3100sw lj4dith lj4dithp lj5gray lj5mono&lt;BR /&gt;   ljet2p ljet3 ljet3d ljet4 ljet4d ljet4pjl ljetplus ln03 lp1800 lp1900&lt;BR /&gt;   lp2000 lp2200 lp2400 lp2500 lp2563 lp3000c lp7500 lp7700 lp7900 lp8000&lt;BR /&gt;   lp8000c lp8100 lp8200c lp8300c lp8300f lp8400f lp8500c lp8600 lp8600f&lt;BR /&gt;   lp8700 lp8800c lp8900 lp9000b lp9000c lp9100 lp9200b lp9200c lp9300&lt;BR /&gt;   lp9400 lp9500c lp9600 lp9600s lp9800c lps4500 lps6500 lq850 lx5000&lt;BR /&gt;   lxm3200 lxm5700m m8510 mag16 mag256 md1xMono md2k md50Eco md50Mono md5k&lt;BR /&gt;   mgr4 mgr8 mgrgray2 mgrgray4 mgrgray8 mgrmono miff24 mj500c mj6000c&lt;BR /&gt;   mj700v2c mj8000c ml600 necp6 npdl nullpage oce9050 oki182 oki4w okiibm&lt;BR /&gt;   omni oprp opvp paintjet pam pbm pbmraw pcl3 pcx16 pcx24b pcx256 pcx2up&lt;BR /&gt;   pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw photoex picty180&lt;BR /&gt;   pj pjetxl pjxl pjxl300 pkm pkmraw pksm pksmraw plan9bm png16 png16m&lt;BR /&gt;   png256 png48 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw pr1000&lt;BR /&gt;   pr1000_4 pr150 pr201 ps2write psdcmyk psdrgb psgray psmono psrgb pswrite&lt;BR /&gt;   pxlcolor pxlmono r4081 rpdl samsunggdi sgirgb sj48 spotcmyk st800 stcolor&lt;BR /&gt;   sunhmono t4693d2 t4693d4 t4693d8 tek4696 tiff12nc tiff24nc tiff32nc&lt;BR /&gt;   tiffcrle tiffg3 tiffg32d tiffg4 tiffgray tifflzw tiffpack tiffsep&lt;BR /&gt;   uniprint wtscmyk wtsimdi xcf xes&lt;BR /&gt;Search path:&lt;BR /&gt;   . : %rom%lib/ : /usr/local/share/ghostscript/8.62/lib :&lt;BR /&gt;   /usr/local/share/ghostscript/8.62/Resource :&lt;BR /&gt;   /usr/local/share/ghostscript/fonts :&lt;BR /&gt;   /usr/local/share/fonts/default/ghostscript :&lt;BR /&gt;   /usr/local/share/fonts/default/Type1 :&lt;BR /&gt;   /usr/local/share/fonts/default/TrueType : /usr/lib/DPS/outline/base :&lt;BR /&gt;   /usr/openwin/lib/X11/fonts/Type1 : /usr/openwin/lib/X11/fonts/TrueType&lt;BR /&gt;Initialization files are compiled into the executable.&lt;BR /&gt;For more information, see /usr/local/share/ghostscript/8.62/doc/Use.htm.&lt;BR /&gt;Please report bugs to bugs.ghostscript.com.&lt;BR /&gt;#&lt;BR /&gt;&lt;/FILE&gt;&lt;/DEVNAME&gt;&lt;/RES&gt;&lt;/HEIGHT&gt;&lt;/WIDTH&gt;</description>
      <pubDate>Wed, 11 Mar 2009 10:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376305#M664498</guid>
      <dc:creator>Barakati</dc:creator>
      <dc:date>2009-03-11T10:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376306#M664499</link>
      <description>The PDF file you attached seems very short: just 1993 bytes.&lt;BR /&gt;&lt;BR /&gt;When viewing your .pdf using xpdf on my Linux workstation, I don't see an alphabet: I see just a blank page. &lt;BR /&gt;&lt;BR /&gt;If I use the latest official Adobe Reader for Linux, the result is the same.&lt;BR /&gt;&lt;BR /&gt;In Adobe Reader, the File -&amp;gt; Properties dialog indicates the .pdf is produced by "GPL Ghostscript 8.62"??? &lt;BR /&gt;&lt;BR /&gt;Please re-check your alphabet.pdf or use another pdf document for ghostscript testing.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 11 Mar 2009 14:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376306#M664499</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-03-11T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: print pdf using ghostscript.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376307#M664500</link>
      <description>I have never had good luck with ghostscript on hpux. In the past I have setup a linux server and created a pdf printer. Then shared it out and had the hpux server print to it for pdf files. Another option may be to install acrobat reader and use the switched to output to a ps file.</description>
      <pubDate>Wed, 11 Mar 2009 16:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-pdf-using-ghostscript/m-p/4376307#M664500</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2009-03-11T16:46:48Z</dc:date>
    </item>
  </channel>
</rss>

