VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Tree Namespace / PdfResource Class / CompressLossless(PdfCompression,PdfCompressionSettings,Boolean) Method
Syntax Requirements SeeAlso
In This Topic
    CompressLossless(PdfCompression,PdfCompressionSettings,Boolean) Method (PdfResource)
    In This Topic
    Compress the resource using lossless compression.
    Syntax
    'Declaration
    
    Public Function CompressLossless( _
    ByVal compression
    Compression that should be applied to the resource.
    As Vintasoft.Imaging.Pdf.PdfCompression, _
    ByVal compressionSettings
    Compression settings.
    As Vintasoft.Imaging.Pdf.PdfCompressionSettings, _
    ByVal compressIfSizeReduced
    A value indicating whether the compression must be applied to the resource only if new size of resource is less than previous size of resource.
    As Boolean _
    ) As Boolean

    Parameters

    compression
    Compression that should be applied to the resource.
    compressionSettings
    Compression settings.
    compressIfSizeReduced
    A value indicating whether the compression must be applied to the resource only if new size of resource is less than previous size of resource.

    Return Value

    True if compression is applied to the resource; otherwise, false.
    Requirements

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

    See Also