Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 20th, 2012  |  syntax: None  |  size: 0.59 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. python-django Ghostscript apache problem
  2. args = [
  3. "-dSAFER",
  4. "-dBATCH", "-dNOPAUSE", "-sDEVICE=png16m",
  5. "-r300",
  6. "-sOutputFile=" + os.path.join(output,input.file_name_without_extension)+"_%d.png",
  7. input
  8. ]
  9. ghostscript.Ghostscript(*args)
  10.        
  11. ------------------------------------------------------------------------
  12. % Interpreter library version number
  13. % NOTE: the interpreter code requires that the first non-comment token
  14. % in this file be an integer, and that it match the compiled-in version!
  15. 902
  16. ------------------------------------------------------------------------
  17.        
  18. -I/usr/src/gs/Resource