code_junkie

Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen

Nov 11th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit
  2.  
  3. convert -define quantum:polarity=min-is-white
  4. -endian MSB
  5. -units PixelsPerInch
  6. -density 204x196
  7. -monochrome
  8. -compress Fax
  9. -sample 1728
  10. "input.pdf" "output.tif"
  11.  
  12. nconvert -page 1 -out tiff -dpi 200 -c 2 -o c.tif FMD.pdf
  13.  
  14. os.popen(' '.join([
  15. self._ghostscriptPath + 'gswin32c.exe',
  16. '-q',
  17. '-dNOPAUSE',
  18. '-dBATCH',
  19. '-r800',
  20. '-sDEVICE=tiffg4',
  21. '-sPAPERSIZE=a4',
  22. '-sOutputFile=%s %s' % (tifDest, pdfSource),
  23. ]))
  24.  
  25. gswin32c.exe -q -dNOPAUSE -r600 -sDEVICE=tiff24nc -sOutputFile=a.tif a.pdf -c quit
Add Comment
Please, Sign In to add comment