dompdf Questions

4

I am using dompdf (a PHP library) to create a PDF page and I have a problem to set proper dimensions. When I use CSS property: @page { size: 21cm 29.7cm; } … and for example I want to have the...
Thermosiphon asked 22/8, 2016 at 17:37

11

Solved

For some reason, DomPDF won't render an image included in the html that is being parsed: However, the image is rendered on the page when it is returned as html: I've looked at these issues an...
Armandinaarmando asked 28/8, 2014 at 21:37

2

When using dompdf what PDF meta data can be set in the document information dictionary? Originally asked elsewhere: Are you able to parse more META info to be added to PDF information during PD...
Rejection asked 26/8, 2015 at 18:6

8

I'm using bootstrap grid to display and i want that my client download it in pdf so for that i'm using dompdf but dompdf is not able to apply bootstrap style. I cannot go back and turn my bootstrap...
Overbearing asked 1/5, 2015 at 11:4

5

Solved

I have a table with very long texts that has no spaces (users like to post a full website URL complete with all the parameters) Then I set on word-break:break-all; and word-wrap:break-word; on eac...
Divine asked 27/11, 2017 at 9:12

3

Solved

I'm using Zend Framework and DOMPDF library. When I test it with inline css everything works perfectly. But when I tried to move css code to the external file rules are not applied to the html page...
Earthman asked 19/6, 2013 at 7:41

5

I'm building a PDF with dompdf, but my pdf doesn't contains a specified image. I already set the value to true in dompdf_config.inc.php def("DOMPDF_ENABLE_REMOTE", true); and this is my image HT...
Gyp asked 21/6, 2016 at 19:19

3

Solved

Here is the HTML just before $dompdf->render() and $dompdf->output() are called: <img src="http://www.example.com/images/Logo.png" /> All other invoices display the image fine when viewing...
Cirillo asked 1/12, 2010 at 18:50

2

Solved

I am using two webfonts in a page that I convert to a PDF using dompdf. I have this in the header: <link href='http://fonts.googleapis.com/css?family=Signika:600|Roboto+Condensed' rel='styleshe...
Walburga asked 24/6, 2017 at 17:40

1

I am getting the error "Image not found or type unknown" after downloading PDF in Symfony 4 using dompdf package. My method in my controller class: public function dompdf(EvaluationReposi...
Darees asked 21/8, 2019 at 12:59

3

Solved

I generated a PDF using the dompdf library and used this: $dompdf->stream('my.pdf',array('Attachment'=>0)); to force the browser to let the user view the PDF before downloading. But it's n...
Cupo asked 15/7, 2014 at 5:35

4

Solved

What is the easiest way to attach a PDF to an email via DOMPDF? The end of my script I am using (part of it) is below: $dompdf = new DOMPDF(); $dompdf->load_html($html); $dompdf->render(); ...
Jest asked 31/10, 2011 at 19:6

12

require_once("function/dompdf/dompdf_config.inc.php"); $dompdf = new DOMPDF(); foreach($modules as $module){ $output = "Hello " .$module['name']; $dompdf->load_html($output); $dompdf->rend...
Cotten asked 30/5, 2016 at 9:9

5

When I want to download invoice.pdf got error:- fopen(project_path\storage\fonts/\071ddd89a9cb147bf5639344caee3fe8.ufm): failed to open stream: No such file or directory enter image descripti...
Moderate asked 1/2, 2019 at 6:28

3

Solved

Hi I am using DOMPDF to generate PDF file, I would like to know how to get page number. I have try the following as mention in FAQ page of DOMPDF. and not successful. NOTE: I also have turn on inl...
Brunette asked 31/10, 2012 at 13:56

3

Solved

Is there something like: $dompdf = new DOMPDF(); $dompdf->resolution(200); $dompdf->load_html($html); $dompdf->render(); Instead of having to set in the dompdf_config.inc.php, as I have...
Spinet asked 6/12, 2013 at 3:9

3

I am using Dompdf for the report generation in the php. I am not able to include the external style sheet for the same... The code I am using is similar to the following: <?php require_once "d...
Auguste asked 6/11, 2013 at 5:59

2

I am using dompdf to render a PDF document. We use Bootstrap 4 on the whole application, so I would like to be able to use it in the twig template used to generate our document. Currently, I'm fac...
Elgin asked 5/5, 2020 at 14:59

2

Solved

iam using dompdf to generate pdf file from html , the problem is the generated filesize is big ,i.e. 1MB for 1 page of pdf ! is there any way to reduce it ?
Marlomarlon asked 9/1, 2012 at 19:14

1

Solved

I am using dompdf in my Laravel v8.26.1 app. I am also using Laravel Livewire v1.3.5. I can get a view to download a pdf outside of Livewire, but can't seem to get it to work inside a Livewire view...
Thither asked 6/2, 2021 at 22:18

5

I want create a DOMPDF with laravel, and I must passing my variable to view. I've been try passing variable like below, but it still not working yet. here my Laravel Controller public function p...
Inclined asked 30/12, 2016 at 8:1

4

I am trying to generate a dynamic PDF out of a PHP page and it gives me this error: Fatal error: Uncaught exception 'Dompdf\Exception' with message 'The row #4 could not be found, please file an i...
Eadwina asked 21/3, 2017 at 17:16

2

After several hours of searching, I am still unable to resolve this issue. I am having a problem with displaying images in a PDF file generated by dompdf library. I have an editor tinyMCE where a...
Indigo asked 1/4, 2014 at 7:33

5

Solved

What is the best way to do page breaks in dompdf? I have had a look here at the page-break-before css attribute, but it didn't work when I did: table {page-break-before:auto;} The page still br...
Cherlycherlyn asked 4/1, 2012 at 7:33

10

I am generating php page using smarty template based on html form input and uploaded files. Using dompdf, I want to save the generated page as a pdf file. When the user submits the multipart/form-d...
Maenad asked 22/10, 2013 at 17:39

© 2022 - 2025 — McMap. All rights reserved.