ghostscript
Nim bindings for Ghostscript
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:27 |
Tags
Authors
- fox0430
Installation
nimble install ghostscript
choosenim install ghostscript
git clone https://github.com/fox0430/nim-ghostscript
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| ghostscript | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.0.6 | No |
Source
| Repository | https://github.com/fox0430/nim-ghostscript |
|---|---|
| Homepage | https://github.com/fox0430/nim-ghostscript |
| Registry Source | nimble_official |
README
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.