Using the following code and latest version of Aspose.Total.NET downloaded today (7/25/12) to convert PDF document pages to TIFF images results in blank image files with the attached file as input:
static void PdfToTiff(string oldName)
{
var newName = oldName.Replace(".pdf", "_pgnum.tif");
var convPdfDocument = new Aspose.Pdf.Document(oldName);
var resolution = new Resolution(200);
var tiffSettings = new TiffSettings
{
Compression = CompressionType.CCITT4,
Depth = ColorDepth.Default,
Shape = ShapeType.None,
SkipBlankPages = true
};
var tiffDevice = new TiffDevice(resolution, tiffSettings);
var pgCount = convPdfDocument.Pages.Count;
for (var pg = 1; pg < pgCount + 1; pg++)
{
var saveName = newName.Replace("_pgnum", "_" + pg.ToString("00"));
tiffDevice.Process(convPdfDocument, pg, pg, saveName);
}
convPdfDocument.Dispose();
}
I have also attempted the JpegDevice, PngDevice, EmfDevice and even attempted saving the document as an XPS formatted file. None of these attempts resulted in anything other than blank images. Most other PDF documents in our system result in images. I think it may be that the attached image was created in v1.2 PDF.