views:

70

answers:

2

Hi,

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

+2  A: 

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.
Dustin Laine
A: 

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

Link here

tommieb75