snappdf icon indicating copy to clipboard operation
snappdf copied to clipboard

Convert webpages or HTML into the PDF file using Chromium-powered browsers.

Results 12 snappdf issues
Sort by recently updated
recently updated
newest added

Using SnapPDF with invoiceninja but now Chinese fonts set in my instance are missing. I found no issues relating to font installation or selection for this pdf generator

Attempting to generate a simple file fails `vendor/bin/snappdf convert --html=“” g.pdf` ... ``` In Snappdf.php line 232: The command “‘/vendor/beganovich/snappdf/versions/1007374-Mac/chrome-mac/Chromium.app’ ‘--he adless’ ‘--disable-gpu’ ‘--disable-translate’ ‘--disable-extensions’ ‘--disable-sync’ ‘--disable-background-networking’ ‘--disa ble-software-rasterizer’ ‘--disable-default-apps’...

The latest version of chrome downloaded by Snap is broken. It no longer renders js/css It seem the version that is downloaded is from bleeding edge, perhaps it would be...

good first issue

https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF

documentation
enhancement
accepted-feature

Love the code! I have searched for WEEKS to find code to add to my web project, which is a scheduling and billing app, that will export php coded invoices...

more info needed

I got this working on my local Windows machine, but after uploading to my live site, I was getting an unhelpful Symfony error: `The process has been signalled with signal...

It would be nice to give users the option to sanitize HTML input to prevent any leaks from the system. Example: ```php function sanitizeHTML($html) { $html = preg_replace('/

enhancement
good first issue

It would be awesome if we could use a docker container for the chromium instance so that it can be kept up-to-date more easily and the dependencies won't cause issues...

enhancement

Hello I am getting an error: Fatal error: Uncaught ValueError: file_get_contents(): Argument #1 ($filename) must not contain any null bytes in E:\xampp\htdocs\testing\pdf_headless_chrome\vendor\beganovich\snappdf\src\Snappdf.php:296 Stack trace: #0 E:\xampp\htdocs\testing\pdf_headless_chrome\vendor\beganovich\snappdf\src\Snappdf.php(296): file_get_contents('%PDF-1.4\n%\xD3\xEB\xE9\xE1\n...') #1 E:\xampp\htdocs\testing\pdf_headless_chrome\vendor\beganovich\snappdf\src\Snappdf.php(252): Beganovich\Snappdf\Snappdf->executeOnWindows(Array,...

bug

I have no problem on local Windows 11 Laragon server and have some problems on production Ubuntu 24.04.1 LTS server. My Laravel code looks like this: ```php $snappdf = new...