How to optimize PDF from URL for PDF optimization API in cURL using Web API

How to optimize PDF from URL for PDF optimization API in cURL: Step By Step Tutorial

Today you are going to learn how to optimize PDF from URL in cURL. Web API helps with PDF optimization API in cURL. Web API is the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

CURL code snippet like this for Web API works best when you need to quickly implement PDF optimization API in your cURL application. Follow the instruction and copy – paste code for cURL into your project’s code editor. Writing cURL application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment. Web API – free trial version is on available our website. Also, there are other code samples to help you with your cURL application included into trial version.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)


@echo off :: Path of the cURL executable set CURL="curl.exe" :: The authentication key (API Key). :: Get your own by registering at set API_KEY=*********************************** :: Direct URL of source PDF file. set SOURCE_FILE_URL= :: PDF document password. Leave empty for unprotected documents. set PASSWORD= :: Result PDF file name set RESULT_FILE_NAME=result.pdf :: Prepare URL for `Optimize PDF` API call set QUERY="" :: Perform request and save response to a file %CURL% -# -X GET -H "x-api-key: %API_KEY%" %QUERY% >response.json :: Display the response type response.json :: Use any convenient way to parse JSON response and get URL of generated file(s) echo. pause



Get 60 Day Free Trial

See also:


Get Your API Key

See also:

Related Samples: