2017 © Pedro Peláez
 

library html2pdf

php wrapper to wkhtmltopdf

image

vixriihi/html2pdf

php wrapper to wkhtmltopdf

  • Tuesday, January 27, 2015
  • by vixriihi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Html to pdf

This is a php wrapper for wkhtmltopdf., (*1)

Requirements

Basic usage

use Vixriihi\Html2Pdf;

$html = '

Working

'; $html2pdf = new Html2Pdf(); $pdf = $html2pdf->convert($html); header("Content-type: application/octet-stream"); header("Content-disposition: attachment;filename=hmtl.pdf"); echo $pdf;

All options for wkhtmltopdf are accessible with method setParameter, (*2)

$html2pdf = new Html2Pdf();
$html2pdf->setParam('page-size','A3');
$html2pdf->setParam('dpi',96);

The Versions

27/01 2015

dev-master

9999999-dev

php wrapper to wkhtmltopdf

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Ville-Matti Riihikoski