2017 © Pedro Peláez
 

library breezy-pdf-lite-php

Php client for breezy-pdf-lite, an HTML -> PDF service powered by Google Chrome (breezypdf.com)

image

jitendra/breezy-pdf-lite-php

Php client for breezy-pdf-lite, an HTML -> PDF service powered by Google Chrome (breezypdf.com)

  • Sunday, July 8, 2018
  • by jitendrakkkk
  • Repository
  • 2 Watchers
  • 2 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

breezy-pdf-lite-php

Php client for breezy-pdf-lite, an HTML -> PDF service powered by Google Chrome., (*1)

Dependencies

  • breezy-pdf-lite, (*2)

    BreezyPDF Lite: HTML to PDF generation as a Service, (*3)

Installation

composer require jitendra/breezy-pdf-lite-php

Usage & Examples

use BreezyPdfLite\BreezyPdfLite;

$breezy = new BreezyPdfLite('http://localhost:5000', 'VERY_RANDOM_SECRET');

// Gets pdf string for given html content
$breezy->readHtml('

Hello, world!

') ->getPdfAsString(); // Saves converted pdf file locally for given html content $breezy->readHtml('

Hello, world!

') ->getPdfSavedAs('/home/ubuntu/hello.pdf'); // Saves converted pdf file locally for given local html/view file $breezy->readHtmlFromFile('/home/ubuntu/hello.html') ->getPdfSavedAs('/home/ubuntu/hello.pdf'); // Saves converted pdf file locally for given remote html page/view $breezy->readHtmlFromRemote('https://example.com') ->getPdfSavedAs('/home/ubuntu/example.pdf'); // Saves converted pdf file locally for given local html page/view // Also accepts additional print options, ref https://github.com/jitendra-1217/breezy-pdf-lite-php/blob/master/src/Options.php for all available options // Please note that these options can be provided as part of html meta tags from the html page/view itself (as in /example/2.php file) // Following options are actually appended in html content as meta tags $breezy->withOptions(['height' => 5, 'width' => 5]) ->readHtmlFromFile(__DIR__.'/input/example.html') ->getPdfSavedAs(__DIR__.'/output/example.pdf');

Additionally, refer to /examples/* folder for quick start & experiment with options etc., (*4)

The Versions

08/07 2018

dev-master

9999999-dev

Php client for breezy-pdf-lite, an HTML -> PDF service powered by Google Chrome (breezypdf.com)

  Sources   Download

The Requires

 

The Development Requires

by jitendra-1217

08/07 2018

1.0

1.0.0.0

Php client for breezy-pdf-lite, an HTML -> PDF service powered by Google Chrome (breezypdf.com)

  Sources   Download

The Requires

 

The Development Requires

by jitendra-1217