PHP code example of umanit / document-generator-bundle
1. Go to this page and download the library: Download umanit/document-generator-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
umanit / document-generator-bundle example snippets
$generator = $container->get('umanit_document_generator.document_generator');
// Get a PNG of https://www.google.fr
$image = $generator->generatePngFromUrl('https://www.google.fr');
// Get a PDF from a HTML code source
$pdf = $generator->generatePdfFromHtml('<html><body>Hello World!</body></html>');