Java – PDF417 image generation API recommendation
•
Java
In Grails application, I need to generate PDF417 image and send it by email Who can recommend me a (hopefully free) Grails plug-in or Java library?
Solution
Barcode4j plug-in( http://grails.org/plugin/barcode4j )Use barcode4j, which supports PDF417, etc
This is an example controller operation that will generate an image and present it to the browser:
import org.krysalis.barcode4j.impl.pdf417.PDF417Bean class TestController { def index = { def generator = new PDF417Bean() generator.height = 10 def barcodeValue = "12345" renderBarcodePng(generator,barcodeValue) } }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码