Online API benefits:

  • REST Web API available both as GET and POST;
  • Can be used from PHP, Javascript, Python, .NET and even from cURL;
  • HTML to PDF generation with support for CSS, fonts, images, Moustache and Handlebars templates;
  • PDF processing: PDF to CSV, PDF to TXT, PDF to JSON, PDF To XML, PDF to HTML, PDF to PNG, PDF to JPG, PDF splitting and PDF merging
  • Secure built-in file storage with public and private files with SSL security;
  • PDF to PNG, PDF To JPG, PDF to TIFF rendering powered by ByteScout high quality rendering engine;
  • Barcode generation and Barcode reading with  QR Code, Code 128, Code 39, PDF417, Code 39, Code 128 and many many others supported. Can also read barcodes from PDF;
  • Spreadsheets: CSV to JSON, XLS to JSON powered by our own high performance spreadsheet enginel
  • Pay per month, cancel at any time, no annual contracts required.

HTML to PDF

cURL:

curl https://bytescout.io/api/v1/htmltopdf/convert \
-d apiKey=YOUR_API_KEY \ 
-d input=http://example.com

PHP

$input = 'some html code with CSS and images to convert or URL';
require_once('BytescoutApi/autoload.php'); 
$barcodeApiInstance = new Bytescout\Client\Api\HTMLToPDFApi(); 
$result = $barcodeApiInstance->hTMLToPDFGetHtmlToPdf('YOUR_API_KEY', $propertiesTitle, $propertiesOrientation, $propertiesPageSizeWidth, $propertiesPageSizeHeight, $propertiesPageSizeUnit, $propertiesMarginsBottom, $propertiesMarginsLeft, $propertiesMarginsRight, $propertiesMarginsTop, $propertiesMarginsUnit, $propertiesPrintBackground, $propertiesHeaderHTML, $propertiesFooterHTML, $propertiesTemplateData, $outputType, $input, $inputType);
header('Content-Type: application/pdf');
echo $result;

Barcode Generator

 curl /api/v1/barcode/generate \
-d apiKey=YOUR_API_KEY \
-d properties.symbology=QRCode \
-d input=http://example.com \

Barcode Reader

 curl /api/v1/barcodereader/read \
-d apiKey=YOUR_API_KEY \
-d properties.barcodeTypesToFind.qrCode=1 \
-d input=http://example.com/mydocument.pdf

PDF To CSV

 curl /api/v1/pdfextractor/csvextractor/extract \
-d apiKey=YOUR_API_KEY \
-d input=http://example.com/table.pdf

PDF To XML

 curl /api/v1/pdfextractor/xmlextractor/extract \
-d apiKey=YOUR_API_KEY \
-d input=http://example.com/table.pdf