Tag Image File Format or TIFF is a popular image file format for storing raster graphics and images. These do not need to compress or lose any image quality and is very popular among photographers. TIFF is widely supported by word processing, image manipulation, and page layout applications. TIFF provides multiple pages support and you can split a multipage TIFF file into separate pages. This feature makes word a suitable option to convert to TIFF format. So, in this article we will cover how to convert word to TIFF file in Python.
The following topics shall be covered in this article:
- Python Word to TIFF Converter API - Installation
- How to Convert Word DOCX to TIFF Format in Python
- Convert Range of Pages from Word to TIFF File in Python
- Convert Specific Pages of Word to TIFF Image in Python
Python Word to TIFF Converter API - Installation
In order to convert DOCX to TIFF format, we will be using the Python SDK of GroupDocs.Conversion Cloud API. It is a powerful Python library to create and manipulate documents seamlessly. Moreover, it provides a high fidelity conversion of Word files to more than 50 popular document and image formats. You can install the Python library using the following command in console:
pip install groupdocs_converison_cloud
Please get your Client ID and Secret from the dashboard before following the mentioned steps. Once you have your ID and secret, add in the code as shown below:
How to Convert Word DOCX to TIFF Format in Python
You can convert convert word to high resolution TIFF file programmatically by following the steps given below:
- Create an instance of the ConvertApi
- Next, create an instance of the ConvertSettings
- Set the storage name and word file path
- Provide “tiff” as output file format
- Create an instance of the DocxLoadOptions
- Set the protected docx file password
- Set loadOptions to convert settings
- Now, provide the output file path
- After that, create ConvertDocumentRequest with ConvertSettings as argument
- Finally, call the ConvertApi.convert_document() method with ConvertDocumentRequest to save the converted file
The following code sample shows how to convert word to TIFF image using REST API in Python:
Convert Range of Pages from Word to TIFF File in Python
You can also convert collection of word pages to TIFF programmatically by following the steps given below:
- Create an instance of the ConvertApi
- Next, create an instance of the ConvertSettings
- Set the storage name and word file path
- Provide “tiff” as output file format
- Create an instance of the DocxLoadOptions
- Set the protected docx file password and load_options
- Create an instance of the TiffConvertOptions
- Define grayscale, from_page, pages_count, quality, rotate_angle, grayscale and use_pdf etc.
- Set convertOptions to settings object
- Now, provide the output file path
- After that, create ConvertDocumentRequest with ConvertSettings as argument
- Finally, call the ConvertApi.convert_document() method with ConvertDocumentRequest to save the converted file
The following code sample shows how to convert word to TIFF format specific pages in Python:
Convert Specific Pages of Word to TIFF Image in Python
You can also convert collection of word pages to TIFF programmatically by following the steps given below:
- Create an instance of the ConvertApi
- Next, create an instance of the ConvertSettings
- Set the storage name and word file path
- Provide “tiff” as output file format
- Create an instance of the DocxLoadOptions
- Set the protected docx file password and load_options
- Create an instance of the TiffConvertOptions
- Define pages collection, rotate_angle, grayscale and use_pdf etc.
- Set convertOptions to convert settings object
- Now, provide the output file path
- After that, create ConvertDocumentRequest with ConvertSettings as argument
- Finally, call the ConvertApi.convert_document() method with ConvertDocumentRequest to save the converted file
The following code sample shows how to convert specific pages of word to TIFF file using REST API in Python:
Online Word to TIFF Converter {#Online-DOCX(Word)-to-TIFF-Converter}
How to convert DOC to TIFF online? Please try the following free online word to tiff converter tool, which is developed using the above API.
Summing up
In this article, we have learned:
- how to convert word document to tiff file using python;
- converting range of pages of word docx to tiff file;
- how to change specific pages of docx file to tiff image;
- online word to tiff converter software free;
You may learn more about GroupDocs.Conversion Cloud API from the documentation. We also have an API Reference section that lets you visualize and communicate with our APIs directly through the browser.
Ask a question
If you have any questions about DOCX to TIFF converter, please feel free to ask us on the Free Support Forum.
Related Articles
The following articles are highly recommended to learn about: