Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Poor image quality in published pdf

Last post 07-15-2008 11:05 by aim123. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-15-2008 10:09

    • aim123
    • Top 200 Contributor
    • Joined on 03-11-2008
    • Points 425

    Poor image quality in published pdf

    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

    Filed under:
    • Post Points: 20
  • 07-15-2008 10:51 In reply to

    Re: Poor image quality in published pdf

    Answer

     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

    • Post Points: 50
  • 07-15-2008 11:05 In reply to

    • aim123
    • Top 200 Contributor
    • Joined on 03-11-2008
    • Points 425

    Re: Poor image quality in published pdf

    Great! thats made a huge difference!

    Filed under:
    • Post Points: 5
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems