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
2 answers

How do I generate and email a PDF generated with DOMPDF at the same time?

I have a problem using the DOMPDF library to generate a pdf and at the same time send it by mail. What I need is that the moment you click on a button in html is generated and sent the pdf file at the same time; So far only send me the mail with a…
SmithBit
  • 41
  • 1
  • 4
0
votes
0 answers

PHP HTML to PDF Solution for table page breaks

I'm currently using DOMPDF and MPDF, and they work well. For some reason I prefer MPDF though support for it has pretty much dropped. Currently I'm working on something where I need to generate a…
StuyvesantBlue
  • 135
  • 1
  • 15
0
votes
0 answers

CakePDF not working on CakePHP3

I have been trying for a couple of days now to enable PDFs on my web app. However, I can't make it work. I have the following configured: // AppController.php class AppController extends Controller { /** * Initialization hook method. …
NCo
  • 1
0
votes
1 answer

Why laravel-dompdf not working di php 7.1?

I get from here : https://github.com/barryvdh/laravel-dompdf Previous, I use PHP 7.0.8. My pdf no error When I use PHP 7.1, my pdf exist error See below My controller is like this : public function listdata(Request $request) { ... $pdf =…
moses toh
  • 12,344
  • 71
  • 243
  • 443
0
votes
1 answer

pdf not opening after generation of DOMPDF

This is my print code: getPrintData($_POST['value']); if ($result->num_rows > 0) { $data = ""; $html_data = ""; while ($row…
Akshay Shrivastav
  • 1,115
  • 4
  • 17
  • 43
0
votes
1 answer

Want to merge PDF in PHP

I have documents in pdf form. And I have to merge all documents into a single pdf. For this I am using PHP Merger with DOMpdf, It's working fine. But if there are any pdf which is digitally signed or encrypted, then an error arise "FPDF error : File…
Rajan Singh
  • 61
  • 13
0
votes
0 answers

Dompdf with bootstrap not showing input values

When using Dompdf with Bootstrap css everything looks great, except for the inputs. The text inputs don't show the value inside and the checkboxes are not showing at all. But if I remove the Bootstrap css everything works and values are…
materight
  • 527
  • 8
  • 22
0
votes
0 answers

Turkish characters not showing on dompdf output

I am using 0.7.0 dompdf to generate pdf file from html. I can create pdf file but it doesnt show Turkish Characters. Here are my codes: PHP code to generate pdf by using dompdf: use Dompdf\Dompdf; use Dompdf\Options; …
kazata
  • 71
  • 2
  • 2
  • 10
0
votes
1 answer

DOMPDF - Display google chart in the PDF where data obtained from database

I am generating a chart using the Google Charts API and the data from my database, which means that there is a call to an external file and data is echoed back in a JSON format. I know that the chart can be converted to an image so I thought that…
ArtleMaks
  • 151
  • 3
  • 19
0
votes
1 answer

DOMPDF: br tag causes text to justify

Getting a weird problem with DOMPDF.. Wherever I use content with a br tag in it..

Something
Something Else
Last line

The rendered output pdf seems to justify the line where the br tag is so it spans across the whole…
Ben
  • 20,737
  • 12
  • 71
  • 115
0
votes
2 answers

Printing pdf formated receipts using RP327 80mm Thermal Receipt Printer

I'm using dompdf to generate pdf formatted receipts which than be printed using RP327 80mm Thermal Receipt Printer. But printed receipts are not fitting the paper properly. Here is an attached image of printed receipts pos receipt. Here is my html…
0
votes
0 answers

How to trigger print if I am using dompdf stream and displaying using blob

How to trigger print if I am using dompdf stream and displaying using blob. I am using laravel dompdf and vuejs. I am able to display pdf in modal. Now I Need to open print dialogue using my print button not from pdf.(Its client requirement) I tried…
GRESPL Nagpur
  • 2,048
  • 3
  • 20
  • 40
0
votes
1 answer

How to add page number in laravel dompdf?

I add $pdf->set_option('isPhpEnabled', true); is like this : public function listdata() { $data = User::all(); $pdf=PDF::loadView('print_tests.test_pdf', ['data' => $data]); $pdf->set_option('isPhpEnabled', true); …
samuel toh
  • 6,836
  • 21
  • 71
  • 108
0
votes
1 answer

How to use Bootstrap CSS in dompdf

How does one apply Bootstrap CSS to dompdf? I tried it with $dompdf->set_base_path but it's not working.
Dipankar Naskar
  • 326
  • 1
  • 5
  • 13
0
votes
2 answers

(Inline) PHP in domPDF 7.0

I switched from TCPDF to domPDF because it seems more convenient to handle when creating invoices from html to pdf (I am rather a low pro on PHP :)). Now that I created the html file as a PDF file I recognized it does not output any PHP in the PDF -…
Franky2207
  • 163
  • 2
  • 19
1 2 3
99
100