HtmlConversionOptions.Zoom Property

Determines the magnification level for the HTML.

public float Zoom { get; set; }
Public Property Zoom As Single

Property Value

Single

Licensing Info

This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use Zoom Property.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of HtmlConversionOptions.
    Dim conversionOptions As HtmlConversionOptions = New HtmlConversionOptions(True)
    conversionOptions.Zoom=1
        
   ' Create new instance of Converter by providing suitable parameters.
    Dim htmlConversion As HtmlConverter = New HtmlConverter("C:\MyDocument.html",conversionOptions)

    ' Call Convert method to start conversion
    htmlConversion.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of HtmlConversionOptions.
        HtmlConversionOptions conversionOptions = new HtmlConversionOptions(true);
        conversionOption.Zoom=1;
        
        // Create new instance of Converter by providing suitable parameters.
        HtmlConverter htmlConversion = new HtmlConverter(@"C:\MyDocument.html", conversionOptions);

        //Call Convert method to start conversion
        htmlConversion.Convert(@"C:\MyOutput.pdf");
    }
}

Remarks

Value 1 represents original size or 100% zoom.

See Also

HtmlConversionOptions
ceTe.DynamicPDF.Conversion

In this topic