将条形码嵌入C#PDF库 [英] Embed Barcode in C# PDF Library
问题描述
我想使用Windows窗体应用程序生成交货单.因此,我已将PDF File Writer包含到我的项目中( http://www.codeproject.com/Articles/570682/PDF-File-Writer-Csharp-Class-Library-Version ).
I want to generate a delivery note with a Windows Form Application. Therefore I have included the PDF File Writer into my project (http://www.codeproject.com/Articles/570682/PDF-File-Writer-Csharp-Class-Library-Version).
我想为一些条形码嵌入Barcode39字体.我在计算机上安装了Barcode39并将其嵌入到我的代码中:
I want to embed the Barcode39 font for some barcodes. I have Barcode39 installed on my pc and embedded it in my code:
BarcodeFont = new PdfFont(Document, FontName3, FontStyle.Regular, true);
运行程序时,出现以下错误:
When I run my program I get the following error:
缺少必需的字体文件表
Required font file table is missing
我已经在Google上搜索了此错误,但没有找到有关字体文件表"的任何信息.
I have searched on Google for this error, but I did not found anything about a 'font file table'.
我怎么了?
推荐答案
请注意,PDF File Writer C#类库(版本1.5)支持条形码.支持的代码是Code-39,Code-128,UPC-A和EAN-13.此支持不使用字体.
Please note the PDF File Writer C# Class Library (Version 1.5) supports barcode. The supported codes are Code-39, Code-128, UPC-A and EAN-13. This support is without using fonts.
这篇关于将条形码嵌入C#PDF库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!