Through some trial and error and clues left hanging in the interwebs, I only got it to work as follows by using to_png... ``` barcode = PDF417.new("my data to encode") data = StringIO.new(barcode.to_png) pdf.image(data) ```