Reference Guide
GdPicture14 Namespace / GdPictureDocumentConverter Class / PdfUseDeflateOnJPEG Property
Example





In This Topic
    PdfUseDeflateOnJPEG Property (GdPictureDocumentConverter)
    In This Topic
    Specifies if the converter shall use additional Deflate compression for JPEG images in PDF output.
    Syntax
    'Declaration
     
    
    Public Property PdfUseDeflateOnJPEG As Boolean
    public bool PdfUseDeflateOnJPEG {get; set;}
    public read-write property PdfUseDeflateOnJPEG: Boolean; 
    public function get,set PdfUseDeflateOnJPEG : boolean
    public: __property bool get_PdfUseDeflateOnJPEG();
    public: __property void set_PdfUseDeflateOnJPEG( 
       bool value
    );
    public:
    property bool PdfUseDeflateOnJPEG {
       bool get();
       void set (    bool value);
    }

    Property Value

    The default value is true.
    Example
    Disable Deflate for JPEG images in PDF output.
    Using gdpictureDocumentConverter As New GdPictureDocumentConverter()
        gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG)
        gdpictureDocumentConverter.PdfUseDeflateOnJPEG = False
        gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7)
    End Using
    using (GdPictureDocumentConverter gdpictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter())
    {
        gdpictureDocumentConverter.LoadFromFile("input.jpg", GdPicture14.DocumentFormat.DocumentFormatJPEG);
        gdpictureDocumentConverter.PdfUseDeflateOnJPEG = False;
        gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_7);
    }
    See Also