A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface
Questions tagged [phpwkhtmltopdf]
41 questions
1
vote
0 answers
I need to export large files to PDF using Laravel
I am trying to export to PDF from HTML, using wkhtmlpdf with laravel, but throws an error because of the external links.
I am using the barryvdh/laravel-snappy wrapper but an error is thrown because of the external files, bootstrap…

sauce kode
- 31
- 4
1
vote
2 answers
Setting options in phpwkhtmltoimage
I am trying to reduce the file size of images outputted from phpwkhtmltoimage (php wrapper for wkhtmltopdf)
The image is being saved fine, but the image outputted is exactly the same as having no options set. I am guessing that I am doing something…

Ryan NZ
- 616
- 1
- 9
- 25
1
vote
1 answer
How to add page border while generating html to pdf
How to add page border for all generated pdf pages from HTML to pdf using wkhtmltopdf library?
I tried with
div.page
{
page-break-after: always;
page-break-inside: avoid;
border: 5px double !important;
}
but no luck.
Simmilar question…

visabhishek
- 113
- 2
- 11
1
vote
0 answers
wkhtmltopdf on PHP not working with JS with this Errors: "libpng warning: iCCP: known incorrect sRGB profile" and "Segmentation fault"
Dears,
I have this error message when I try to convert my HTML to PDF using phpwkhtmltopdf with rendering Chart.JS Graph:
Loading pages (1/6)
[> ] 0%
[======> ] 10%
[=================> ] > 29%
[========================> ] 41%
libpng…

Kamelj
- 136
- 1
- 9
1
vote
1 answer
Generate pdf in HHVM not work
I used nginx and hhvm on my ubuntu server , and mikehaertl/phpwkhtmltopdf package in laravel for generating pdf but generated pdf in HHVM shows content below and in my local machine works good:
My code is :
$logo =…

amirali
- 59
- 6
1
vote
1 answer
How to render an image of an AngularJs website?
I'm using wkhtmltoimage. It works fine for e.g. http://stackoverflow.com
But when I try to run in on any website with AngularJs (e.g. https://material.angularjs.org/latest/):
wkhtmltoimage.exe --no-stop-slow-scripts --javascript-delay 5000…

Andrzej Gis
- 13,706
- 14
- 86
- 130
1
vote
0 answers
phpwkhtmltopdf is generating multiple pages instead of one
I want to show the html in pdf only on one page. But it makes it on multiple pages.
I tried to add css modifications, but it didn't work eather. There are plently of options to choose, but cant find one that suits.
options…

Elīna Legzdiņa
- 307
- 1
- 3
- 11
1
vote
1 answer
How to configuration the WkHtmlToPdf in PHP
How to configure the WkHtmlToPdf in PHP?
I download the file from the below link of the GitHub through composer but I cannot configure in php
Please help me to configure the WkHtmlToPdf in php
This is the library I am…

Sharavana Kumar
- 29
- 1
- 8
0
votes
0 answers
wkhtmltopdf : Glyph width inconsistent in the PDF font dictionaries
I create my invoices width wkhtmltopdf with PHP library, my final goal is to create a factur-X with those PDFs. But when I try to audit my PDFs, I have this error :
Spec. ISO_19005_3 clause 6.2.11.5
For every font embedded in a conforming file and…

LoickMEYER
- 50
- 2
- 14
0
votes
1 answer
wkhtmltopdf header and footer spacing is not working
Using wkhtmltopdf 0.12.6 and mikehaertl's phpwkhtmltopdf I'm trying to add a header and footer to each page while setting the header and footer spacing.
This used to work when using an older binary file, but we recently switched to 0.12.6 installed…

InsurgentNL
- 11
- 1
0
votes
2 answers
--header-html on wkhtmltopdf is above the display area
I'm running on wkhtmltopdf 0.12.6 (with patched qt) with a windows 11 system.
So, i'm trying to display a header from html file using the --header-html param and my header is only an image. I can see it displayed above the pdf but it won't go down…

Grainbox
- 31
- 3
0
votes
0 answers
How to export 20 million records in pdf?
I need to export 20 million data in a pdf file. I have used the "WkHtmlToPdf" package
(https://github.com/mikehaertl/phpwkhtmltopdf)
in my yii2 application. I have used Mongo database, I have created a report module in which I need to export the pdf…

p1992
- 31
- 7
0
votes
0 answers
Only show an image once as background when rendering a pdf from wkhtmltopdf
I'm trying to get a single image to be set as watermark when using wkhtmltopdf. If I use background-repeat: no-repeat, nothing shows.
I've tried creating the image to be an A4 size (landscape 1056 by 768) but this just "walks" down the page. Below…

Alex
- 1
0
votes
1 answer
CSS is not affecting generated PDF in wkhtmltopdf in ubuntu
I am using OS: Ubuntu 16.04. I have integrated this package in my laravel application. PDF is generating but no CSS affect on this generated file.
In OS: windows, Everything is working perfectly.
In OS: Ubuntu 16.04,
Generated PDF is balck &…

tariq ali
- 77
- 1
- 7
0
votes
1 answer
Use wkhtmltopdf on linux
I'm using wkhtmltopdf in my Symfony project and everything is working on my computer. But when I put my project on a CentOS server I'm no longer able to create pdf files.
I'm using this line, but on a linux server .exe files can't be…

LordArt
- 3
- 1
- 1
- 7