Results 1 to 2 of 2

Thread: Ghostscript problem:**** Unable to open the initial device, quitting

  1. #1
    Join Date
    May 2013
    Beans
    14

    Ghostscript problem:**** Unable to open the initial device, quitting

    Hallo everyone,

    I have a little problem with the Device of Ghostscript; I want to modify the dimension of a file and I tried to use gs:

    Code:
    gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputfile=output.pdf input.pdf
    but I get the following error:

    Code:
    **** Unable to open the initial device, quitting.
    If I don't specify -sDEVICE, it seems to work (I see in a temporary display processing the file), but it doesn't create any file.pdf.

    I tried also to set my default device in this way:

    Code:
    gs -sDEVICE=X11alpha -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputfile=prova.pdf tesino.pdf
    but I get still an error like this:

    Code:
    Unknown device: X11alpha
    Unrecoverable error: undefined in .uninstallpagedevice
    Operand stack:
        defaultdevice
    Could anyone help me please?

  2. #2
    Join Date
    May 2013
    Beans
    14

    Re: Ghostscript problem:**** Unable to open the initial device, quitting

    Sorry, I am stupid

    I wrote:

    -sOutputfile=prova.pdf

    instead of

    -sOutputFile=prova.pdf

    I am very sorry!!
    Now it works!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •