Convert PDF file to TIFF format in Java using REST API.

How to convert PDF to TIFF file programmatically in Java.

PDF (Portable Document Format) and TIFF (Tagged Image File Format) are two popular file formats for storing and sharing documents. PDF is widely used because of its compatibility with different devices and operating systems, while TIFF file is preferred for storing high-quality images. Sometimes, you may need to convert a PDF file to a TIFF file for various reasons, such as archiving or printing. In this article, we will discuss how to convert PDF to TIFF file programmatically in Java using GroupDocs.Conversion Cloud SDK for Java.

The following topics will be covered in this tutorial:

Java PDF to TIFF File Converter API and SDK Installation

[GroupDocs.Conversion Cloud SDK for Jav][4], including Visio, PDF, Word, Excel, PowerPoint, raster images, and many more. Using GroupDocs.Conversion Cloud SDK for Java, you can efficiently convert your files and images to the format you need without using any third-party software. Integrating the API into Java-based applications is made simple and efficient, eliminating the need for additional software.

You can either [download][5] the API’s JAR file or install it using Maven by adding the following repository and dependency into your project’s pom.xml file:

Maven Repository:

<repository>
    <id>groupdocs-artifact-repository</id>
    <name>GroupDocs Artifact Repository</name>
    <url>https://repository.groupdocs.cloud/repo</url>
</repository>

Maven Dependency:

 <dependency>
    <groupId>com.groupdocs</groupId
    <artifactId>groupdocs-conversion-cloud</artifactId>
    <version>23.4</version>
    <scope>compile</scope>
</dependency>

After integrating the Cloud SDK into your Java application, [sign up][6] for an account. Collect your Client ID and Client Secret from the [dashboard][7] before you start following the steps and available code examples. Please enter the code shown below once you have your ID and secret:

How to Convert PDF to TIFF Image in Java using REST API

To convert a PDF file to a TIFF file using GroupDocs.Conversion Cloud SDK for Java, follow these steps:

  • [Upload][8] the PDF document to the Cloud
  • [Convert][9] PDF file to TIFF in Java
  • [Download][10] the converted file

Upload the File

Firstly, upload the PDF document to the cloud storage using the code snippet as given below:

As a result, the uploaded PDF file will be available in the [files section][11] of your dashboard on the cloud.

Convert PDF to TIFF Format in Java

Here are the steps and sample code snippet to convert a PDF file to a TIFF file programmatically in Java using the GroupDocs.Conversion Cloud SDK for Java:

  • Firstly, create an instance of [ConvertApi][12] class.
  • Secondly, create an instance of the [ConvertSettings][13] class.
  • Next, provide the cloud storage name.
  • Set the input PDF file path and output file format as “tiff”.
  • Then, create an instance of the TiffConvertOptions class.
  • Optionally, set various convert options like setFromPage, setPagesCount, etc.
  • Now, set convert options and the output file path using the ConvertSettings instance.
  • After that, create ConvertDocumentRequest class instance and pass the ConvertSettings parameter.
  • Finally, call the [convert_document()][14] method and pass the ConvertDocumentRequest parameter.

The following code snippet shows how to convert a PDF file to Tiff in Java using REST API:

Java convert PDF to TIFF file in Java

Convert PDF file to TIFF file using Java

Download the Converted File

The above code sample will save the converted TIFF file to the cloud. You can download it using the following code snippet:

Free Online PDF to TIFF Converter

How to convert PDF to TIFF images online for free? Please try an [online PDF to TIFF converter][15] to change a PDF to TIFF image. This converter is developed using the above-mentioned PDF to TIFF image REST API.

Conclusion

This brings us to the end of this blog post. The following is what you have learned from this article:

  • how to programmatically convert PDFs to TIFF files in Java using GroupDocs.Conversion Cloud REST API;
  • programmatically upload the PDF file to the cloud and then download the converted TIFF file from the cloud;
  • and online convert PDF to TIFF using a free PDF to TIFF converter.

Additionally, we also provide an [API Reference][16] section that lets you visualize and communicate with our APIs directly through the browser. Java SDK’s complete source code is freely available on [Github][17]. Please check the GroupDocs.Conversion Cloud SDK for Java [Examples here][18]. Moreover, we encourage you to refer to our [Getting Started guide][19].

Moreover, we suggest you follow our [Getting Started guide][20] for detailed steps and API usage.

Finally, we keep writing new blog articles on different file formats and conversions using REST API. So, please get in touch for the latest updates.

Ask a question

For any queries about PDF to TIFF converter, please feel free to contact us on the free support [forum][21].

FAQs

How do I convert PDF files to TIFF format using Java?

You can convert PDF files to TIFF format using the [GroupDocs.Conversion Cloud SDK for Java][22]. The GroupDocs.Conversion Cloud SDK for Java is a powerful tool that allows developers to convert files from one format to another using cloud-based APIs.

How to convert PDF to TIFF online for free?

Our PDF to TIFF converter allows you to convert PDF to TIFF format for free. Please follow the step-by-step instructions given below to perform the conversion:

  • Open the [free PDF to TIFF converter online][23].
  • Now, click in the file drop area to upload a PDF or drag & drop a PDF file.
  • Next, click on the Convert Now button. Free online PDF to TIFF converter will change PDF to TIFF image.
  • The download link of the output TIFF image will be available after converting the PDF file.

How to convert PDF to TIFF on Windows?

Please visit [this link][24] to download an offline PDF to TIFF converter for Windows. This PDF to TIFF image converter can be used to convert PDF files to TIFF images on Windows easily, with a single click.

How do I install the GroupDocs.Conversion Cloud SDK for Java?

You can install the [GroupDocs.Conversion Cloud SDK for Java][25] by adding the appropriate dependencies to your Java project.

See Also

If you want to learn about related topics we recommend you visit the following articles:

[4]: https://products.groupdocs.cloud/conversion/java/)a is a cloud-based file format document conversion API that allows you to convert your files and images to different formats using simple API calls. It supports more than 50 [file formats](https://docs.groupdocs.cloud/conversion/supported-document-formats/ [5]: https://releases.groupdocs.cloud/conversion/java/ [6]: https://docs.groupdocs.cloud/total/creating-and-managing-application/ [7]: https://dashboard.groupdocs.cloud/ [8]: #Upload-the-File [9]: #Convert-PDF-to-TIFF-Format-in-Java [10]: #Download-the-Converted-File [11]: https://dashboard.groupdocs.cloud/files [12]: https://apireference.groupdocs.cloud/conversion/#/Convert [13]: https://reference.groupdocs.cloud/conversion/#/Convert/ConvertDocument [14]: https://apireference.groupdocs.cloud/conversion/#/Convert/ConvertDocument [15]: https://products.groupdocs.app/conversion/pdf-to-tiff [16]: https://apireference.groupdocs.cloud/conversion/ [17]: https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java [18]: https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java/tree/master/src/test/java/com/groupdocs/cloud/conversion/api [19]: https://docs.groupdocs.cloud/conversion/ [20]: https://docs.groupdocs.cloud/conversion/ [21]: https://forum.groupdocs.cloud/c/conversion [22]: https://products.groupdocs.cloud/conversion/java/ [23]: https://products.groupdocs.app/conversion/pdf-to-tiff [24]: https://releases.groupdocs.app/total/windows/ [25]: https://products.groupdocs.cloud/conversion/java/