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

convert data laravel use dompdf

$pasien = pasien::all(); $pdf = pdf::loadView('laporan/viewpasien',['show'=>$pasien]); return $pdf->download('pasien.pdf'); I am trying to convert data to pdf using dompdf, but the loading page is taking too long, can someone help me ?
0
votes
1 answer

Creating a Log File with DomPDF

I'm having a problem getting font-awesome to work inside of a DomPDF document on my webserver. However, the same HTML does work when using eclecticgeek.com's DomPDF debug helper. Therefore, I know there is not problem with the HTML. Here's a link…
dougblitz210
  • 139
  • 2
  • 9
0
votes
0 answers

Dompdf set page margin only after first page

I need to add margin to the top of every page except for the first page so that the text does not overlap the logo. Here is an example of the problem (scroll to the second page).…
Jeff
  • 103
  • 10
0
votes
1 answer

Custom Fonts in DomPDF

I'm Having a problem getting custom fonts to work in DOMPDF. I am using Drupal 7 as my backend, but I don't think that is particularly relevant to the issue I am having. When I return straight HTML, my custom fonts work:
dougblitz210
  • 139
  • 2
  • 9
0
votes
1 answer

How to remove link when used to create PDF in laravel dompdf?

I just make a simple html page and write content to it. I created a link when I click on that link the content of the page will converted into PDF file, I have implemented this using laravel dompdf -> https://github.com/barryvdh/laravel-dompdf .…
Rahul Sinha
  • 1,969
  • 14
  • 17
0
votes
1 answer

Converting docx to pdf with phpword

I want to convert a docx file to pdf using phpword my code looks like this: $FilePath = APPPATH."media/Documentos/Facturas/Factura ".$FacturaId.".docx"; $FilePathPdf = APPPATH."media/Documentos/Facturas/Factura ".$FacturaId.".pdf"; //DOCX TO…
50l3r
  • 1,549
  • 4
  • 16
  • 27
0
votes
1 answer

DOMPDF error: Class Dompdf\FrameDecorator\AbstractFrameDecorator not fund

I'm getting this error: Fatal error: Class 'Dompdf\FrameDecorator\AbstractFrameDecorator' not found in /public_html/vendor/dompdf/dompdf/src/FrameDecorator/Page.php on line 23 Locally works just fine, but on live server is trowing that…
Tanker
  • 1,178
  • 3
  • 16
  • 49
0
votes
0 answers

php dompdf load variable to view

i have this code on controller function btn_create_pdf() { require_once("assets/plugins/dompdf/dompdf_config.inc.php"); spl_autoload_register('DOMPDF_autoload'); $dompdf = new DOMPDF(); $dompdf->set_paper("A4", "landscape"); …
M Thohirin
  • 11
  • 5
0
votes
2 answers

why dompdf inside laravel 4.2 failes to load html string?

Inside the laravel controller, When I do this $html = '

mPDF

Basic HTML Example

This file demonstrates most of the HTML elements.

Heading 3

Heading 4

0
votes
1 answer

Fixing html to pdf using dompdf (CSS)

I am trying to convert the html page to a pdf file. I have no problem using $view->display();. The css format are displaying properly in here. However, when I try to use the $dompdf instead, the css seems to be a mess and different. I need some help…
fypforstack
  • 47
  • 1
  • 9
0
votes
0 answers

Dompdf: Multiple fonts on one page not rendering in right way

I am using Dompdf 0.8.0 to create my PDF. In one page there are multiple fonts used. i.e. 2 font types are used for signatures and one is regular font. But when we reach the signature fonts it changes all of the page fonts to signature fonts. Please…
Rajesh
  • 1
  • 1
0
votes
1 answer

Issue while trying to convert Html into PDF in Laravel

I am trying to create PDF from a Blade. My View has example same static Html as showing in this plunker link My code is simple...using barryvdh/laravel-dompdf package...I am writing below code in controller action method $pdf =…
Pankaj
  • 9,749
  • 32
  • 139
  • 283
0
votes
1 answer

Unable to downlaod pdf using DOMPDF

I checked plenty of resources, but my issue could not be resolved. I tried to generate to PDF by including PHP File. But now I stuck in "Unable to stream pdf: headers already sent" error. I also compress my code and also remove white spaces. Here is…
Kshitij Soni
  • 394
  • 3
  • 17
0
votes
0 answers

dompdf page breaking table if exceed table height

i want to break my table in the middle, as you can see at the picture. i want to break the table, so the table will stop at 10 and continue number 11 at the next page. how should i do it? this is my css. table.item { width: 100%; …
rudzstyle
  • 57
  • 1
  • 2
  • 8
0
votes
2 answers

PHP, Codeigniter, Dompdf: HTML generating fine but exectuion time out whlie rederning PDF

I have large amount of data that needs to be process and add as tables in PDF using Codeigniter. PDF contain some HTML elements, images, icons, and need lots of alignment using CSS. So, to achieve this goal I did some search and checked which PDF…
Gokul Shinde
  • 957
  • 3
  • 10
  • 30
1 2 3
99
100