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

Laravel add add font in dompdf

Please, give me answer, how i can add external font in dompdf load view :) This is my structure ` Fonts folder exists in storage/fonts/ and fonts are exists in vendor/dompdf/dompdf/lib/fonts/ And this is my code ` This is my controller public…
Levon Babayan
  • 266
  • 2
  • 18
0
votes
1 answer

Font family issue in dompdf

I'm using DOMPDF v0.8.0 I'm having a problem with this library. I'm using this dompdf library with codeigniter2. I need to implement digital signature and convert the html into pdf. This signature section have different fonts. I'm using google…
Poonam
  • 549
  • 4
  • 15
0
votes
0 answers

Want to convert very large html to pdf in core php

I am working in core PHP 5.5.9. I have very large html table which have more than 1 lack rows. I have tried to do this approximately every plugin but can not able to achieve success. I have tried : MPDF, FPDF, DOMPDF, Snappy, TCPDF and…
Prashant Shukla
  • 241
  • 1
  • 5
  • 21
0
votes
1 answer

Is there any way to add watermark image in DOMPDF page, or it can be done only through HTML?

In my laravel project, I want to add a image watermark for the pdf page generated using DOMPDF. One approach I can go with is adding background image through html, but is there any direct way provided by DOMPDF to do so? Dompdf version I am using is…
DIGVJSS
  • 463
  • 1
  • 10
  • 21
0
votes
1 answer

Repeat table rows till new div arrives DOMPDF

I am trying to create invoice and exporting in pdf using DOMPDF. Where I am stuck is, the table I am using to display product details, is just remaining till rows only, where I want it to add blank rows till new footer div comes up Current Invoice…
NaikNiket
  • 29
  • 1
  • 5
0
votes
0 answers

Rendering view for DOMPDF in phalconPHP

I have been try to convert template to PDF with DOMPDF in phalconPHP with angularJS at the front. But I am getting 500 internal server error response from it. DOMPDF is included fine in the controller as I loaded static HTML in load_html() function,…
0
votes
3 answers

Using dompdf library in codeigniter

can anybody help me, i'm trying to use dompdf library with codeigniter. When i do it on localhost its work. But it's not work properly when my website has been uploaded. Here's the library code
0
votes
2 answers

output from PHP = ok, from DOMPDF = wrong. (display)

This output run fine in HTML / PHP:
Stackoverflow
  • 449
  • 5
  • 13
0
votes
0 answers

My Images getting smaller in next page - DOMPDF

Here's the first page Here's the second page, the image is getting smaller Created with DOMPDF and Laravel, the first page, my image is fine, but when the second page is getting smaller, i don't know why.. i've been trying to use div, but its still…
user4889688
0
votes
1 answer

Dompf corporative paper as background

I am using Dompdf to create pdf invoice and is working great but i need to put a background image filled the paper (A4). I have a header, content and footer sections and if i put the background image in the body is not working. My html is:
Roke
  • 329
  • 1
  • 3
  • 16
0
votes
0 answers

Laravel Print with DomPDF

i was trying to print invoice with Laravel using barryvdh/laravel-dompdf I used the following code to convert pdf: $pdf = \PDF::loadView('print.service_x')->setPaper('a4','portrait'); return $pdf->download('invoice.pdf'); But the style got…
User57
  • 2,453
  • 14
  • 36
  • 72
0
votes
1 answer

how to print firebase image in dompdf laravel?

/* */ Where $users['image'] is the field of table where I store the firebase image URL.
Vik
  • 33
  • 1
0
votes
0 answers

Message: Undefined variable: core_settings Codeigniter

I'm trying to use dompdf with codeigniter but after adding initial code i got an error error message A PHP Error was encountered Severity: Notice Message: Undefined variable: core_settings Filename: theme/application.php Line Number: 51 this is…
0
votes
1 answer

Can't Use Thai Language in DOMPDF

I can't use thai language in DOMPDF https://github.com/barryvdh/laravel-dompdf I have use this