Page 1 of 1

Image Quality when using .responseaspdf

Posted: Thu Aug 20, 2009 8:41 am
by ghck17
I have a logo in the header of my report whose source is a 100k vector based .png file. When using the .responseaspdf method, the image quality of the logo is very poor. However, when printing from the report designer, the image is sharp, as I would expect. Is it possible to control the quality of the pdf output?

Image Quality when using .responseaspdf

Posted: Fri Aug 21, 2009 3:25 am
by Jan
Hello,

You can increase quality of image. Please see example:

Code: Select all

StiPdfExportSettings settings = new StiPdfExportSettings();
settings.ImageQuality = 1.5f;//Default 0.75
settings.ImageResolution = 500;//Default 100
Stimulsoft.Report.Web.StiReportResponse.ResponseAsPdf(this, report, true, settings);
Thank you.

Image Quality when using .responseaspdf

Posted: Fri Aug 21, 2009 8:57 am
by ghck17
That worked great. I don't know how I missed that in the documentation. Thanks for your help.

Image Quality when using .responseaspdf

Posted: Fri Aug 21, 2009 7:06 pm
by Edward
Hi

Please let us know if you need any help.

Thank you.