Linearize PDF is a REST API tool that optimizes a PDF file for quick online viewing known as ‘Fast Web View,’ improving user experience when streamed over a network connection.
Api-Keyfield with your unique API Key
filewith the local path to your input
curl -X POST "https://api.pdfrest.com/linearized-pdf" -H "accept: application/json" -H "Content-Type: multipart/form-data" -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -F "file=@PATH_TO_FILE/example_file.pdf" -F "output=example_output"
file parameter allows you to select a local file to be uploaded to pdfRest’s processing server.