David Bonnici
David Bonnici

Reputation: 6747

Barcode gnerator in a pdf document

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

Upvotes: 2

Views: 3103

Answers (3)

Shahzad Latif
Shahzad Latif

Reputation: 1424

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.

Upvotes: 0

t0mm13b
t0mm13b

Reputation: 34592

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

Link here

Upvotes: 1

Dustin Laine
Dustin Laine

Reputation: 38503

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.

Upvotes: 3

Related Questions