pdfbucket / pdfbucket
PDFBucket module allows you to integrate easily with the PDFBucket service
Installs: 1 814
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=5.4
Requires (Dev)
- phpunit/phpunit: ~4|~5
This package is not auto-updated.
Last update: 2024-03-16 16:53:03 UTC
README
PdfBucket PHP Library, Allows you to integrate easily with pdfbucket.io.
Installation
To add this package as a local, per-project dependency to your project, simply add a dependency on pdfbucket/pdfbucket
to your project's composer.json
file. Here is a minimal example of a composer.json
file that just defines a dependency on PdfBucket:
{ "require": { "pdfbucket/pdfbucket": "~0.0.1" } }
Usage
try { $pdfBucket = new PdfBucket('<API KEY>', '<API SECRET>', 'api.pdfbucket.io'); $uri = 'https://www.google.com'; $orientation = 'landscape'; $pageSize = 'A4'; $margin = '0px'; $zoom = '1.0'; $encryptedUrl = $pdfBucket->generateUrl($uri, $orientation, $pageSize, $margin, $zoom); $plainUrl = $pdfBucket->generatePlainUrl($uri, $orientation, $pageSize, $margin, $zoom); } catch (PdfBucketException $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; }