VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Processing Namespace / PdfDocumentCompressorCommand Class / CreateLossyCompressor Methods / CreateLossyCompressor(Boolean,Boolean,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
    CreateLossyCompressor(Boolean,Boolean,Boolean) Method (PdfDocumentCompressorCommand)
    In This Topic
    Creates the lossy PDF compressor.
    Syntax
    'Declaration
    
    Public Overloads Shared Function CreateLossyCompressor( _
    ByVal useJbig2
    A value indicating whether the compressor must use Jbig2 lossless comression instead of CcittFax compression for bitonal images.
    As Boolean, _
    ByVal useJpeg2000
    A value indicating whether the compressor must use JPEG2000 lossless comression instead of Flate(ZIP) for color and grayscale images.
    As Boolean, _
    ByVal subsetFonts
    A value indicating whether the compressor must subset fonts.
    As Boolean _
    ) As PdfDocumentCompressorCommand
    public static PdfDocumentCompressorCommand CreateLossyCompressor(
    bool useJbig2,
    bool useJpeg2000,
    bool subsetFonts
    )
    public: static PdfDocumentCompressorCommand* CreateLossyCompressor(
    bool useJbig2,
    bool useJpeg2000,
    bool subsetFonts
    )
    public:
    static PdfDocumentCompressorCommand^ CreateLossyCompressor(
    bool useJbig2,
    bool useJpeg2000,
    bool subsetFonts
    )

    Parameters

    useJbig2
    A value indicating whether the compressor must use Jbig2 lossless comression instead of CcittFax compression for bitonal images.
    useJpeg2000
    A value indicating whether the compressor must use JPEG2000 lossless comression instead of Flate(ZIP) for color and grayscale images.
    subsetFonts
    A value indicating whether the compressor must subset fonts.

    Return Value

    A new instance of PdfDocumentCompressorCommand class.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also