Hello, I am using the block of code below to convert the attached Pdf to Tif, saved as 1bpp.
The resulting tif does not have solid black letters, maybe because the lettering in the PDF is colored and not solid black.
That makes it a little harder to read and inflates the filesize because due to swapping between black and white on every pixel.
See attached 'aspose.tif' for the first page conversion.
I'd like to output similar to the attached 'print.tif', is there a way to control the quality of 1bbp?
public static void ConvertToTif(string pdfFilePath, string outputFilePath)
{
PDF.<span style="color: rgb(43, 145, 175);">PdfConverter</span> pdfConverter = <span style="color: blue;">new</span> PDF.<span style="color: rgb(43, 145, 175);">PdfConverter</span>();
<span style="color: rgb(43, 145, 175);">Resolution</span> resolution = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Resolution</span>(200);
pdfConverter.Resolution = resolution;
pdfConverter.BindPdf(pdfFilePath);
pdfConverter.DoConvert();
<span style="color: rgb(43, 145, 175);">TiffSettings</span> tiffSettings = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">TiffSettings</span>();
tiffSettings.Depth = <span style="color: rgb(43, 145, 175);">ColorDepth</span>.Format1bpp;
pdfConverter.SaveAsTIFF(outputFilePath, tiffSettings);
pdfConverter.Close();
}</pre><pre style="background: white; color: black; font-family: Consolas;"> </pre>