Most voted "dompdf" questions
63 questions
Sort by count of
-
6
votes1
answer5078
viewsConfigure page headers with DOMPDF
Is there any way to set up DOMPDF to put a header on all pages of the generated PDF? I am generating a report and I would like all pages of the report to have the header of the first. //define o…
-
5
votes2
answers1198
viewsDOMPDF: Frame not found in cellmap. What causes this error?
This problem has been haunting me for a long time and I still haven’t found a solution for it. I have developed a system, where in a given location, the user can print a report, which is generated…
-
5
votes1
answer2348
viewsProblem with accentuation when generating PDF with dompdf
I am generating a PDF report using the dompdf API, and the accentuation words are not being displayed correctly. I put the charset='utf-8' tag inside the head, but it does not solve the problem…
-
4
votes1
answer76
viewsWhere I find DOMPDF v.5
I’m only finding version 6 on Github, but I want to use version 5 that has the following files: dompdf/ |--include/ |--lib/ |--changelog.txt |--docblox.dist.xml |--dompdf.php…
-
4
votes2
answers2985
viewsdompdf php to pdf
I’m using the DomPDF to generate the pdf. The point is that I can’t convert my html to pdf. My html is generated by several lines of php with variables and etc... I already tried passing a variable…
-
4
votes1
answer1504
viewsHow to resolve memory size error for large files generated with Dompdf?
What happens is that when the HTML (dynamically generated) gets too large, the pdf is not created, and returns this error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to…
-
4
votes1
answer3295
viewsFailed to load PDF document
I am working with a crafts system, where the user will enter the number of the craft, the person to whom the document will be directed and the message, and would like that, if the data were…
-
4
votes1
answer985
viewsPage number with DOMPDF and LARAVEL
How do I place the number of each page with domPDF? I use it with the Standard. Example: Page 1-4, Page 2-4, Page 3-4 and Page 4-4; My function to fetch database data: public function print($id) {…
-
3
votes2
answers1804
viewsDompdf API for PDF generation in PHP
I use the laragon software that already comes with Windows and integrated Composer to the project, ran the line: Note: I have not preoccupied myself with good practices yet, I want to make it work…
-
3
votes0
answers531
viewsDOMPDF open Bootstrap content lying down and recognize CSS
I am using DOMPDF with the content with Bootstrap. For this, I did so: <?php ... use Dompdf\Dompdf; use Dompdf\Options; require_once("dompdf/autoload.inc.php"); $options = new Options();…
-
2
votes1
answer1457
viewsDompdf - Block printing and download
You can block printing and download in Dompdf?
-
2
votes2
answers833
viewsFooter does not appear on the first page - Laravel Dompdf
I have the following code in my application to generate a PDF report: $head = '<html><head>' . '<title>Relatório</title><style type="text/css">' . '@page {margin: 120px…
-
2
votes1
answer608
views -
1
votes0
answers297
viewsFloat in DOMPDF does not work as it should
I need to use dmpdf to generate a grid of images, but the float does not work properly. Instead of him going down when he gets to the edge of the page he keeps going right. I have tried to put a div…
-
1
votes0
answers156
viewsGenerating DOMPDF with header, body and footer
I wonder if it is possible (and how) to create a page with the header and footer and just call the content of the body I need. I’ll have to generate several pdf, and in all will have to keep the…
-
1
votes1
answer124
viewsHow to capture code from a table generated via html?
I generated a table with data by HTML and PHP, how do I generate a string of this table with this data so I can play in my DOMPDF load_html?
-
1
votes1
answer1234
viewsDompdf Illegal error "string offset 'Hex' online 1150 style.cls.php"
I have the following code: <?php session_start(); if(isset($_SESSION['logado'])==false){ echo("<script>window.location = 'login.php';</script>"); } ?> <!DOCTYPE html>…
-
1
votes1
answer731
viewsUncaught Exception 'Dompdf_exception' with message 'No block-level Parent found. Not good. '
am having a problem generating a pdf file from an html string. the error reported is as follows:: Uncaught exception 'DOMPDF_Exception' with message 'No block-level parent found. Not good.' The PDF…
-
1
votes1
answer5082
viewsCreate PDF from a LARGE HTML file with DOMPDF
I am trying to convert a 40mb html PDF file using DOMPDF. Even with 3600 seconds timeout, it does not generate the file, nor if I put it to as 1x cron task a day or run on command line. my script…
-
1
votes1
answer146
viewsdompdf does not display Georgia font
I want to display a file with the font-family Georgia, already downloaded and put in the fonts folder of your lib, but I am searching and does not display in Georgia format. I’d like some help from…
-
1
votes1
answer1094
viewsProblem to generate reports with DOMPDF + Codeigniter
Hello, I am trying to generate a report using Dompdf but am encountering the following error A PHP Error was encountered Severity: Notice Message: Undefined property: Relatorio::$dompdf Filename:…
-
1
votes0
answers659
viewsProblems with print layout
I’m having trouble putting together layout for printing on Elgin i9, mount the script on laravel 5.4 thus: $produto = Produto::find($request->input('COD_IDENT_PRODU')); $qtd =…
-
1
votes0
answers207
viewsProblems with DOM PDF PHP
I am generating a document and this error appears: Call to Undefined method Dompdf Framedecorator Tablerowgroup::get_cellmap() My printing method is developed so: public function…
-
1
votes0
answers171
viewsConvert to PDF with php
I have the following problem, I have these value in html with php (fetch the values from mysql): And my goal would be through the use of materialize buttons gave the possibility to the user to make…
-
1
votes0
answers155
viewsSpacing increases when breaking page with Dompdf
Hello! I created a contract with Dompdf more when breaking the page is increased the space always in the first page information and so on, I have made several modifications to my code and I could…
-
1
votes0
answers81
viewsError when generating descendant loop (family tree)
This code is inside the DOMPDF script, in it I take a registered bird and Seto the variables of it in $ra, so far so good, but this system is a family tree and I must always ask the system if that…
-
0
votes1
answer506
viewschange data type ntext to text, SQL Server
I need to change the data type of a field that is in "ntext" to "text". The reason is that I’m having trouble pulling this value from the database and generating a PDF with the php DOMPDF component.…
-
0
votes0
answers20
viewsDOMPDF Save/Download file to client
I am using dompdf, I need to download the file automatically, how to do this? I’m using the code below: $dompdf = new DOMPDF (); $dompdf->load_html($resultado[0]['recibo']); $dompdf->render();…
-
0
votes1
answer3293
viewsMPDF error: Some data has already been output to browser
Hello, I am having a very strange error using mPDF library to generate PDF. The page fetches data from the database and displays on the page and mPDF in turn generates the pdf. However, when not PDF…
-
0
votes0
answers41
viewspause of 2 seconds when sending email
The duplicate question showed how to send and not be identified as spam.. now would like to do a Sleep between submissions ... I use swiftmailer to send emails and would like to have a delay in…
-
0
votes0
answers68
viewsDompdf does not load with 80mmx30mm file
I am trying to generate a PDF to be printed as label size 80x30, but when setting this size the PDF does not load. Larger dimensions normally load. $customPaper = array(0,0,80,30);…
-
0
votes0
answers109
viewsDompdf returning accents as question mark
I’m using version 8.2 of DomDPF only that the special characters are as "?". I’ve tried using the solution of this topic only you don’t have a file dompdf_config.inc.php here. Not even adding the…
dompdfasked 6 years, 1 month ago Henrique Paiva 1 -
0
votes0
answers169
viewsIs it possible for Dompdf to run PHP code?
I have to run some commands in php to generate a table ,after that, I store this result in a variable run the echo command and the table is shown on the screen. The problem is when I try to run it…
-
0
votes1
answer2168
viewsSet DOM paper size PDF
I need to set the paper size of the DOM PDF for 80x550mm I need to print on my non tax printer Elgin i9 I’m riding php like this: $documentTemplate = ' <!doctype html> <html>…
-
0
votes0
answers410
viewsPage limit in DOMPDF - Laravel
Good afternoon, everyone, I am making a requirement for printing DOMPDF, which is more than 200 pages. When I make the request it cannot generate, but if I pass a condition to generate up to a given…
-
0
votes1
answer752
viewsLaravel 5.4 and Dompdf - problems?
I’m trying to generate a PDF from a view, and it’s working, however, when I call the route to call the controller, the upload is for several seconds, even minutes to generate the PDF, and download,…
-
0
votes0
answers1048
viewsTable rows do not break when finishing the page - PDF gift & Laravel
Guys, I have a table with a very large number of lines and when I PDF this HTML page with domPDF does not skip to the next page. I tried some tutorials here, only it didn’t work very well. Follow…
-
0
votes1
answer559
viewsPDF in Laravel returning selected View
Hello, I am using Dompdf to try to return a pdf report, but every time I call the view it is loading as if it were in an infinite loop and nothing happens. Follows my code Cursocontroller.php public…
-
0
votes1
answer421
viewsCoupon-style PDF size
I need to create a coupon style PDF, to send to a Daruma DR800 non-fiscal printer. I need to know how to generate a custom sized PDF and its contents. I already generate PDF with DOMPDF in Laravel…
-
0
votes0
answers216
views -
0
votes1
answer915
viewsHow to insert an HTML file into a PHP variable?
Fala galera, I have a file called post_forms.phpthat picks up the results of $_POST[], must fill variables inside the file form_xxx.html, create a PDF with Dompdf lib and send with Phpmailer. See a…
-
0
votes0
answers484
viewsI am using dompdf and getting the following error: Parse error: syntax error, Unexpected 'use' (T_USE) in the line that references the namespace
function contasApagar() { $fornecedorDAO = new fornecedoresDAO(); $retfornecedor = $fornecedorDAO->buscarTodos(); $forma_pagtoDAO = new forma_pagtoDAO(); …
-
0
votes1
answer344
viewsFatal error: Uncaught Error: Call to Undefined method Domprocessinginstruction::getattribute(). PHP AND DOMPDF
I am trying to create a pdf with a table that receives php variable values. The page runs perfectly, but when I use DOMPDF to create the pdf of the page it gives me the following error : Fatal…
-
0
votes0
answers282
viewsLaravel + DOMPDF - How do I count the number of pages in a report after downloading?
I saw several examples on the Internet but nothing that I can adapt to my code or that works. Example in the footer wanted to display like this. Page:1/30, 2/30 and so on, man controller is like…
-
0
votes0
answers227
viewsPDF generation through a very slow PHP HTML
I am developing a system in PHP that has a module for the PDF export of a certain information that Gero in HTML, but this process is very slow because I think it is a lot of information (on average…
-
0
votes1
answer148
viewsPDF attached in encrypted email arrives
I am attaching a PDF to send in the email, using Laravel and DOMPDF but when the email arrives, there is no PDF attachment, it arrives encoded in the body of the email. follows the code. Remembering…
-
0
votes0
answers26
viewsReturn multiple lines in PDF
Good afternoon, you guys! I have a question about creating tables in my domPDF. It turns out that I gave a GROUP BY in the SELECT of my bank, but only returns me the first line, I wanted to list all…
-
0
votes1
answer107
viewsDompdf does not load information
I am using PHP 5.4.43 in a Symfony 2.3.36 application and my PDF is coming blank. Solicitacaopdf.html.Twig Test 1 Solicitacaocontroller.php /** * @Route("/solicitacaopdf") */ public function…
-
0
votes1
answer216
viewsPDF being generated with blank sheets
I have an API in Laravel that has an end-point (POST method) to generate PDF (Dompdf) with the following method: public function generatePDF() { return…
-
0
votes1
answer586
viewsDisplaying image in PDF inside a while
Good afternoon, I am breaking my head, I need to display images from my bank, in a PDF. The name of the field in the bank is called foto, it keeps the path of the images that are in a directory.…