Dymo Render

Render a PDF from the DYMO Label software's XML .label format. This is the same format used by their JavaScript SDK and by their desktop apps.

Here is a sample label in XML along with its rendered PDF output.

Installation

gem "dymo_render"

Usage

xml_content = File.read("sample.label")
pdf = DymoRender.new(xml: xml_content).render
File.write("out.pdf", pdf)

Features

  • Text, custom fonts and custom font directories
  • Barcodes
    • QR codes
    • Code 128 Auto, A, B, C

License

This project uses the BSD 2-clause simplified license from the dymo-printer-agent project.

Thanks

This project uses code extracted from Tim Morgan's dymo-printer-agent.