The easy to understand coding guides help you check the features without any need to write your own code. ByteScout Cloud API Server helps with PDF merging API in cURL. 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. Follow the tutorial and copy – paste code for cURL into your project’s code editor. 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.
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" :: Direct URLs of PDF documents to merge set SOURCE_FILE_URL1=https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-merge/sample1.pdf set SOURCE_FILE_URL2=https://bytescout-com.s3.amazonaws.com/files/demo-files/cloud-api/pdf-merge/sample2.pdf :: 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 `Merge PDF` API call set QUERY="https://localhost/pdf/merge?name=%RESULT_FILE_NAME%&url=%SOURCE_FILE_URL1%,%SOURCE_FILE_URL2%" :: 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