Importing ASP.Net barcode into PDF

Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.

Moderator: Alex

Post Reply
mlprosper
Posts: 2
Joined: Fri Feb 26, 2010 12:53 am

Importing ASP.Net barcode into PDF

Post 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
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Importing ASP.Net barcode into PDF

Post 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
mlprosper
Posts: 2
Joined: Fri Feb 26, 2010 12:53 am

Re: Importing ASP.Net barcode into PDF

Post by mlprosper »

Thanks! The ability to specify DPI will be very helpful.
Post Reply