podofo

Nim bindings for PoDoFo library

Pure Nim score 15/100 · tests present · no docs generated

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 podofo
choosenim install podofo
git clone https://github.com/fox0430/nim-podofo

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
podofo - - - - - - -

Dependencies

Package Version Optional
nim >= 2.0.6 No

Source

Repository https://github.com/fox0430/nim-podofo
Homepage https://github.com/fox0430/nim-podofo
Registry Source nimble_official

README

nim-podofo

Nim bindings for PoDoFo library.

Requirements

Installtion

nimble install podofo

Usage

import pkg/podofo

# Create a new document
let doc = newPdfDocument()

# Create an A4 page
let page = doc.createPage(PdfPageSize.A4)

# Get a standard font
let font = doc.helvetica()

# Draw on the page
page.draw:
  painter.setFont(font, 12)
  painter.setFillColor(black())
  painter.drawText("Hello, World!", 100, 700)

# Save the document
doc.save("output.pdf")

Build

podofo requires C++ compilation. Use nim cpp.

nim cpp yourfile.nim

[!NOTE] Add the following lines to your .nimble

backend = "cpp"

License

MIT