Registry / serialization / prawn-svg

prawn-svg

JSON →
library0.40.2rbrubygemsunverified

Renders SVG graphics directly into PDF documents using the Prawn library, preserving vector quality.

gem install prawn-svg
INSTALL
IMPORT
SIG · PRAWN-SVG
P
prawn-svg
serializationrubyv0.40.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Prawn::SVG
require 'prawn-svg'

Embed an SVG string into a PDF document.

require 'prawn-svg' Prawn::Document.generate('output.pdf') do svg '<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="40" fill="red"/></svg>', at: [0, 0] end
Debug
Known issues
gotchaComplex SVG features (e.g., animations, external fonts) may not render correctly.
fix
Simplify SVG or test rendering before production use.
affects: < 1.0
Upgrade
Version history
0.40.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Resources
prawn-svg — gem install prawn-svg · libregistry