PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

Related tags

PDF snappy
Overview

Snappy

Travis CI Build Status AppVeyor CI Build Status Scrutinizer Code Quality

Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based wkhtmltopdf and wkhtmltoimage available on OSX, linux, windows.

You will have to download wkhtmltopdf 0.12.x in order to use Snappy.

Please, check FAQ before opening a new issue. Snappy is a tiny wrapper around wkhtmltox, so lots of issues are already answered, resolved or wkhtmltox ones.

Following integrations are available:

Installation using Composer

$ composer require knplabs/knp-snappy

Usage

Initialization

<?php

require __DIR__ . '/vendor/autoload.php';

use Knp\Snappy\Pdf;

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');

// or you can do it in two steps
$snappy = new Pdf();
$snappy->setBinary('/usr/local/bin/wkhtmltopdf');

Display the pdf in the browser

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
header('Content-Type: application/pdf');
echo $snappy->getOutput('http://www.github.com');

Download the pdf from the browser

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="file.pdf"');
echo $snappy->getOutput('http://www.github.com');

Merge multiple urls into one pdf

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
header('Content-Type: application/pdf');
header('Content-Disposition: attachment; filename="file.pdf"');
echo $snappy->getOutput(array('http://www.github.com','http://www.knplabs.com','http://www.php.net'));

Generate local pdf file

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
$snappy->generateFromHtml('<h1>Bill</h1><p>You owe me money, dude.</p>', '/tmp/bill-123.pdf');

Pass options to snappy

// Type wkhtmltopdf -H to see the list of options
$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
$snappy->setOption('disable-javascript', true);
$snappy->setOption('no-background', true);
$snappy->setOption('allow', array('/path1', '/path2'));
$snappy->setOption('cookie', array('key' => 'value', 'key2' => 'value2'));
$snappy->setOption('post', array('key' => 'value'));
$snappy->setOption('cover', 'pathToCover.html');
// .. or pass a cover as html
$snappy->setOption('cover', '<h1>Bill cover</h1>');
$snappy->setOption('toc', true);
$snappy->setOption('cache-dir', '/path/to/cache/dir');

Reset options

Options can be reset to their initial values with resetOptions() method.

$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
// Set some options
$snappy->setOption('copies' => 4);
// ..
// Reset options
$snappy->resetOptions();

wkhtmltopdf binary as composer dependencies

If you want to download wkhtmltopdf and wkhtmltoimage with composer you add to composer.json:

$ composer require h4cc/wkhtmltopdf-i386 0.12.x
$ composer require h4cc/wkhtmltoimage-i386 0.12.x

or this if you are in 64 bit based system:

$ composer require h4cc/wkhtmltopdf-amd64 0.12.x
$ composer require h4cc/wkhtmltoimage-amd64 0.12.x

And then you can use it

<?php

use Knp\Snappy\Pdf;

$myProjectDirectory = '/path/to/my/project';

$snappy = new Pdf($myProjectDirectory . '/vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386');

// or

$snappy = new Pdf($myProjectDirectory . '/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64');

N.B. These static binaries are extracted from Debian7 packages, so it might not be compatible with non-debian based linux distros

Some use cases

If you want to generate table of contents and you want to use custom XSL stylesheet, do the following:

<?php
$snappy = new Pdf('/path/to/binary');

$snappy->setOption('toc', true);
$snappy->setOption('xsl-style-sheet', 'http://path/to/stylesheet.xsl') //or local file;

$snappy->generateFromHtml('<p>Some content</p>', 'test.pdf');

Bugs & Support

If you found a bug please fill a detailed issue with all the following points. If you need some help, please at least provide a complete reproducer so we could help you based on facts rather than assumptions.

  • OS and its version
  • Wkhtmltopdf, its version and how you installed it
  • A complete reproducer with relevant php and html/css/js code

If your reproducer is big, please try to shrink it. It will help everyone to narrow the bug.

Maintainers

