Why Use PDF to TIFF API?
High Quality and Supports Multi-page Conversion
Can convert your PDF into TIFF very quickly without losing its quality. Supports multi-page PDF conversion.
Data Security
All the documents transmitted into our Web API are encrypted and secure. We use SSL, TLS, and file encryption security to protect your data. You may check our security page for more details https://pdf.co/security
Web API Automation Platforms Integrations
PDF.co API platform supports multiple programming languages that programmers can use: PHP, Javascript, Java, C#, .NET and ASP.NET, Visual Basic, and others.
If you’re not a programmer, you can use PDF.co through automation platforms such as Integromat, Zapier, UiPath, BluePrism, Automation Anywhere, and others.
PDF to TIFF API Sample & Demo
We prepared this sample PDF to be used for this demo.
The code snippets used below can be written in different programming languages. The Web API engine converts our sample PDF file into a TIFF file. The final result will look like this.
Before we proceed with the code, let us first check the /v1/pdf/convert/to/tiff
parameters and its uses.
Endpoint
URL: | https://api.pdf.co/v1/pdf/convert/to/tiff |
Method: | POST |
Parameter | Description |
url | required. Link to the source file. |
pages | optional. Comma-separated list of page indices (or ranges) to process. IMPORTANT: the very first page starts with 0 (zero). To set a range use the dash –, for example: 0, 2-5, 7-. |
rect | optional. Defines coordinates for extraction, e.g. 51.8, 114.8, 235.5, 204.0. Must be a string . |
encrypt | optional. Enable encryption for the output file: true or false |
async | optional. Runs processing asynchronously. Returns jobId to use with job/check : true or false |
name | optional. Output file name. |
profiles | optional. Must be a String. Set custom configuration. See profiles examples here |
Now we are ready to write some codes.
cURL Code Snippet
curl --location --request POST 'https://api.pdf.co/v1/pdf/convert/to/tiff' \ --header 'x-api-key: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data-raw '{ "url": "https://bytescout-com.s3-us-west-2.amazonaws.com/files/demo-files/cloud-api/pdf-to-image/sample.pdf", "name": "output.pdf", "pages": "0-" }'
This sample code and other cURL source source code samples are available here.
Now let’s see this program in action.
source code samples in JavaScript are available here.
source code samples in Java are available here.
source code samples in C# are available here.
source code samples in PHP are available here.