Questions tagged [laravel-snappy]
76 questions
14
votes
1 answer
WkHTMLtoPDF Unicode Issue
I've already read several similar StackOverflow posts and none of them were able to resolve my issue.
The Issue
I have a PDF that's being generated by WkHTMLtoPDF which contains a unicode RIGHT SINGLE QUOTATION MARK (U+2019, or ’) character.…

stevendesu
- 15,753
- 22
- 105
- 182
12
votes
1 answer
Class 'App\Http\Controllers\App' not found in laravel 5.2
I am try to use laravel-snappy for pdf generation.
step 1:
run composer require barryvdh/laravel-snappy
step 2:
add in providers Barryvdh\DomPDF\ServiceProvider::class, and aliases 'PDF' => Barryvdh\DomPDF\Facade::class, in app.php
step 3:
create…

Prashant Shukla
- 241
- 1
- 5
- 21
10
votes
2 answers
Google charts are not showing in Snappy PDF
I am trying to load a chart then convert it to PDF using Laravel-snappy
Here is the code I am using to generate the pdf:
$pdf = SnappyPDF::loadView('report', []);
$pdf->setOption('enable-javascript', true);
$pdf->setOption('no-stop-slow-scripts',…

moh96
- 113
- 1
- 6
7
votes
1 answer
Laravel snappy returning Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown Error
I am using laravel snappy based on wkhtmltopdf, everything was ok, but now on server and local I am getting this error:
Failed to load about:blank, with network status code 301 and http status code 0 - Protocol "about" is unknown Error.
And
Blocked…

Cutis
- 949
- 1
- 13
- 32
4
votes
0 answers
Laravel Sail & platform selection
I am using laravel sail and I have an error when I use wkhtml to load PDF from blade files, I have installed the packages via composer and setup everything by following laravel-snappy instructions, the error goes as follows:
The exit status code…

fake97
- 166
- 2
- 10
4
votes
2 answers
Laravel snappy - How to Load internal/external css
I am trying to get the css styling working for my pdf documents. So far no such luck.
Is it possible to use CDN style sheet documents? When I add say bootstrap stylesheet cdn to my view's head section, I get the error below;
The exit status code…

eleven0
- 263
- 6
- 13
3
votes
1 answer
Laravel-Snappy throwing error 500 without further information
I want to create PDF files using barryvdh\laravel-snappy. I followed all the steps on the github page, but whenever I use functions like
$pdf->output();
$pdf->download("test.pdf");
I get an Server Error.
I tried to install wkthmltopdf on windows…

Commander
- 264
- 2
- 12
3
votes
2 answers
Laravel snappy file was not created
I am trying to create pdf with Laravel snappy.
The problem is when I try to run wkhtmltopdf command in the console for example:
wkhtmltopdf http://google.com google.pdf
it works fine and generates pdf.
But when I try to generate pdf in my…

Aleksandar Milivojsa
- 366
- 3
- 13
2
votes
0 answers
How to add margin top in second page after page break in snappy pdf laravel?
I have used page-break-inside: avoid; for page break, that work fine. But in second page there is no margin in top.
{{…

Shunhra Sarker
- 187
- 1
- 2
- 15
2
votes
0 answers
How to enable jquery to render snappy PDF view laravel blade
I am trying to implement this piece of jQuery code. All other HTML and CSS are working fine, however this jQuery code is not working.
How do I implement this piece of code into my Laravel Blade file?
@push('js')