PDF to TIFF (CCITT G4 Fax Encoding)

Hi,

I’m evaluating your PDF-to-TIFF conversion product. During my tests, I noticed that the generated TIFF images use LZW compression. If I purchase a license, is there a way to change the compression method? I’m using TiffConverter() from Documentize 25.5.0 and would like a simple way to convert PDF to TIFF with CCITT G4 Fax Encoding. While I found options to create multi-page TIFFs and change the resolution, I haven’t found how to set the compression type. I’m just one click away from buying, but I need to confirm this feature.

Reference Image: pdf2tiff.png


This Topic is created by awais.hafeez using Email to Topic tool.

Hi, framirez
You’re right — currently, only LZW compression is supported during conversion.
We plan to add the ability to choose the compression method for TIFF conversion in the upcoming version 25.6, scheduled for release in June 2025.
Thank you for your request.

OK, thanks a lot for your answer i can handle it in other way

Hi, framirez , fco.

Today a new version of the library (25.6) was released with the feature you were looking for.
This release added 2 options for PdfToTiffOptions class.
Example:

// The example demonstrates how to convert PDF document into TIFF format with additional parameters.
var options = new PdfToTiffOptions();
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
options.AddOutput(new DirectoryDataSource("path_to_output_directory"));
options.Compression = TiffCompression.CCITT4; //new parameter
TiffConverter.Process(options);

Release notes: v25.6 :: Documentize

Yes. The TIFF compression used by the converter can be changed with the ImageSaveOptions.TiffCompression property.
In the 26.5.0 version of Wordize for .NET the default is Lzw, but you can assign any value from the ImageTiffCompression enumeration, including the CCITT‑4 (G4) fax scheme.

How to set CCITT‑4 (G4) compression

ImageSaveOptions imgSaveOptions = new ImageSaveOptions(SaveFormat.Tiff);
imgSaveOptions.TiffCompression = ImageTiffCompression.Ccitt4;   // G4 fax encoding
// (optional) set binarization method if needed
imgSaveOptions.TiffBinarizationMethod = ImageBinarizationMethod.FloydSteinbergDithering;
imgSaveOptions.ThresholdForFloydSteinbergDithering = 64;

Converter.Create()
    .From(MyDir + "Sample.pdf")
    .To(ArtifactsDir + "output.tiff", imgSaveOptions)
    .Execute();
  • The TiffCompression property controls the compression type when saving to TIFF — its default is Lzw【ImageSaveOptions.TiffCompression】.
  • The ImageTiffCompression enum lists the supported values, including Ccitt3 and Ccitt4 for CCITT fax encodings【ImageTiffCompression Enum】.

So, by supplying an ImageSaveOptions instance with TiffCompression = ImageTiffCompression.Ccitt4 to your Converter, you will obtain a single‑page (or multi‑page) TIFF that uses CCITT G4 compression instead of LZW.

References