开发者

Barcode gnerator in a pdf document

开发者 https://www.devze.com 2022-12-22 08:32 出处:网络
I am using ASP.NET开发者_运维知识库 and I want to create a barcode in a pdf document by means of a third party component. Then I want to send this pdf document as an attachment.

I am using ASP.NET开发者_运维知识库 and I want to create a barcode in a pdf document by means of a third party component. Then I want to send this pdf document as an attachment.

Do you have any ideas how can I do this?

Thanks


I have done this in the past. I used a few components.

  1. Barcode generation (http://www.idautomation.com/servercontrols/)
  2. PDF Generation (http://sourceforge.net/projects/itextsharp/)
  3. Regular email class in .NET (System.Net.Mail)

A few notes:

  1. The barcode generation results in an image, so the import to any PDF library will be able to handle it.
  2. iTextSharp's documentation is lacking, in my opinion. It is a port of the Javas equivalent, so most things can be converted fairly easily.


Why not install ghostscript on the server and use this to generate the barcode from ps to pdf?

Link here


You may also try the following solution using Aspose products:

  1. Create Barcode using Aspose.Barcode for .NET
  2. Create PDF or add barcode image in the PDF using Aspose.Pdf for .NET
  3. Send the PDF as an email attachment

Disclosure: I work as developer evangelist at Aspose.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号