When we convert attached "Original.pdf" to image it result into image as atatched "Aspose - ConvertToImage.pdf". The background if "Invoice" rectangle changes. The logo in the top right becomes more dark than it should be. We use following code to convert into black and white image.
Code part :-
var savePdfDocument = new Aspose.Pdf.Document(inputPDFFile);
var tiffSettings = new TiffSettings
{
Compression = CompressionType.CCITT4,
Shape = ShapeType.None,
SkipBlankPages = true
};
var tiffDevice = new TiffDevice(resolution, tiffSettings);
var pages = savePdfDocument.Pages;
var pgCount = pages.Count;
for (int pg = 1; pg <= pgCount; pg++)
{
var saveName = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(outputMultipageTiff), System.IO.Path.GetFileNameWithoutExtension(outputMultipageTiff) + pg + System.IO.Path.GetExtension(outputMultipageTiff));
tiffDevice.Process(savePdfDocument, pg, pg, saveName);
}
savePdfDocument.Dispose();