This page displays the step-by-step instructions and algorithm of how to split PDF from URL and how to apply it in your application. PDF splitting API in cURL can be applied with ByteScout Cloud API Server. ByteScout Cloud API Server is API server that is ready to use and can be installed and deployed in less than 30 minutes on your own Windows server or server in a cloud. It can save data and files on your local server-based file storage or in Amazon AWS S3 storage. Data is processed solely on the API server and is powered by ByteScout engine, no cloud services or Internet connection is required for data processing..
Use the code displayed below in your application to save a lot of time on writing and testing code. Open your cURL project and simply copy & paste the code and then run your app! This basic programming language sample code for cURL will do the whole work for you in implementing PDF splitting API in your app.
Free! Free! Free! ByteScout free trial version is available for FREE download from our website. Programming tutorials along with source code samples are assembled.
@echo off :: Path of the cURL executable set CURL="curl.exe" :: Source PDF file to split set SOURCE_FILE_URL=https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-split/sample.pdf :: Comma-separated list of page numbers (or ranges) to process. Example: '1,3-5,7-'. set PAGES=1-2,3- :: 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 `Split PDF` API call set QUERY="https://localhost/pdf/split?name=%RESULT_FILE_NAME%&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