Hi,

First, I want to thank authors of iTextSharp project for their work.

I am using the following C# code found on internet to generate barcode
images on aspx page:

using System;
using System.Web;
using iTextSharp.text;
using iTextSharp.text.pdf;

namespace Mynamespace
{
public partial class Barcode : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e) 
{
Barcode39 code39 = new Barcode39();

code39.Code = Request["code"];

code39.X = 0.8f;
code39.InkSpreading = 0f;
code39.N = 2f;
code39.Baseline = 10f;
code39.BarHeight = 28f;
code39.GenerateChecksum = true;
code39.ChecksumText = true;
code39.StartStopText = true;
code39.Extended = true;

System.Drawing.Image bc =
code39.CreateDrawingImage(System.Drawing.Color.Black,
System.Drawing.Color.White); 

Response.ContentType = "image/gif";

bc.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif); 

}
}
}

I have a few questions:

1. Is that a right approach? If not, give me a right example please.
2. What would be the right method to resize the output image keeping current
proportions?
3. How to get a human readable text appeared below the barcode? I couldn’t
get it to appear.
4. Will this “code39.InkSpreading” parameter work in my case? When should I
use it?

Thanks for any help.

-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Code-39-barcodes-on-aspx-page-tp2301410p2301410.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to