Questions tagged [dompdf]

An HTML to PDF converter written in PHP

dompdf is an HTML layout and rendering engine written in PHP that can generate PDFs.

Features

  • handles most CSS 2.1 and a few CSS3 properties, including @import, @media & @page rules
  • supports most presentational HTML 4.0 attributes
  • supports external stylesheets, either local or through http/ftp (via fopen-wrappers)
  • supports complex tables, including row & column spans, separate & collapsed border models, individual cell styling
  • image support (gif, png (8, 24 and 32 bit with alpha channel), bmp & jpeg)
  • no dependencies on external PDF libraries, thanks to the R&OS PDF class
  • inline PHP support

Requirements

  • PHP 5.0.0+ (5.3 recommended)
  • MBString extension
  • DOM extension (bundled with PHP 5)
  • Some fonts.

The code is licensed under GNU Lesser GPL.

1980 questions
0
votes
1 answer

Phpexcel crashes while creating pdf file with dompdf

I want to save phpexcel document as pdf, but created file has lot's extra lines which shouldn't be here and also contents of file don't fit in page with portrait orientation. I tried to change orientation to landscape, but creation crashed with the…
Solonka
  • 561
  • 6
  • 18
0
votes
2 answers

Dompdf UTF8 decode Issue in Laravel

I Generate Tamil Article in PDF using DOMPDF in Laravel. In my View I defined Charset as Following : but generate as PDF following : Controller Code…
Karthik
  • 5,589
  • 18
  • 46
  • 78
0
votes
1 answer

Unable to generate pdf in laravel controller

I had write some sample codes to generate pdf in my laravel controller. It get a 200 response code but the pdf is not generating. Below is my code. function exportPDF() { // instantiate and use the dompdf class $dompdf = new PDF(); …
etzzz
  • 165
  • 1
  • 4
  • 15
0
votes
0 answers

Dompdf font letter swaped in shruti font

Dompdf font letter swaped with shruti font Original Result Image 1 is original content and Image 2 is the result please help us to resolve this issue
0
votes
1 answer

dompdf load custom font sometime show garbled

Here is the output, by right it should be like this Most of the time it print out correctly, but some time it not showing the correct characters Here's my code @font-face { font-family: 'street'; src: url('{{…
Js Lim
  • 3,625
  • 6
  • 42
  • 80
0
votes
0 answers

Arabic language not working on pdf export using dompdf, while its working fine with excel in laravel

This is my controller stockcontroller.php, using for export data public function exportStock(Request $request) { header('http-equiv : Content-Type; Content-Type: text/html; charset=utf-8'); if($request->status=='show') …
0
votes
0 answers

pdf contents not getting on live but working on localhost

Here am using dompdf to generate pdf file.For that i had included the code like this.. My control looks like this
user_777
  • 845
  • 1
  • 9
  • 25
0
votes
2 answers

UTF-8 words not display in laravel-dompdf

I write a simple code for rendering chinese words in pdf. But the chinese words does not appear. This is my code. Route::get('/pdf', function () { $html = '
etzzz
  • 165
  • 1
  • 4
  • 15
0
votes
0 answers

How to embed external images into a PDF file using CakePDF and Dompdf?

I'm using CakePHP 3.4 and CakePdf to generate pdf files using domPdf plugin. also using QrCode plugin to generate QR Code on the go. I want to use generated QR Code in my pdf file without saving them on disk. This is what I have…
Anuj TBE
  • 9,198
  • 27
  • 136
  • 285
0
votes
1 answer

How to change to white the gray space showing in my pdf file when using Dompdf?

I´m not sure if this extremely simple or imposible and I´ll try to explain it in the best way possible. I have a php file that uses the Dompdf library to give the user a pdf file so he/she can print it. The information in the file is always…
Kenny Barrera
  • 172
  • 2
  • 14
0
votes
0 answers

dompdf - Checkbox displayed but it don't displayed checked

yes i have this but showing just unchecked checkbox after generate PDF using DOMPDF. what i should do now for this?? I am using DOMPDF version - 0.7 Thank You, Hitesh Ambaliya
0
votes
0 answers

When use the barryvdh/laravel-dompdf , Login is not working in Laravel 5.2

I used barryvdh/laravel-dompdf (https://github.com/barryvdh/laravel-dompdf) to my Laravel 5.2 project and it worked for me to generate pdf but now I can't log in to the system after I logged out. Its not showing any error and redirect to login page…
Thiwanka
  • 97
  • 1
  • 8
0
votes
1 answer

Error rendering data from database with dompdf

I'm using DOMPDF library for made a prices list. I installed the library and try with simple pdf and all works ok. In my html template, i'm rendering data from a mysql table. This is my HTML :
jircdeveloper
  • 424
  • 2
  • 17
0
votes
0 answers
0
votes
0 answers

How to check If a html content fits in page of DOM Pdf or end of content

I am working on patient reporting system and using Dompdf to print the reports. The report consist of header and In between them for eg Test report. I am having Issue with determining the end of the content as after that I have to put a statement…
Prathamesh mhatre
  • 1,015
  • 5
  • 17
  • 32