I am trying to convert a pdf to tiff images where the pages in the pdf are large and I need to output the tiff image as 8.5 x 11.0 (Letter size).
Is there any way to do this?
Thanks
I am trying to convert a pdf to tiff images where the pages in the pdf are large and I need to output the tiff image as 8.5 x 11.0 (Letter size).
Is there any way to do this?
Thanks
Please try to use the below code snippet in order to achieve your requirements.
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(dataDir + "in.pdf");
// Create TiffSettings object
TiffSettings tiffSettings = new TiffSettings();
tiffSettings.Compression = CompressionType.None;
tiffSettings.Depth = ColorDepth.Default;
tiffSettings.Shape = ShapeType.Landscape;
tiffSettings.SkipBlankPages = false;
// Create TIFF device
TiffDevice tiffDevice = new TiffDevice(PageSize.PageLetter, tiffSettings);
// Convert a particular page and save the image to stream
tiffDevice.Process(pdfDocument, dataDir + "AllPagesToTIFF_out.tif");
Thanks, that worked