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
// Open document
Document pdfDocument = new Document();
var page = pdfDocument.Pages.Add();
// Create image stamp
ImageStamp imageStamp = new ImageStamp(dataDir + "testbarcode.png");
imageStamp.Background = true;
imageStamp.XIndent = 10;
imageStamp.YIndent = 100;
imageStamp.Height = 55;
imageStamp.Width = 350;
imageStamp.Quality = 100;
// Add stamp to particular page
page.AddStamp(imageStamp);
dataDir = dataDir + "AddImageStamp_19.4.pdf";
// Save output document
pdfDocument.Save(dataDir);
If you still face the problem with latest version then please share SSCCE code along with source file so that we may investigate further to help you out.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.