Link Search Menu Expand Document

« return to view all profiles categories


PDF Rendering: PDF to TIFF rendering force black and white tiff image output

To get black-and-white TIFF images we need to set appropriate TIFF compression type. Following profiles value allows changing advanced conversion options in the underlying converter.

{
                "TextSmoothingMode": "HighQuality", // Valid values: "HighSpeed", "HighQuality"
                "VectorSmoothingMode": "HighQuality", // Valid values: "HighSpeed", "HighQuality"
                "ImageInterpolationMode": "HighQuality", // Valid values: "HighSpeed", "HighQuality"
                "RenderTextObjects": true, // Valid values: true, false
                "RenderVectorObjects": true, // Valid values: true, false
                "RenderImageObjects": true, // Valid values: true, false
                "RenderCurveVectorObjects": true, // Valid values: true, false
                "JPEGQuality": 85, // from 0 (lowest) to 100 (highest)
                "TIFFCompression": "LZW", // Valid values: "None", "LZW", "CCITT3", "CCITT4", "RLE"
                "RotateFlipType": "RotateNoneFlipNone", // RotateFlipType enum values from here: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.rotatefliptype?view=netframework-2.0
                "ImageBitsPerPixel": "BPP24", // Valid values: "BPP1", "BPP8", "BPP24", "BPP32"
                "OneBitConversionAlgorithm": "OtsuThreshold", // Valid values: "OtsuThreshold", "BayerOrderedDithering"
                "FontHintingMode": "Default", // Valid values: "Default", "Stronger"
                "NightMode": false // Valid values: true, false
}

Applies To:

  • /pdf/convert/to/tiff

PDF Rendering: PDF to Image when need to render only images layer from PDF

We can control how PDF is rendered and turn on/off text layer, vector drawings layer, images layer. To turn off text use following profile.

{ "RenderTextObjects": false }

Applies To:

  • /pdf/convert/to/tiff
  • /pdf/convert/to/png
  • /pdf/convert/to/jpg
  • /url/convert/to/jpg
  • /url/convert/to/png

« return to view all profiles categories