Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1833
Poor image quality in published pdf
posted

I'm not expecting much and appreciate that there may well be some conversion anomalies but the current output from the Infragistics document engine is unacceptable. I assume that there's something I've overlooked. I've tried png, gif, jpg and even bmp formats, all are rendered to a less than satisfactory level of quality. I've used FOP in .Net to embed images into a pdf without this kind of drop in quality.

I'm using infragistic v7.2 and the following code...

Dim cellLogo As ITableCell = rowHeader.AddCell()
cellLogo.Alignment.Horizontal = Alignment.Right
Dim imgInnovis As New Infragistics.Documents.Graphics.Image("Innovis_Logo_big.bmp")
Dim image1 As IImage = cellLogo.AddImage(imgInnovis)

One thing to note is that I'm saving the xml, loading it later and then generating the pdf, but I'm sure that this was an issue before also!

Apologies in advance if Mike answers this, I've been asking a few too many questions recently

Parents
  • 37774
    Verified Answer
    posted

     I think that the reason that this happens is that by default the Documents engine uses JPEG compression on all images, so you will inherently get a loss of quality.  In order to get around this, you can set 'imgInnovis.Preferences.Compressor = Infragistics.Documents.Graphics.ImageCompressors.Flate'.

    -Matt

Reply Children