Skip to content

v0.5.0

Choose a tag to compare

@RikoAppDev RikoAppDev released this 23 Jun 02:52
· 5 commits to main since this release

Universal vector image import — SVG + Android VectorDrawable → native PDF vector paths.

New DSL: vector(bytes, width, height, fit) (auto-detects SVG vs VectorDrawable).

  • Full SVG/VD path grammar (M L H V C S Q T A Z, abs+rel); quadratics & elliptical arcs → cubic beziers
  • Basic shapes (rect/circle/ellipse/line/polyline/polygon), <group>/transform, inherited paint
  • nonzero & even-odd fill, stroke, per-element opacity; currentColor + full CSS named-color set
  • Colors: #AARRGGBB (VectorDrawable) and #RRGGBB[AA]/rgb()/named (SVG)
  • Emitted as a reusable Form XObject (a logo repeated in a header costs one object)
  • Pure-Kotlin, dependency-free (no XML library); deterministic output
  • Hardened against malformed input (no parser hangs); verified via PDFBox rasterization

Deferred: gradients, patterns, , clipPath, filters, CSS classes.