Free Support Forum - aspose.com

Convert PDF to 16bit TIFF

Can someone advise what is the optimal way to convert a pdf to a 16bit tiff?


When i say “optimal” i mean fastest.

So far my code takes about 6 seconds, it goes something like this -
  1. Load - new PDFDocument(path)
  2. Create new memory stream
  3. TiffDevice.Process(PDFDocument,memory stream)
  4. Image.FromStream(memoryStream)
  5. EncoderParameter(ColorDepth,24L)
  6. Image.Save(Path,Codec,EncoderParameter)
Source pdf is 10 page 32bit colour

Cheers

Hi Rupert,


Thanks for your interest in our products.

The TiffDevice class provides the optimal feature to convert PDF file to TIFF image. Please follow the instructions specified over Convert all PDF pages to single TIFF Image.

The time taken by our component to process/manipulate the PDF document and generate the final output, depends upon the structure and complexity of input document. If you are not satisfied with the performance, can you please share the source PDF file so that we can test the scenario at our end.


PS, Besides TiffDevice, we also have PdfConerter class present under Aspose.Pdf.Facades namespace. It also offers the feature to convert PDF file to TIFF image. You may also test the code snippet shared over Performance Improvement during PDF to TIFF Conversion