2017 © Pedro Peláez
 

library php-wkhtmltopdf

Generate PDF from Url. Use an API

image

vdeapps/php-wkhtmltopdf

Generate PDF from Url. Use an API

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-wkhtmltopdf

Call API to generate PDF from HTML, (*1)

Usage


/* * Webserice provide from Docker: docker pull vdeapps/wkhtmltopdf:0.12.5 * Map the 8137 port to 80 port of Docker */ $url = "http://localhost:8137/wk"; $pdf = new Wkhtmltopdf($this->url); $options = $pdf->getPdfOptions(); // set $options $pdf->setPdfOptions($options); // Url to make PDF $pdf->setUrl("http://www.google.com"); // Output name file $pdf->setNameFile('test.pdf'); // Outup directory $pdf->setOutput(__DIR__.'/output'); // Create file $pdf->generate();

The Versions

05/07 2018

dev-master

9999999-dev https://github.com/vdeapps/php-wkhtmltopdf

Generate PDF from Url. Use an API

  Sources   Download

MIT

The Requires

 

The Development Requires

api library pdf vdeapps

05/07 2018

v1.0.0

1.0.0.0 https://github.com/vdeapps/php-wkhtmltopdf

Generate PDF from Url. Use an API

  Sources   Download

MIT

The Requires

 

The Development Requires

api library pdf vdeapps