DataMatrix barcode generator/reader

Hello,

I have an existing legacy app written in .NET that will be rewritten
with Rails. One of the key components of the App is to generate and
read datamatrix barcodes from a PDF. I've looked online and message
posts but haven't see anything worthwhile for reading / generting
datamatrix barcodes. Any recommendations for this?

Todd