Page 1 of 1

Importing ASP.Net barcode into PDF

Posted: Fri Feb 26, 2010 1:01 am
by mlprosper
Hi,

I am using the demo version of the barcode dll to generate a datamatrix barcode in an asp.net page. I have set up the page successfully and can generate datamatrix png images just fine.

However, I am having trouble when trying to import the generated png into a PDF for printing - the barcode quality is degraded significantly. I think it is because the generated barcode is 72DPI, but the PDF is 300DPI - but I am not sure. Is there a way to ensure that a barcode will appear cleanly in a PDF when importing from an aspx page?

Thanks,
Mike

Re: Importing ASP.Net barcode into PDF

Posted: Sat Feb 27, 2010 10:10 am
by Alex
Hello Mike,

VintaSoftBarcode.NET Library generates images without resolution. The size of the image depends from the BarocodeWriter.Settings.MinWidth property. You should specify necessary to you value of the MinWidth property, generate image with barcode and change resolution of the image to 300 dpi.

We will add ability to specify resolution in BarcodeWriter in next version of library.

Best regards, Alexander

Re: Importing ASP.Net barcode into PDF

Posted: Mon Mar 15, 2010 7:58 pm
by mlprosper
Thanks! The ability to specify DPI will be very helpful.