I am using Aspose BarCode to generate a bar code to insert into a aspose.pdf document.
With the following code.
barCodeGenerator.CodeText = barcodetext; barCodeGenerator.Save(imgStream, BarCodeImageFormat.Png); PDFPage.AddImage(imgStream, pageLocation, 350, 55, false);
where pageLocation is a rectangle on a pdf page.
Specifying width and height of image to be 350, 55 accordingly.
I saved down the imgStream and confirmed that the image exists ( I am attaching a persisted image file)
However after Image was added to the pdf document
I am seeing very fuzzy image … instead of a crisp and clean barcode