How to generate barcode for barcode generator API in cURL with PDF.co Web API
Step By Step Tutorial: how to generate barcode for barcode generator API in cURL
Source code documentation samples provide quick and easy way to add a required functionality into your application. PDF.co Web API was made to help with barcode generator API in cURL. PDF.co Web API is the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.
This rich sample source code in cURL for PDF.co Web API includes the number of functions and options you should do calling the API to implement barcode generator API. 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 barcode generator API in your app.
Trial version of ByteScout is available for free download from our website. This and other source code samples for cURL and other programming languages are available.
@echo off :: Path of the cURL executable set CURL="curl.exe" :: The authentication key (API Key). :: Get your own by registering at https://app.pdf.co/documentation/api set API_KEY=*********************************** :: Barcode type. See valid barcode types in the documentation https://app.pdf.co/documentation/api/1.0/barcode/generate.html set BARCODE_TYPE=Code128 :: Barcode value set BARCODE_VALUE=qweasd123456 :: Result image file name set RESULT_FILE_NAME=barcode.png :: Prepare URL for `Barcode Generator` API endpoint set QUERY="https://api.pdf.co/v1/barcode/generate?name=%RESULT_FILE_NAME%&type=%BARCODE_TYPE%&value=%BARCODE_VALUE%" :: Perform request and save response to a file %CURL% -# -X GET -H "x-api-key: %API_KEY%" %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
ON-PREMISE VERSION INFORMATION