I want to convert a pdf to tiff which pagesize is A4,yes,i can do it with below code:
private void ConvertPDFtoTiff(string filePath, string destPath)
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(filePath);
pdfDocument.Form.Type = Aspose.Pdf.Forms.FormType.Standard;
Aspose.Pdf.Devices.Resolution resolution = new Aspose.Pdf.Devices.Resolution(204, 196);
Aspose.Pdf.Devices.TiffSettings tiffSettings = new Aspose.Pdf.Devices.TiffSettings();
tiffSettings.Compression = Aspose.Pdf.Devices.CompressionType.CCITT4;
tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Format1bpp;
tiffSettings.Brightness = (float)0.1;
Aspose.Pdf.Devices.TiffDevice tiffDevice = new
tiffDevice = null;
catch (Exception ex)
But I found some pages content was stretched,for example,there is a page which it’s width is same as it’s height,but in the output tiff,the height is changed.i wonder if have a method to zoom page content and output it without stretched.
I’m waiting for your help,thanks!