Source code documentation samples give simple and easy method to install a needed feature into your application. What is ByteScout Cloud API Server? It is the ready to use Web API Server that can be deployed in less than 30 minutes into your own in-house server or into private cloud server. Can store data on in-house local server based storage or in Amazon AWS S3 bucket. Processing data solely on the server using buil-in ByteScout powered engine, no cloud services are used to process your data!. It can help you to PDF make searchable API in your cURL application.
These cURL code samples for cURL guide developers to speed up coding of the application when using ByteScout Cloud API Server. Just copy and paste the code into your cURL application’s code and follow the instructions. Enjoy writing a code with ready-to-use sample cURL codes.
The trial version of ByteScout Cloud API Server can be downloaded for free from our website. It also includes source code samples for cURL and other programming languages.
@echo off :: Path of the cURL executable set CURL="curl.exe" :: Direct URL of source PDF file. set SOURCE_FILE_URL=https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-make-searchable/sample.pdf :: Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. set PAGES= :: PDF document password. Leave empty for unprotected documents. set PASSWORD= :: OCR language. "eng", "fra", "deu", "spa" supported currently. Let us know if you need more. set LANGUAGE=eng :: Result PDF file name set RESULT_FILE_NAME=result.pdf :: Please NOTE: In this sample we're assuming Cloud Api Server is hosted at "https://localhost". :: If it's not then please replace this with with your hosting url. :: Prepare URL for `Make Searchable PDF` API call set QUERY="https://localhost/pdf/makesearchable?name=%RESULT_FILE_NAME%&password=%PASSWORD%&pages=%PAGES%&lang=%LANGUAGE%&url=%SOURCE_FILE_URL%" :: Perform request and save response to a file %CURL% -# -X GET %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