Options

PDF to TIFF

AstiniaAstinia Member Posts: 40
Hello everyone,
Could someone give me an advice how to convert pdf to tiff? free library or dll?
I've found some answers on StackOverflow, however they all about not free product and most about Ghostscript.
May be there is something else?

Thanks a lot for your time

Answers

  • Options
    vaprogvaprog Member Posts: 1,118
    There's an AGPL Version of Ghostscript.

    MuPDF might be another option. It has the very same licensing as Ghostscript. I like it's rendering result better than Ghostscipt's. It does not create tiff images, though. So it would have to be paired with an image converter like e.g. ImageMagick.
  • Options
    AstiniaAstinia Member Posts: 40
    Thanks. I had a look on ImageMagick before. Thanks one more time
  • Options
    hrishihrishi Member Posts: 21
    Hi Astinia, just wondering if you managed to covert pdf into tiff, I need to convert pdf into jpg, any ideas?
  • Options
    AstiniaAstinia Member Posts: 40
    Nope.. Nothing free..
  • Options
    ftorneroftornero Member Posts: 522
    You can use the free versión of Ghostscript and convert to jpg or tiff.

    For TIFF

    gs -q -dNOPAUSE -sDEVICE=tiff24nc $param -r200 pdfFile -c quit

    For JPG

    gs -q -dNOPAUSE -sDEVICE=jpeg $param -r200 pdfFile -c quit

    You only need to change the -sDEVICE parameter.

    qs is the name of your Ghostscript executable,in my installation is this:

    And pdfFile is the full name of your PDF.

    C:\Program Files\gs\gs9.19\bin\gswin64c.exe

    More option for TIFF files:

    tiffgray
    Produces 8-bit gray output.
    tiff12nc
    Produces 12-bit RGB output (4 bits per component).
    tiff24nc
    Produces 24-bit RGB output (8 bits per component).
    tiff48nc
    Produces 48-bit RGB output (16 bits per component).
    tiff32nc
    Produces 32-bit CMYK output (8 bits per component).
    tiff64nc
    Produces 64-bit CMYK output (16 bits per component).

    Regards.
  • Options
    ftorneroftornero Member Posts: 522
    Sorry in my last post I made some mistakes:

    $param is the parameter for the output file
    $param = -sOutputFile=outFile

    And qs is the name .................,
    Would be gs (C:\Program Files\gs\gs9.19\bin\gswin64c.exe)

    Regards.
  • Options
    AstiniaAstinia Member Posts: 40
    Thanks
  • Options
    hrishihrishi Member Posts: 21
    Yeah I have tried ghost script and manage to convert file in NAV using it, but output quality is not great.
  • Options
    ftorneroftornero Member Posts: 522
    Well, you can use the parameter -r to increase the quality.

    i.e.

    -r600

    or

    -r1200

    etc.

    Regards.
  • Options
    hrishihrishi Member Posts: 21
    it worked by changing it to -r600
  • Options
    AstiniaAstinia Member Posts: 40
    Thanks everyone!
  • Options
    sartusatosartusato Member Posts: 4
    Please, can you explain me if I have to installe the Ghostscript in the server (and not in any client) and how to pass command line to nav? thank you, silvia
Sign In or Register to comment.