2017 © Pedro Peláez
 

library pdfbucket

PDFBucket module allows you to integrate easily with the PDFBucket service

image

pdfbucket/pdfbucket

PDFBucket module allows you to integrate easily with the PDFBucket service

  • Saturday, July 30, 2016
  • by pastuxso
  • Repository
  • 2 Watchers
  • 0 Stars
  • 236 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

PdfBucket

Build Status, (*1)

PdfBucket PHP Library, Allows you to integrate easily with pdfbucket.io., (*2)

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:, (*3)

  {
    "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";
}

The Versions

30/07 2016

dev-master

9999999-dev https://github.com/pdfbucket/pdfbucket-php

PDFBucket module allows you to integrate easily with the PDFBucket service

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

pdf html2pdf