This sample shows how to save a PDF page or the whole PDF document as a bitonal (black and white) TIFF image using Docotic.Pdf library.
To produce a bitonal TIFF, create drawing options with specific image compression options. After that, use that drawing options with PdfDocument.SaveAsTiff or PdfPage.Save methods.
To create PdfDrawOptions, use PdfDrawOptions.Create method. After that, use TiffImageCompressionOptions.SetBitonal and ImageCompressionOptions.CreateTiff methods to create compression options for bitonal TIFF output.