Most voted "fpdf" questions
FPDF is a PHP class that allows you to generate PDF files with pure PHP, that is, without using the Pdflib library. If the question is not about "FPDF", do not use this tag, even if you are using "FPDF" in your project.
Learn more…33 questions
Sort by count of
-
18
votes1
answer2413
viewsHow to generate a pdf file containing the digital certificate information?
I have a PHP system that generates a pdf, and I need to use the client’s Digital Certificate to sign this document. I’ve been reading documents, and I saw that the FPDF that I use does not yet…
-
4
votes1
answer2121
viewsFPDF - Bold only part of the string in Multicell
My problem is this, I’m doing an FPDF certificate, and there are parts of strings that have to be bold for ex: CODE: $nome="Marco"; $string1="Certifica-se que ".$nome;…
-
3
votes3
answers4536
viewsIncorrect accentuation when generating PDF
After several searches on the net, I could not solve my problem with accentuation (charset). I am generating a report in FPDF and in the description field comes out all disfigured text: I’ve used…
-
3
votes1
answer1734
viewsgenerate and email with pdf file attached with php
In my PHP script, I need to generate a PDF file and send it via email. I was able to send an attached file by email using phpmailer and generate a PDF in the browser using fpdf. The problem is that…
-
2
votes2
answers1596
viewsCell with dynamic height in FPDF
I want to create a report with fpdf, but every time I create a cell with some large text, it sits above the cell below. Is there any way to create a cell that automatically resizes>
-
1
votes3
answers2115
viewsHow to use setx() and setY() methods from the FPDF library.
I have already researched the Internet but I have not received any clarification on the subject, I would like to know if anyone could demonstrate a procedure for using these methods. I’m creating a…
-
1
votes2
answers599
viewsLaravel - FPDF error: Undefined font
What am I doing I’m rewriting a small barcode generation system using Laravel. What went wrong I’m instantiating the classes normally, but when I use the method…
-
1
votes0
answers568
viewsPHP - Insert database image in pdf generated via fpdf
I am using the fpdf system to generate pdf files through an html form. But I would like to insert in the pdf an image that is uploaded in the mysql database. The sintese to insert image in pdf is:…
-
1
votes3
answers6199
viewsBreak line in a PHP FPDF class Cell?
I would like to know how to insert a line break with the FPDF of PHP. I’m putting the following code: $pdf->Cell(0,20, "Declaramos que ".$nome.$quebra_linha." participou da I SAEP - Semana…
-
1
votes0
answers108
viewsEditor for FPDF
I’m looking for an FPDF editor. Does anyone know any? Or some link that can take my page in PHP and turn into FPDF. I need to create more than 20 PHP reports for PDF. I know the question is generic,…
-
1
votes1
answer154
viewsFPDF Adding Page to More
My document only came a record, but it still generates two pages the function I’m using is this: function Footer(){ // CRIANDO UM RODAPE //$this->SetX(15); $this->setY(-15);…
-
1
votes1
answer422
viewsFPDF - I need to customize the text that will be printed
I need the contents $pdf->MultiCell be customized(html) with bold, etc... <?php require_once( 'fpdf.php' ); $nome = @$_POST['nome']; // Sim, a supressão é perfeitamente válida neste contexto…
-
1
votes1
answer198
viewsChange PDF background according to database data (PHP, MYSQL, FPDF)
I’m trying to personalize my report on FPDF, It is a system that generates discount tickets, where they are printed in batches, for example batch 50 units. Tickets in this batch will have the same…
-
0
votes1
answer1493
viewsOutput error in FPDF - PHP
I have a report that I’m using the FPDF class. While I was developing it on my local machine everything was wonderful, now that I did hosting the files on the kinghost, I started having problems…
-
0
votes2
answers571
viewsError generating PDF in Cakephp through FPDF
I’m rewriting a legacy system of the company I work on (using Cakephp for this) and it generates some PDF reports using FPDF. However, in Cakephp I cannot generate any PDF. Follows the code Action…
-
0
votes0
answers62
viewsFPDF Positioning Problems Sety()
I was recently using the PHP Fpdf class to generate my report, but I have the following problem: How do I position an image that is there on the last page of the report to the first? (I want to not…
-
0
votes1
answer465
viewsImage . png in Jasper report
I’m starting in PHP and to finish my first system I have to make a report, it has some logos and watermarks, I’m using Jasperdesigner to generate XML for the lib Phpjasperxml, but when I have the…
-
0
votes1
answer1109
viewsOpen() method of the undefined FPDF
I’m trying to generate tags with php and the FPDF class, but I’m having trouble with the open() method of the FPDF, it returns the following error - Fatal error: Call to Undefined method…
-
0
votes0
answers174
viewsLong text fpdf
Hello, I am trying to create a service contract within the Dolibar CRM. He works with fpdf, and since I don’t understand almost anything, I’m here. Since every contract is great, I thought of…
-
0
votes1
answer212
viewsHow to Calculate Pixel Height with PHP
I have a screen on which a report is generated with a limit amount of tables that cannot be broken. I have to paginate this report. How to calculate the height of pixels generated ??
-
0
votes1
answer63
viewsPrint dynamic query
I have a query in a system where the user selects the month and the corresponding records are shown on the same page. I want to print the result of the query but how the form sends via GET: <form…
-
0
votes1
answer2025
views"network failure" when downloading PDF generated with PHP’s FPDF class in Google Chrome
I have reports with generated in PHP (version 5.6) / FPDF (version 1.7) that are normally displayed in the browser window. The following simplified example on these reports are generated: <?php…
-
0
votes1
answer154
viewsHow to import FPDF content to Zend2?
I’m creating a budget page with Zend 2, to print with FPDF. The problem is I don’t know how to import. That is the mistake: Warning: require(/php/sistema_real/public/aditivos/fpdf/fpdf.php)…
-
0
votes1
answer1548
viewsSave PDF file to PHP temp
Is there any class, such as mPDF or fpdf, that can send its output to a temporary file, or something like that, to be sent via email in the same? The demand is as follows: I need the email to be…
-
0
votes2
answers780
viewsLine break within a MYSQL query
Hello someone can help me with line breaking within a mysql query? The code goes like this: CONCAT('Origem -> ',vEnderecoOrigem,' \r\nDestino ->',vEnderecoDestino) The result: Origem -> Rua…
-
0
votes1
answer1211
viewsPage break with fpdf php
I am generating a report with fpdf using php. I read a csv file and print 3 columns. For each column, I created a loop that prints the data. That way I have a loop for each column. When I use…
-
0
votes1
answer1472
viewsFpdf PHP page
I’m having trouble making a pagination. It receives the data of the report in array format, then I have to do a foreach to scan the data, it happens that I am doing it within 2 for, and the data…
-
0
votes1
answer543
viewsFPDF with Mysql and PHP - Bringing Repeated Data
I’m trying to set up a generator system Vouchers/Tickets I have a table in SQL with the name Vouchers with multiple users and their respective passwords. I call in each Cell the variable…
-
0
votes0
answers247
viewsFPDF with php last blank page
I’m having a little problem in my code, it’s generating the last blank page. Follow the creation of this code with the help of the community: FPDF with Mysql and PHP - Bringing Repeated Data I’ve…
-
0
votes0
answers45
viewsWhite First Page in Adobe
I am using FPDF class v1.6 to generate reports. It turns out that when I Gero the Pdfs, in the browser appears right. When I open from Adobe Reader, the first page appears blank only with a logo on…
-
-1
votes1
answer3373
viewsConfigure Sheet Margins in FPDF
I have a problem in FPDF, I need to configure the page margins, but I could not find how I do it. If anyone knows and can answer me thank you, or if they know if it has been asked here in the forum…
fpdfasked 9 years, 11 months ago Jesse Seffrin 31 -
-1
votes3
answers572
viewsBarcode Generation - FPDF
I am using classic Asp generating barcode in PDF. I found little problem, in the function below calculates the barcode with one more digit, If anyone can help find the error thank you. I made a…
-
-2
votes1
answer94
viewsFPDF Code128 Barcode Error
I am trying to generate a PDF file using FPDF and a class "Code 128 barcodes" (found in fpdf.org > scripts > Code 128 barcodes). The method Code128() is inside the archive Code128.php in class…