GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfPredictorFunction Enum

    Namespace:
    GemBox.Pdf.Filters
    Assembly:
    GemBox.Pdf.dll

    Represents a predictor function that can be applied to PdfLZWDecodeFilter or PdfFlateDecodeFilter data to make the encoded data more compact.

    • C#
    • VB.NET
    public enum PdfPredictorFunction
    Public Enum PdfPredictorFunction
    Remarks

    PdfLZWDecodeFilter and PdfFlateDecodeFilter encoding compress more compactly if their input data is highly predictable. One way of increasing the predictability of many continuous-tone sampled images is to replace each sample with the difference between that sample and a PdfPredictorFunction applied to earlier neighboring samples. If the PdfPredictorFunction works well, the post prediction data clusters toward 0.

    Fields

    None

    No prediction (the default value).

    PNGAverageOnAllRows

    PNG prediction (on encoding, PNG Average on all rows).

    PNGNoneOnAllRows

    PNG prediction (on encoding, PNG None on all rows).

    PNGOptimum

    PNG prediction (on encoding, PNG optimum).

    PNGPaethOnAllRows

    PNG prediction (on encoding, PNG Paeth on all rows).

    PNGSubOnAllRows

    PNG prediction (on encoding, PNG Sub on all rows).

    PNGUpOnAllRows

    PNG prediction (on encoding, PNG Up on all rows).

    TIFF2

    TIFF Predictor 2.

    Unknown

    Prediction algorithm is unknown.

    See Also
    PDF Specification ISO 32000-1:2008, section '7.4.4.4 LZW and Flate Predictor Functions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.