KNPLabs is looking for maintainers (see why).

If you are interested, feel free to open a PR to ask to be added as a maintainer.

We’ll be glad to hear from you :)

This library is maintained by the following people (alphabetically sorted) :

@alexpozzi

Credits

Snappy has been originally developed by the KnpLabs team.

Comments
  • Generate PDF file without outputting

    Generate PDF file without outputting

    Using Laravel 4 with wkhtmltopdf installed via Homebrew.

    Is it possible to generate the pdf and store it without doing anything further?

    This would be really useful where other non-snappy processing needs to take place. E.g Creating a pdf file, then creating some other project files. Zipping them up and then I can output the zip file myself for download.

    opened by ghost 43
  • Symfony\Component\Process\Exception\ProcessTimedOutException on PDF generation

    Symfony\Component\Process\Exception\ProcessTimedOutException on PDF generation

    I'm using Laravel Snappy package, and I think the problem is from Snappy itself. In my localhost (Windows 7 32bit) wkhtmltopdf 0.12.2.3 (with patched qt) everything is working fine. In the deployment machine (Windows Server 2012 R2 64bit) wkhtmltopdf 0.12.2.4 64bit, it takes about 60 seconds without any response or error... Good news I'm using Bugsnag service to track bugs and errors, and this is what I get: Symfony\Component\Process\Exception\ProcessTimedOutExceptionGET /gca/public/demandes-achat/1138/pdf The process "C:\xampp\htdocs\gca/wkhtmltopdf/bin/wkhtmltopdf.exe --lowquality "C:\Windows\TEMP\knp_snappy55a4f9ff7f5862.10272127.html" "C:\Windows\TEMP\knp_snappy55a4f9ff7fab55.21457299.pdf"" exceeded the timeout of 60 seconds. But when I tested to generate pdf from a website like google, it works fine !, with a plain html it wroks fine too. I'm getting crazy here because it's working on my dev machine Win 7 and my computer Win 8.1 with difference wkhtmltopdf version for sure...

    Btw, I'm using Bootstrap.min.css and Fontawesome.css

    Please help me it's urgent.

    opened by sn0opr 33
  • Need Symfony to work ?

    Need Symfony to work ?

    I installed the package in my webroot (Ubuntu) and correctly inserted php code in my wordpress plugin. But, generating pdf (whichever method : generateFromHtml,getOutputFromHtml, getOutput, ...) i get the following error :

    `PHP Fatal error: Class 'Symfony\Component\Process\Process' not found in /var/www/snappy-master/src/Knp/Snappy/AbstractGenerator.php on line 467``

    Do i need Symfony to use snappy ? Thank you very much

    opened by crouti 27
  • How to make it work on Windows

    How to make it work on Windows

    Hello guys

    I've been trying to put Snappy to work on Windows (IIS) with no success.

    What I've done:

    • Installed wkhtmltopdf-0.9.9-installer.exe from http://code.google.com/p/wkhtmltopdf/downloads/list
    • Downloaded snappy and copied the src folder to web folder.

    My code:

    getOutput('http://www.github.com'); ?>

    Result: Shows one pdf file to open or save, but it's corrupted.

    P.S: In the command line wkhtmltopdf works well.

    I'm doing something wrong?

    Thanks in advance, Pete

    windows 
    opened by PeteYorn 22
  • ContentNotFoundError on pdf generation

    ContentNotFoundError on pdf generation

    Hello,

    I'm currently having the following error when trying to generate a pdf from html:

    The exit status code '1' says something went wrong:
    stderr: "Loading pages (1/6)
    [> ] 0%
    [======> ] 10%
    [=======> ] 12%
    Warning: Failed to load file:///assets/admin/scripts/bootstrap.js (ignore)
    Warning: SSL error ignored
    [=================> ] 29%
    [=====================> ] 35%
    [============================================================] 100%
    Counting pages (2/6) 
    [============================================================] Object 1 of 1
    Resolving links (4/6) 
    [============================================================] Object 1 of 1
    Loading headers and footers (5/6) 
    Printing pages (6/6)
    [> ] Preparing
    [============================================================] Page 1 of 1
    Done 
    Exit with code 1 due to network error: ContentNotFoundError
    "
    stdout: ""
    command: /usr/local/bin/wkhtmltopdf --lowquality '/var/tmp/knp_snappy55c0b954e4cf05.58613037.html' '/var/tmp/knp_snappy55c0b954e4dfd4.48017554.pdf'.
    

    Did I miss something ?

    Thanks

    opened by nWidart 19
  • No success trying to use a custom font

    No success trying to use a custom font

    Hello,

    I tried everything I know to have my PDF displaying with Open Sans. I added it with CDN at first :

    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
    

    Then tried in a local file :

    @font-face {
            font-family: "Open Sans";
            src: url("http://myserver.com/OpenSans-Regular.ttf") format('truetype');
        }
    

    Then tried with base64 encoded font... When opening the HTML page all is right, but when I try to generate the PDF, by getOutput or by generate, it simply doesn't work, the font is never the wanted Open Sans.

    Thanks ahead for any help !

    Waiting for OP's input Need help 
    opened by JerryBels 16
  • Bad PDF generated, PDF is generated but broken and cannot be oppened

    Bad PDF generated, PDF is generated but broken and cannot be oppened

    I get the PDF downloaded instantly, and it's not empty either (arround 3KB, single page) but upon opening chrome says "failed to load" and adobe reader says the document is damaged and cannot be opened. I also noticed that it only gives me the download when I have PHP display errors ON, with them off for some reason the page (The file below) is not available and cannot load but other parts of my application still work witch means my PHP server works (I'm using wamp). Here's the code:

    require_once '/vendor/knplabs/knp-snappy/src/autoload.php';
    
    use Knp\Snappy\Pdf;
    
    $snappy = new Pdf('/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64');
    
    header('Content-Type: application/pdf');
    header('Content-Disposition: attachment; filename="file.pdf"');
    echo $snappy->getOutput('http://localhost/Ponudomat%20wSnappy/printRdy.php');
    
    opened by DomiQ 15
  • footer-left encoding/umlaut problems

    footer-left encoding/umlaut problems

    Hi,

    I'm trying to add a footer with an umlaut to my document:

    $snappy->setOption('footer-left','ÖSTERREICH');

    Unfortunately the Ö isn't there... I've tried various combinations of the following:

    $snappy->setOption('footer-left',utf8_encode('ÖSTERREICH')); $snappy->setOption('footer-left',utf8_decode('ÖSTERREICH'));

    Even trying to add the Ö via the correspondig utf8 escaped character. It works fine on Windows but not on my Linux server Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64. The php file containing the code is encoded in utf8, I've added the encoding option to snappy, the header charset (utf8) and even the meta charset in the html files. I'm really out of ideas!

    Thanks!

    Waiting for OP's input locale stale 
    opened by moritzgloeckl 14
  • Always return options to default

    Always return options to default

    hasHtmlHeader and hasHtmlFooter must return to their default state each time handleOptions() is called. Otherwise, if you generate 2 pdf files within 1 request (1 with a footer and 1 without it will throw an error).

    Consider the following:

    $snappyPdf->generateFromHtml($pdf1Html, $pdf1File, array(
        'page-size'    => 'A5',
        'margin-right' => 0,
        'margin-left'  => 0,
        'footer-html'  => $footer
    ), true);
    
    $snappyPdf->generateFromHtml($pdf2Html, $pdf2File, array(
        'page-size'    => 'A5',
        'margin-right' => 0,
        'margin-left'  => 0
    ), true);
    
    

    When the second pdf is generated the following error is generated:

    Notice: Undefined index: footer-html in /knplabs/knp-snappy/src/Knp/Snappy/Pdf.php line 66

    This is because the first file generated is changing the protected $hasHtmlFooter value to true but there is no footer available.

    opened by trsteel88 13
  • Strange Exception while generating PDF

    Strange Exception while generating PDF

    I've load the current wkhtmltopdf-0.9.9-OS-X.i368 from the developer page (http://code.google.com/p/wkhtmltopdf/) and install SnappyBundle as described at install guide. Everything looks fine but when I try to generate an pdf throw the snappy bundle I got following error:

    The exit status code '5' says something went wrong:
    stderr: "dyld: Symbol not found: __cg_jpeg_resync_to_restart
    Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    Expected in: /Applications/MAMP/Library/lib/libJPEG.dylib
    in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    "
    stdout: ""
    command: /usr/bin/wkhtmltopdf 'http://www.google.at' '/Applications/MAMP/htdocs/cosamui/web/data/test.pdf'.
    500 Internal Server Error - RuntimeException 
    ´´´´
    
    When I run the some command from the terminal: command: /usr/bin/wkhtmltopdf 'http://www.google.at' '/Applications/MAMP/htdocs/cosamui/web/data/test.pdf' it works as expected.
    
    What can I do to solve this issue? Anyone other the same problem?
    
    opened by sensi 13
  • Strange encoding after upgrading

    Strange encoding after upgrading

    I just upgraded from 0.3.3 to 0.4 and the encoding of my PDF is know very strange. After debugging i noticed that when i change the f29edc4e53429deec2b394926a8f743a0ad2e28e commit back it works like a charm again.

    Strange encoding schermafbeelding 2015-06-17 om 17 13 43

    opened by cmodijk 12
  • Feature/drop php 7, add strong types

    Feature/drop php 7, add strong types

    Hi. This PR has BC breaks because of the strong types. Maybe some needs to be relaxed. This will target a new major version. I am ware that there is a 2.0.x branch. But that is 2 years old. So i was not sure, and decided to start with master.

    Maybe maintainers can create a new branch for a major version, and the wanted changes from 2.0.x can be cherry picked from there.

    Greetz

    opened by Chris53897 0
  • Deprecated: Return type of Symfony\Component\Process\Process::getIterator

    Deprecated: Return type of Symfony\Component\Process\Process::getIterator

    I'm getting below error in PHP 8.1:

    ( ! ) Deprecated: Return type of Symfony\Component\Process\Process::getIterator($flags = 0) should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/autouonline/vendor/symfony/process/Process.php on line 567

    I'm using v1.4.1, looks like it's not compatible with PHP 8.0.

    Any suggestions please?

    Thanks!

    opened by pjcvijay 0
  • wkhtmltopdf

    wkhtmltopdf

    Hey people,

    I've a problem with your lib. In fact, wkhtmltopdf is not supported since Alpine3.15

    QtWebKit was removed due to lack of upstream support qt5-qtwebkit, kdewebkit, wkhtmltopdf, and py3-pdfkit have been removed due to known vulnerabilities and lack of upstream support for qtwebkit. Other programs have been adjusted to use qt5-qtwebengine where appropriate. The most direct replacement for wkhtmltopdf is weasyprint, which is available in the Alpine Linux community repository. puppeteer and pandoc are also options, depending on your needs. See #12888 for more information.

    Do you work for a new binary system ? like weasyprint ?

    opened by GuigZ- 2
  • Set Option UTF-8 not responding

    Set Option UTF-8 not responding

    Good day, I have a web page which I need to create a PDF. I'm new to Snappy, so everything works well and the PDF gets generated but the posted values from DB is not showing correctly since the characters are in Persian, I appreciate any help. Thanks

    pdftest.php file:

    <?php
    require __DIR__ . '/snappy/vendor/autoload.php';
    
    use Knp\Snappy\Pdf;
    $billno = $_POST["billno"];
    $custname = $_POST["custname"];
    $balance = $_POST["balance"];
    $address = $_POST["address"];
    $phone = $_POST["phone"];
    $merchname = $_POST["merchname"];
    $merchqty = $_POST["merchqty"];
    $merchdetails = $_POST["merchdetails"];
    $snappy = new Pdf('C://"Program Files/"/wkhtmltopdf/bin/wkhtmltopdf.exe');
    header('Content-Type: application/pdf');
    $snappy->setOption('page-size', 'A5');
    $snappy->setOption('no-background',false);
    $snappy->setOption('margin-top', '1');
    $snappy->setOption('margin-bottom', '0');
    $snappy->setOption('margin-left', '0');
    $snappy->setOption('margin-right', '0');
    $snappy->setOption('encoding', 'UTF-8');
    $snappy->setOption('post', array('billno' => $billno,
                                     'custname' => $custname,
                                     'balance' => $balance,
                                     'address' => $address,
                                     'phone' => $phone,
                                     'merchname' => $merchname,
                                     'merchqty' => $merchqty,
                                     'merchdetails' => $merchdetails
                                    ));
    echo $snappy->getOutput('http://www.bnfgallery.ir/pdf.php');
    

    The output pdf file image:

    snappy

    stale 
    opened by parkho 1
  • Any options to generate image PDF

    Any options to generate image PDF

    Hello,

    Is there any option to generate image PDF using any internal method ? I can't find any options in wkhtmltopdf docs.

    Is it possible to use CSS or javascript for that ?

    wkhtmltopdf generates non-image PDF as default.

    Thanks a lot!

    stale 
    opened by honeycube 1
Releases(v1.4.1)
  • v1.4.1(Jan 7, 2022)

    What's Changed

    • fix: logger aware interface issue by @alexpozzi in https://github.com/KnpLabs/snappy/pull/449

    Full Changelog: https://github.com/KnpLabs/snappy/compare/v1.4.0...v1.4.1

    Source code(tar.gz)
    Source code(zip)
  • v1.4.0(Jan 5, 2022)

    Hi!

    This is a small release that allows symfony/process version 6.

    What's Changed

    • feature: allow Symfony 6 @garak in https://github.com/KnpLabs/snappy/pull/444

    Full Changelog: https://github.com/KnpLabs/snappy/compare/v1.3.1...v1.4.0

    Source code(tar.gz)
    Source code(zip)
  • v1.3.1(Oct 22, 2021)

    What's Changed

    • build: migrate to github actions by @alexpozzi in https://github.com/KnpLabs/snappy/pull/437
    • fix: function signatures incompatibilities with previous version by @alexpozzi in https://github.com/KnpLabs/snappy/pull/439

    Full Changelog: https://github.com/KnpLabs/snappy/compare/v1.3.0...v1.3.1

    Source code(tar.gz)
    Source code(zip)
  • v1.3.0(Oct 21, 2021)

    What's Changed

    • Add @alexpozzi as maintainer by @alexpozzi in https://github.com/KnpLabs/snappy/pull/384
    • Added code of conduct and link to it in contributing file by @eveyonline in https://github.com/KnpLabs/snappy/pull/386
    • Add phpstan level 4 CI check by @alexpozzi in https://github.com/KnpLabs/snappy/pull/387
    • Add contributing guidelines by @alexpozzi in https://github.com/KnpLabs/snappy/pull/388
    • deleted enforcement chapter by @eveyonline in https://github.com/KnpLabs/snappy/pull/390
    • Increase phpstan level to 8 by @alexpozzi in https://github.com/KnpLabs/snappy/pull/391
    • Add csfixer ci check by @alexpozzi in https://github.com/KnpLabs/snappy/pull/392
    • Revert types to avoid breaking snappy bundle compatibility by @alexpozzi in https://github.com/KnpLabs/snappy/pull/405
    • Allow newer versions of the psr/log package by @mbabker in https://github.com/KnpLabs/snappy/pull/425

    New Contributors

    • @eveyonline made their first contribution in https://github.com/KnpLabs/snappy/pull/386
    • @mbabker made their first contribution in https://github.com/KnpLabs/snappy/pull/425

    Full Changelog: https://github.com/KnpLabs/snappy/compare/v1.2.1...v1.3.0

    Source code(tar.gz)
    Source code(zip)
  • v1.2.1(Jan 20, 2020)

    • Remove PHP 5.6 ToDo not longer needed #381
    • Explicitly implement LoggerAwareInterface #383
    • Add resetOption method #375

    Thanks to @AdrianHL, @jmsfwk and @qroques for their work!

    Source code(tar.gz)
    Source code(zip)
  • v1.2.0(Dec 2, 2019)

    Hi!

    This release adds Symfony 5 support, as well as a few other minor changes: https://github.com/KnpLabs/snappy/compare/v1.1.0...v1.2.0

    Enjoy!

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Dec 14, 2018)

    • Add bypass-proxy-for option added in 0.12.3 (see #302)
    • Fix symfony/process 4.2 deprecation notice (see #331)
    • Drop suppor for unmaintained PHP versions (5.6 and 7.0, see #337
    • Drop support for unmaintained symfony/process versions (see #337)
    • Pass on error code in checkProcessStatus (see #328)

    Thanks to @joshpme, @drigani, @fbourigault, @NiR- and @leimd for their work.

    Source code(tar.gz)
    Source code(zip)
  • v1.0.4(Jan 22, 2018)

  • v1.0.3(Dec 6, 2017)

    • Add support to Symfony 4 (#290)
    • Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase (#287)

    Credits go to @michaelperrin and @carusogabriel.

    Source code(tar.gz)
    Source code(zip)
  • v1.0.2(Oct 4, 2017)

    1.0.2

    A BC break was introduced in v1.0.0: using objects castable to string with a cyclic dependency to the generator as option value would break setOption() / setOptions() methods.

    • Use logger context rather than var_export to log option values (see #283)

    Credits go to: @barryvdh.

    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Sep 21, 2017)

  • v1.0(Sep 20, 2017)

    • Don't check if it's a file when the path is bigger than PHP_MAXPATHLEN (see #224)
    • Pass image-dpi and image-quality options as integer (see #251)
    • Improve documentation readability (see #255)
    • Add logging capabilities to generators (see #264)
    • Add some more frequent questions/issues to the FAQ (see #263, #265, #266)

    Credits go to: @wouterbulten, @martinssipenko, @Herz3h, @akovalyov, @NiR-.

    Source code(tar.gz)
    Source code(zip)
  • v0.5.0(Jun 16, 2017)

    • Drop support for PHP v5.3, v5.4 and v5.5
    • Add support for PHP v7.1
    • Little docs fixes
    • Add quiet option to Image generator
    • Add keep-relative-links and resolve-relative-links
    Source code(tar.gz)
    Source code(zip)
  • 0.4.3(Nov 17, 2015)

  • 0.3.3(Mar 11, 2015)

  • 0.3.2(Dec 18, 2014)

  • 0.3.1(Nov 26, 2014)

  • 0.3.0(Nov 26, 2014)

    • Now remove only temporary files created by the generator, on __destruct()
    • Added a possibility to specify a custom temporary folder with a setTemporaryFolder() method
    • Updated composer install instructions
    Source code(tar.gz)
    Source code(zip)
  • 0.1.2(Sep 6, 2013)

Owner
KNP Labs
Happy Awesome Developers
KNP Labs
PHP library allowing PDF generation or snapshot from an URL or an HTML page. Wrapper for Kozea/WeasyPrint

PhpWeasyPrint PhpWeasyPrint is a PHP library allowing PDF generation from an URL or an HTML page. It's a wrapper for WeasyPrint, a smart solution help

Pontedilana 23 Oct 28, 2022
Magento 2 Module for creating PDF's based on wkhtmltopdf

Magento 2 PDF generator Magento 2 module to ease the pdf generation using wkhtmltopdf features Installation composer require "staempfli/magento2-modul

Stämpfli AG 56 Jul 7, 2022
A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface

PHP WkHtmlToPdf PHP WkHtmlToPdf provides a simple and clean interface to ease PDF and image creation with wkhtmltopdf. The wkhtmltopdf and - optionall

Michael Härtl 1.5k Dec 25, 2022
Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.

Gravity PDF Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using the pop

Gravity PDF 90 Nov 14, 2022
Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2

Magento 2 Invoice PDF Generator - helps you to customize the pdf templates for Magento 2. If you have an enabled template and a default template for the store you need your template the system will print the pdf template.

EAdesign 64 Oct 18, 2021
PHP library generating PDF files from UTF-8 encoded HTML

mPDF is a PHP library which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF (see CREDITS), with a number of enhancement

null 3.8k Jan 2, 2023
HTML to PDF converter for PHP

Dompdf Dompdf is an HTML to PDF converter At its heart, dompdf is (mostly) a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is

null 9.3k Jan 1, 2023
Simple wrapper package around MPDF's setProtection method that allows you to set password on PDF files

Laravel PDF Protect (fork) Simple wrapper package around MPDF's setProtection method that allows you to set password on PDF files. Installation You ca

Raphael Planer 2 Jan 23, 2022
Convert HTML to PDF using Webkit (QtWebKit)

wkhtmltopdf and wkhtmltoimage wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webk

wkhtmltopdf 13k Jan 4, 2023
Convert html to an image, pdf or string

Convert a webpage to an image or pdf using headless Chrome The package can convert a webpage to an image or pdf. The conversion is done behind the sce

Spatie 4.1k Jan 1, 2023
Laravel package to convert HTML to PDF, supporting multiple drivers.

eve/pdf-converter A Laravel package to help convert HTML to PDF. Supports multiple drivers. Requirements and Installation eve/pdf-converter requires L

eve.io 11 Feb 15, 2022
Convert HTML to PDF using Webkit (QtWebKit)

wkhtmltopdf and wkhtmltoimage wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webk

wkhtmltopdf 13k Jan 9, 2023
plugin de criação de PDF através do HTML fácil

pluginmpdf plugin de criação de PDF através do HTML Para inciar nosso pluginmpdf devemos instalar a lib abaixo. mPDF is a PHP library which generates

EAD TUTORIA 2 Mar 24, 2022
Official clone of PHP library to generate PDF documents and barcodes

TCPDF PHP PDF Library Please consider supporting this project by making a donation via PayPal category Library author Nicola Asuni [email protected] co

Tecnick.com LTD 3.6k Jan 6, 2023
TCPDF - PHP PDF Library - https://tcpdf.org

tc-lib-pdf PHP PDF Library UNDER DEVELOPMENT (NOT READY) UPDATE: CURRENTLY ALL THE DEPENDENCY LIBRARIES ARE ALMOST COMPLETE BUT THE CORE LIBRARY STILL

Tecnick.com LTD 1.3k Dec 30, 2022
Pdf and graphic files generator library written in php

Information Examples Sample documents are in the "examples" directory. "index.php" file is the web interface to browse examples, "cli.php" is a consol

Piotr Śliwa 335 Nov 26, 2022
PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.

PdfParser Pdf Parser, a standalone PHP library, provides various tools to extract data from a PDF file. Website : https://www.pdfparser.org Test the A

Sebastien MALOT 1.9k Jan 2, 2023
Official clone of PHP library to generate PDF documents and barcodes

TCPDF PHP PDF Library Please consider supporting this project by making a donation via PayPal category Library author Nicola Asuni [email protected] co

Tecnick.com LTD 3.6k Dec 26, 2022
A PHP tool that helps you write eBooks in markdown and convert to PDF.

Artwork by Eric L. Barnes and Caneco from Laravel News ❤️ . This PHP tool helps you write eBooks in markdown. Run ibis build and an eBook will be gene

Mohamed Said 1.6k Jan 2, 2023