使用 .NET 的二维条形码创建 pdf 文档

发布于 2024-08-26 06:30:07 字数 217 浏览 6 评论 0原文

如何创建带有二维条形码的 pdf 文档(例如 QR 码 http://en.wikipedia.org/ wiki/QR_Code) 来自 .NET 应用程序?

我(可能)将使用 iTextSharp 来创建文档。我应该使用哪个组件来绘制二维条形码?

How can I create pdf documents with 2D barcodes (for example QR code http://en.wikipedia.org/wiki/QR_Code) from .NET application?

I will (probably) use iTextSharp for creating the documents. Which component should I use for drawing 2D barcodes?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

热血少△年 2024-09-02 06:30:07

您不能创建带有条形码的图像并将其嵌入到 PDF 中吗?

Could you not create an Image with the bar code and embed it into the PDF?

就此别过 2024-09-02 06:30:07

iTextSharp 支持多种条形码标准(根据 http://itextsharp.sourceforge.net/tutorial 中的教程/ch09.html)

* Barcode39:  code 39 and code 39 extended
* Barcode128: code 128 and the special encoding UCC/EAN-128
* BarcodeEAN: EAN13, EAN8, UPCA, UPCE, and EAN with supplemental 5, EAN with supplemental 5, EAN with supplemental 2
* BarcodeInter25: interleaved 2 of 5
* BarcodePostnet: postnet and planet

iTextSharp supports several barcode standards (as per the tutorial at http://itextsharp.sourceforge.net/tutorial/ch09.html)

* Barcode39:  code 39 and code 39 extended
* Barcode128: code 128 and the special encoding UCC/EAN-128
* BarcodeEAN: EAN13, EAN8, UPCA, UPCE, and EAN with supplemental 5, EAN with supplemental 5, EAN with supplemental 2
* BarcodeInter25: interleaved 2 of 5
* BarcodePostnet: postnet and planet
活雷疯 2024-09-02 06:30:07

您可以使用 Aspose 条形码 和 Aspose pdf 轻松创建一系列带有条形码的文档的组件。

论坛中有很多示例 演示如何执行此操作的示例。此外,如果将来有需要,您还可以使用这些组件从原始 PDF 中提取条形码值。

You can use the Aspose barcode and Aspose pdf components to create a series of documents with barcodes easily.

There's plenty of examples in the forum demonstrating examples of how to do this. In addition, you will also be able to extract the barcode values from the original PDF using these components if that becomes a future requirement.

送舟行 2024-09-02 06:30:07

您可以使用 DevExpress Reports 来完成此操作,他们在报告中支持 2D 条形码,他们还支持将报告导出为多种格式,例如 PDF。

You can do it by using DevExpress Reports, they are supporting 2D Barcode in there reports, also they are supporting exporting the reports to a lot of formats like PDF.

梦罢 2024-09-02 06:30:07

Google 表示 http://sourceforge.net/projects/pdf417lib/ 虽然尚未更新自 2005 年以来,目前处于测试阶段。如果您使用此功能,请务必报告。

(感觉二维条形码很不寻常,可能是因为通常只要有一个 ID 就足够了,而且一维扫描仪更便宜。)

Google says http://sourceforge.net/projects/pdf417lib/ though it hasn't been updated since 2005 and is in beta. Please do report back if you use this.

(Feels like 2D barcodes is quite unusual, probably because just having a ID is often sufficient and 1D-scanners are waaaay cheaper.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文