Printing Postscript in Perl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arthur

    Printing Postscript in Perl

    Hi Everyone,

    I'm having a real hard time with this. Maybe some smarter people can
    assist.

    I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
    able to print Postscript, bold, underline, different fonts, etc from
    within a Perl script.

    I have absolutely no idea where to start or what to do. My
    /etc/printcap file looks pretty shallow:

    HPLJ4|HP Laserjet 4:rm=nitelife:r p=HPLJ4:

    I set my printer up using the DrakConf program. I can print, but just
    not any formatted text or anything.

    I see so much information around, that I'm lost as to which really
    applies to me situation.

    Any help would be appreciated.

    Thanks,

    Arthur
  • Jürgen Exner

    #2
    Re: Printing Postscript in Perl

    Arthur wrote:[color=blue]
    > I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
    > able to print Postscript, bold, underline, different fonts, etc from
    > within a Perl script.[/color]

    How do you print a regular Postscript file today, i.e. without using a Perl
    script?
    Then just mimic that code in your Perl script and you are all set.

    jue


    Comment

    • Roel van der Steen

      #3
      Re: Printing Postscript in Perl

      In article <8b622eae.04030 61908.7ccb283a@ posting.google. com>, Arthur wrote:[color=blue]
      > I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
      > able to print Postscript, bold, underline, different fonts, etc from
      > within a Perl script.[/color]
      Go to CPAN en look for PostScript:: modules:
      PostScript::Bas icTypesetter or Postscript::Sim ple
      may do what you want.

      Then spool your results to a RAW queue.

      Cheers, Roel van der Steen

      Comment

      • Arthur

        #4
        Re: Printing Postscript in Perl

        I do not print anything really from my Linux box today. It is
        something I want to start doing......so, printing from MS Word is not
        going to help me print Postscript and fonts and such from Perl......

        Arthur


        "Jürgen Exner" <jurgenex@hotma il.com> wrote in message news:<Cyw2c.686 50$6K.38171@nwr ddc02.gnilink.n et>...[color=blue]
        > Arthur wrote:[color=green]
        > > I'm running Mandrake 9.2. I have a Laserjet 4M Plus. I want to be
        > > able to print Postscript, bold, underline, different fonts, etc from
        > > within a Perl script.[/color]
        >
        > How do you print a regular Postscript file today, i.e. without using a Perl
        > script?
        > Then just mimic that code in your Perl script and you are all set.
        >
        > jue[/color]

        Comment

        • Jürgen Exner

          #5
          Re: Printing Postscript in Perl

          [Please do not top-post, trying to repair]
          [Please do not blindly fullquote but trim to a reasonable context]
          Arthur wrote:[color=blue]
          > "Jürgen Exner" <jurgenex@hotma il.com> wrote in message
          > news:<Cyw2c.686 50$6K.38171@nwr ddc02.gnilink.n et>...[color=green]
          >> Arthur wrote:[color=darkred]
          >>> [...] I want to be
          >>> able to print Postscript, bold, underline, different fonts, etc from
          >>> within a Perl script.[/color]
          >>
          >> How do you print a regular Postscript file today, i.e. without using
          >> a Perl script?
          >> Then just mimic that code in your Perl script and you are all set.[/color][/color]
          [color=blue]
          > I do not print anything really from my Linux box today. It is
          > something I want to start doing......[/color]

          Well, then I suggest you get that one up and running first. If you have
          neither a Postscript-capable printer nor a software rendering engine, then
          Perl isn't going to help you printing Postscript at all.
          Once you know how to print PostScript files on your computer, then we can
          probably tell you how to loop in Perl.
          [color=blue]
          > so, printing from MS Word is not
          > going to help me print Postscript and fonts and such from Perl......[/color]

          Where did I mention or suggest MS Word?

          jue


          Comment

          Working...