Embed Barcode in C# PDF Library

三世轮回 提交于 2019-12-25 06:43:47

问题


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).

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

I have searched on Google for this error, but I did not found anything about a 'font file table'.

What do I wrong?


回答1:


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.



来源:https://stackoverflow.com/questions/22788965/embed-barcode-in-c-sharp-pdf-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!