Hi,
i'm using MigraDoc to generate Product data sheets as PDF.
When i add an Image with paragraph.AddImage(Stream stream), this returns an Image with massive jpeg artefacts.
I'm using neither rescaling nor resizing.
Is this function AddImage modifying the stream before adding to image, and if so, is there any way to set / change the quality?
Searching for any threads solving my issue returned with no result.
Thanks in advance,
FEN
(width, height and stream are properties of the image object)
Code:
Row rowImage = table.AddRow();
rowImage.Height = XUnit.FromCentimeter(9.6).Point;
Paragraph paragraphImage = new Paragraph();
Image img = paragraphImage.AddImage(stream);
if (img != null)
{
img.Width = width; //px
img.Height = height; //px
}
rowImage[0].Add(paragraphImage);
Original picture and screenshot of the generated PDF are attached. (Why it is not allowed to attach pdf documents?)