Questions tagged [fpdf]

A PHP class which allows developers to generate PDF files with pure PHP instead of the PDFlib library.

Home page of FPDF

FPDF is a PHP class which allows developers to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

FPDF has other advantages: high level functions. Here is a list of its main features:

  • Choice of measure unit, page format and margins
  • Page header and footer management
  • Automatic page break
  • Automatic line break and text justification
  • Image support (JPEG, PNG and GIF)
  • Colors
  • Links
  • TrueType, Type1 and encoding support
  • Page compression

FPDF requires no extension (except zlib to activate compression and GD for GIF support). It works with PHP 4 and PHP 5

2301 questions
0
votes
0 answers

how to create report PDF or Excel from sever in andorid?

i want to create report pdf or excel from server data, i'm using PHP MYSQL and android, how i can create the report in android? somebody can help me to give example codes, or reference to create it? thanks u so much !! regards,
0
votes
1 answer

how to pass session data in fpdf

I'm making a Elearning webpage where the admins of the website are able to generate reports from the users data. I want to generate report base on what the admin want to have reports on. I've tried passing the session data to fpdf just like passing…
0
votes
2 answers

FPDF linebreak in PHP

Hi so I am making a program that will fetch data from the database and display it in pdf. Some of my data are in paragraph. My problem is I have no idea how to put a linebreak in there. The output shows that they only took one line and all of the…
desteen
  • 187
  • 1
  • 1
  • 10
0
votes
2 answers

FPDF encoding on writing not working in Python

I'm trying to create a PDF file using Python and FPDF. I've read the project's page about unicode and I've tryed to follow their instructions, but everytime I run my program, I receave the error: File "eventsmanager.py", line 8 SyntaxError:…
0
votes
1 answer

FPDF Character encoding

I've seen many question on SO about generating PDFs in PHP with help of FPDF and also many problems with encoding. My native language is Slovak, so far I found out that I should be using ISO-8859-2 encoding. I tried converting UTF-8 to ISO-8859-2…
hocikto
  • 871
  • 1
  • 14
  • 29
0
votes
0 answers

Internal Server Error when creating an FPDF using LINUX raspbian

I'm trying to make an PDF in raspberry-pi using FPDF, but I have this error below: I tried renewing the permission using chmod setting it to 755, This is my…
Gaboo
  • 11
  • 1
0
votes
1 answer

Class 'FpdfTpl' not found but required / included

So I am very confused.. The paths for the requires below are correct. Been working in Java on Android and haven't been in PHP for awhile but I have done a lot in PHP and never had this issue. Autoload should be loading everything according to the…
0
votes
1 answer

Question relates to "Parse error: syntax error, unexpected 'class' (T_CLASS) in FpdiTrait.php"

I see by all the threads that this issue has arisen many times in differing environments and in different forms. Most answers I have seen suggest changing the PHP version. Here's my puzzler. My client has a website that is running on PHP5.6. I…
0
votes
0 answers

how to use sessions in generating invoice with tcpdf and php?

Here user can order their items and after confirmation of order they can download invoice file. After a quick Google I know about fpdf and tcpdf.but my question is how to create unique users invoice pdf through tcpdf and php? This is my cart…
AYAN ADHIKARY
  • 33
  • 1
  • 4
  • 12
0
votes
1 answer

how to create invoice pdf with php and fpdf?

Here user can order their items and after confirmation of order they can download invoice file. After a quick Google I know about fpdf .but my question is how to create unique users invoice pdf through fpdf and php? This is my cart page. When user…
AYAN ADHIKARY
  • 33
  • 1
  • 4
  • 12
0
votes
0 answers

How to add text into an existing PDF using PHP?

I need to add a small text so that it is in the footer of my PDF file. I am trying following code: require_once('pdf/fpdf/fpdf.php'); require_once('pdf/fpdi/Fpdi.php'); $fullPathToFile = "../assets/files/".$arquivo; $pdf = new…
sNniffer
  • 210
  • 2
  • 19
0
votes
0 answers

How to input multiple data stored in different variables in one cell of a pdf using fpdf library and php

How to input different strings in one cell when creating a pdf using fpdf?
ochieng seth
  • 59
  • 1
  • 14
0
votes
0 answers

How to set a password in generated PDF from fpdm(Fpdf) library class?

I want to know how to set a password in a PDF generated from fpdm(fpdf) library , I tried integrating the password protection of fpdf in fpdm library but it doesn't work. Library used: http://www.fpdf.org/en/script/script93.php Framework:…
Hanens
  • 1
0
votes
0 answers

How to Show x^n as x power n in fpdf?

I want to print MySQL table and it contains a few values in X^n format. I want to print them in pdf report as Xn How to do that? I want it in PDF report, not in an HTML page. I have no problem with showing with tag in an HTML page.
prasad K
  • 123
  • 7
0
votes
1 answer

How to display Yes and No instead of binary 1 & 0 in fpdf?

I am creating a pdf using fpdf and posting the input from the form. I want the value 1 0 to be yes No in the pdf.I have use this value 0 1 to do some calculation ....I just want to change in pdf...Now the pdf shows 1 for yes and 0 for No
Mht
  • 3
  • 3