Table of Contents

Property ComputeOptimalTables

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

ComputeOptimalTables

Gets or sets a value indicating whether to compute optimal Huffman coding tables for the produced JPEG image.

public bool ComputeOptimalTables { get; set; }

Property Value

bool

true if to compute optimal Huffman coding tables for the produced JPEG image; otherwise, false.

Remarks

Default value: true.

To compute the optimal Huffman coding tables, the library will consume more memory and time. But in most cases, the output file with optimal coding tables is smaller. The exact difference depends on the image, but a usual difference is about 10%.

Set this option to false if you would like to save on memory and/or speed of processing in expense of output file size.

The Convert PDF to JPG in .NET article shows how to save PDF pages as JPG images.