Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

bgentry/dymo_render

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.