2017 © Pedro Peláez
 

library htmltopdf

HTML to PDF PHP wrapper with executable files

image

alberon/htmltopdf

HTML to PDF PHP wrapper with executable files

  • Sunday, November 22, 2015
  • by alberon
  • Repository
  • 6 Watchers
  • 2 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

PHP wrapper for wkhtmltopdf

PHP wrapper for wkhtmltopdf http://wkhtmltopdf.org/downloads.html, (*1)

Install

  1. Install Composer:, (*2)

    curl -s https://getcomposer.org/installer | php
    
  2. Add to your composer.json file:, (*3)

    composer require alberon/htmltopdf
    
  3. Usage Instructions:, (*4)

    // Require the PDF class at the top of the file
    require ABSPATH . '/../vendor/autoload.php';
    use Alberon\htmltopdf\PDF;
    
    // Open up an ob buffer to capture all the following html
    ob_start();
    // HTML CODE
    // Close the ob buffer and get the html into a variable
    $html = ob_get_clean();
    
    // Setup the PDF class with the generated html
    $pdf = new PDF($html);
    
    // Set wkhtmltopdf version
    $pdf->setVersion('amd64');
    
    // Set whether to include detailed errors or a generic error
    // $pdf->showErrors();
    $pdf->hideErrors();
    
    // Output the PDF
    $pdf->outputAsPDF('my_filename');
    

The Versions

22/11 2015

dev-master

9999999-dev https://github.com/alberon/htmltopdf

HTML to PDF PHP wrapper with executable files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dave Miller
by Tony Lopez

pdf binary wkhtmltopdf htmltopdf

08/09 2015

1.0.1

1.0.1.0 https://github.com/alberon/htmltopdf

HTML to PDF PHP wrapper with executable files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dave Miller
by Tony Lopez

pdf binary wkhtmltopdf htmltopdf

08/09 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/alberon/htmltopdf

HTML to PDF PHP wrapper with executable files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dave Miller
by Tony Lopez

pdf binary wkhtmltopdf htmltopdf

08/09 2015

1.0.0

1.0.0.0 https://github.com/alberon/htmltopdf

HTML to PDF PHP wrapper with executable files

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

by Dave Miller
by Tony Lopez

pdf binary wkhtmltopdf htmltopdf