Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆带有条形码的 PDF 表单,这些表单是根据用户填写的内容生成的。 我希望能够更改条形码行为并遇到 iText。但是条形码的示例似乎构建了静态条形码(如图像)。 iText 是否也有交互式 PDF 条形码?还是其他任何库?
是的,itext 7 确实有可以处理条形码和二维码的库。
public void processEnd(IElementNode element, ProcessorContext context) { //Transform barcode into image qrCodeAsImage = new Image(qrCode.createFormXObject(context.getPdfDocument())); }
您可以根据需要实现自定义 TagWorker 类。