The Pdf4me Client API is a PHP package which connects to its highly scalable SaaS cloud service with many functionalities to solve your document and PDF requirements. The SaaS API provides expert functionality to convert, optimize, compress, produce, merge, split, ocr, enrich, archive, rotate, protect, validate, repair, print documents and PDF's.
Feature | Description |
---|---|
Optimize | PDF's can often be optimized by removing structural redundancy. This leads to much smaller PDF's. |
Merge | Multiple PDF's can be merged into single optimized PDFs. |
Split | A PDF can be splitted into multiple PDF's. |
Extract | From a PDF extract multiple pages into a new document. |
OCR | Create a searchable OCR Document out of your scans or images. |
Images | Extract images from your document, can be any type of document. |
Create Pdf/A | Create a archive conform PDF/A including xmp Metadata. |
Convert to PDF | Convert your documents from any format to a proper PDF document. |
Stamp | Stamp your document with text or images. |
Rotate | Rotates pages in your document. |
Protect | Protects or Unlocks your document with given password. |
Validation | Validate your document for PDF/A compliance. |
Repair | Repairs your document. |
Barcode | Reads all types of barcode embedded in document or creates them |
The Pdf4me PHP API client can be installed using Composer.
To install run composer require pdf4me/pdf4me_api_client_php:"dev-master"
To get started get a Token by dropping us an email or registering in our portal.
The Token is required for Authentication. The Pdf4me Client Api provides you already with the necessary implementation. You need only to get an instance for the Pdf4meClient as shown in the sample below.
// load Composer
require 'vendor/autoload.php';
use Pdf4me\API\HttpClient as pdf4meAPI;
$token = "6fg********jdS"; // replace this with your token
$apiurl = 'https://api**.***.com';
$client = new pdf4meAPI($token,$apiurl); // $token is compulsary and $apiurl are optional
# The pdf4meClient object delivers the necessary authentication when instantiating the different pdf4meClients such as for instance Merge
$pdfMerge = $client->pdf4me()->merge([
"documents"=> [
[
'name' => 'test1.pdf',
'docData' => $client->getFileData('/var/www/test1.pdf')
], [
'name' => 'test.pdf',
'docData' => $client->getFileData('/var/www/test.pdf')
]]
]);
print_r($pdfMerge);
Please visit our documentation for more information about all the functionalities provided and on how to use pdf4me.
Those who are looking for PDF4me online tool can find it at PDF4me.com