How to Convert PDF to TIFF in Java

This quick how-to topic contains information on how to convert PDF to TIFF in Java. It includes all the necessary information to configure the environment and detailed steps to complete the task. For converting PDF to TIFF Java code is presented along with the customization of the desired TIFF image.

Steps to Convert PDF to TIFF in Java

  1. Configure the application to add a reference to Aspose.PDF from the Maven repository to convert PDF to a TIFF Image
  2. Open the source input PDF file using the Document class object for conversion to a TIFF image
  3. Set the resolution of the desired TIFF image
  4. Initialize the TiffSettings class object to customize the output TIFF image
  5. Initialize and configure the TiffDevice object using the specified resolution and other settings
  6. Save the PDF file as TIFF using the TiffDevice.process method

The above steps provide details about libraries required to convert PDF to TIFF using Java along with a detailed sequence of steps for implementation. You can open the source PDF from disk and convert it to TIFF in conjunction with the customization of the output file using the TiffSettings object. The conversion process is performed by the TiffDevice object that is initialized with the resolution and TiffSettings instance and contains the process method to convert PDF to TIFF.

Code to Convert PDF to TIFF using Java

To convert PDF to TIFF Java code is used where resolution is set for the output TIFF image using the horizontal and vertical resolution values however, you can use another overload as well. The TiffSettings class contains many other properties including setting the compression type, skipping the blank pages, shape type, color depth, brightness, and page coordinate type. The TiffDevice class includes many other constructors to initialize its object with different characteristics like width, height, page size, resolution and TiffSettings instance in multiple variants.

In this example, we have explored how using Java convert PDF to TIFF is easily possible. If you intend to learn about converting Image to PDF, refer to the article on how to convert Image to PDF in Java.

 English