Pdf Duo .Net component
The quality of images in the document.

Namespace: DuoDimension
Assembly: pdfduo-net (in pdfduo-net.dll) Version: 2.4.0.0 (2.4)

Syntax

         
 C#  Visual Basic  Visual C++ 
public int ImageQuality { get; set; }
Public Property ImageQuality As Integer
	Get
	Set
public:
property int ImageQuality {
	int get ();
	void set (int value);
}

Remarks

The ImageQuality specifies the level of compression for images. Te range of useful values for the quality category is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would result in the lowest quality image and 100 the highest.

Examples

CopyC#
StringBuilder html_st = new StringBuilder(@"Testing the image Quality: <img src=image.jpg />");
string file_pdf = @"K:\new.pdf";

try
{
    DuoDimension.HtmlToPdf conv = new DuoDimension.HtmlToPdf();
    conv.OpenHTML(html_st);
    conv.ImageInfo.ImageQuality = 50;
    conv.SavePDF(file_pdf);
    System.Diagnostics.Process.Start(file_pdf);
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
CopyVB.NET
Dim html_st As New System.Text.StringBuilder("Testing the image Quality: <img src=image.jpg />")
Dim file_pdf As String = "K:\new.pdf"

Try
    Dim conv As New DuoDimension.HtmlToPdf()
    conv.OpenHTML(html_st)
    conv.ImageInfo.ImageQuality = 50
    conv.SavePDF(file_pdf)
    System.Diagnostics.Process.Start(file_pdf)
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

See Also