Announcement

Collapse
No announcement yet.

Ghostscript error [Solved]

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

    Ghostscript error [Solved]

    Hi All,

    I have encountered the following error message, When I try to make a pdf of a manual page:

    srikrishnan@srihari:~$ man ls | ps2pdf -> /home/srikrishnan/ls.pdf
    GPL Ghostscript 8.61: Unrecoverable error, exit code 1

    Can anybody help me to solve this?

    Regards,
    Srikrishnan

    #2
    Re: Ghostscript error

    The program p2spdf converts a ghostscript file (.eps or .ps) to a .pdf file. What you are attempting can't work. I'm searching for a command line solution, but have not yet discovered one.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Ghostscript error

      This seems to work:
      Code:
      :~$ man ls | e2ps > ls.ps && ps2pdf ls.ps
      e2ps - converts plain text into PostScript
      and
      ps2pdf - Convert PostScript to PDF using ghostscript

      There are text2pdf but i can't find it from the repositories:

      text2pdf version 1.1
      http://www.eprg.org/pdfcorner/text2pdf/
      This is the latest version of text2pdf, and offers a number of improvements over version 1.0. As you might be able to guess from the name, text2pdf converts text files to PDF.


      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Ghostscript error

        Beat me to the punch Rog! I also came across this solution:
        Code:
        man ls | enscript -o ls.ps | ps2pdf ls.ps ls.pdf
        which also works perfectly. Again, more than one solution to a problem using Linux!

        Enscript converts text files to PostScript or to other output languages.
        Added: The beauty of my solution is that enscript is available by default, while e2ps is a package that needs to be installed.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Ghostscript error

          Again, more than one solution to a problem using Linux!



          Printing a Man Page
          http://www.ece.northwestern.edu/CSEL..._man_page.html
          You can create a copy of an on-line manual page in PostScript or ASCII format using the groff command. You can then print this file on a PostScript printer.
          Before you edit, BACKUP !

          Why there are dead links ?
          1. Thread: Please explain how to access old kubuntu forum posts
          2. Thread: Lost Information

          Comment


            #6
            Re: Ghostscript error

            Hi snowhug/Rog131,

            Again Thanks for you both. Now those works well

            Regards,
            Srikrishnan

            Comment


              #7
              Re: Ghostscript error [Solved]

              Now when was the last time Windoze gave this kind of support to a user, and without a fee? That's one of the great joys I have being a member of this Forum, and from using Linux. It's simply exhilarating!
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment

              Working...
              X