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
0
Answers
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.
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.
$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.
i.e.
-r600
or
-r1200
etc.
Regards.