How can I inject a dynamically generated image (barcode, as it happens) into a PDF document (I'm in rails if that matters)?
问题 I'm aware of pdf-stamper, but I'm trying to avoid switching everything to jruby right now. I just need to "stamp" an image that I generate within the rails app (a PDF417 barcode) into a form field in the PDF document (there's an FDF; it's a document template kinda thing). I'm filling out the text-based fields by just shelling out to pdftk, so if there's a way to do it using pdftk, I'd be fine with that, but I've looked high and low for one without any luck. 回答1: How about using a barcode font