This page displays the step-by-step instructions and algorithm of how to convert PDF to JSON from URL and how to apply it in your application. ByteScout Cloud API Server was designed to assist PDF to JSON API in cURL. ByteScout Cloud API Server 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!.
Use the code displayed below in your application to save a lot of time on writing and testing code. This sample code in cURL is all you need. Just copy-paste it to the code editor, then add a reference to ByteScout Cloud API Server and you are ready to try it! Writing cURL application mostly includes various stages of the software development so even if the functionality works please check it with your data and the production environment.
Our website provides free trial version of ByteScout Cloud API Server that gives source code samples to assist with your cURL project.
@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-to-json/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= :: Destination JSON file name set RESULT_FILE_NAME=result.json :: Prepare URL for `PDF To JSON` API call set QUERY="https://localhost/pdf/convert/to/json?name=%RESULT_FILE_NAME%&password=%PASSWORD%&pages=%PAGES%&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