No description
Find a file
2025-12-04 02:48:54 +09:00
.github/workflows ci: Add tests workflow (#2) 2025-12-03 01:33:37 +09:00
lowlevel Add files 2025-12-03 01:02:57 +09:00
tests Add files 2025-12-03 01:02:57 +09:00
.gitignore Initial commit 2025-12-03 01:01:04 +09:00
ghostscript.nim Add files 2025-12-03 01:02:57 +09:00
ghostscript.nimble Add files 2025-12-03 01:02:57 +09:00
LICENSE Initial commit 2025-12-03 01:01:04 +09:00
README.md Update README.md (#5) 2025-12-04 02:48:54 +09:00

nim-ghostscript

Nim bindings for Ghostscript.

Requirements

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.