mirror of
https://github.com/fox0430/nim-ghostscript
synced 2026-01-01 23:11:24 +00:00
No description
| .github/workflows | ||
| lowlevel | ||
| tests | ||
| .gitignore | ||
| ghostscript.nim | ||
| ghostscript.nimble | ||
| LICENSE | ||
| README.md | ||
nim-ghostscript
Nim bindings for Ghostscript.
Requirements
- Nim 2.0.6+
- Ghostscript
Installtion
nimble install ghostscript
Usage
import pkg/ghostscript
# Convert PDF to PNG
let gs = newGhostscript()
gs.init(@[
"-dSAFER",
"-dBATCH",
"-dNOPAUSE",
"-sDEVICE=png16m",
"-r300",
"-sOutputFile=output.png",
"input.pdf"
])
gs.close()
License
MIT
Note
This binding is licensed under MIT, but Ghostscript itself is licensed under AGPL-3.0. When using this library, your application must comply with the AGPL-3.0 terms, or you must obtain a commercial license from Artifex.