ImageConversionOptions.ShrinkToFit Property

Determines is shrink to fit is enabled

public bool ShrinkToFit { get; set; }
Public Property ShrinkToFit As Boolean

Property Value

Boolean

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 ShrinkToFit property.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(True)
    conversionOptions.ShrinkToFit=True    
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim imageConverter As ImageConverter = New ImageConverter("C:\MyDocument.jpg",conversionOptions)

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

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of ImageConversionOptions.
        ImageConversionOptions conversionOptions = new ImageConversionOptions(true);
        conversionOptions.ShrinkToFit=true;
        
        // Create new instance of Converter by providing suitable parameters.
        ImageConverter imageConverter = new ImageConverter(@"C:\MyDocument.jpg", conversionOptions);

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

See Also

ImageConversionOptions
ceTe.DynamicPDF.Conversion

In this topic