TCPDF is a PHP class created by Nicola Asuni for generating PDF documents without requiring external extensions. TCPDF Supports UTF-8, Unicode, RTL languages, XHTML, Javascript, digital signatures, barcodes and much more. It is a fork of FPDF.
Questions tagged [tcpdf]
2193 questions
0
votes
1 answer
0
votes
1 answer
TCPDF won't recognize $_POST
I'm trying to create a pdf that receives data via POST,I know that the data is being received because i tested using "var_dump($_POST)".
Result:
array (size=9)
'orcCar' => string 'S' (length=1)
'contItem' =>
array (size=1)
0 => string '1'…

cthulhu
- 169
- 14
0
votes
0 answers
TCPDF : how to save automatically a pdf file?
I've these days been trying to automatically save a PDF file just after creating it, using TCPDF. But I always get prompted for a save destination, and I have to click the "save" button in order to save the file in a certain location.
I want all of…

Oussama Fathallah
- 105
- 7
0
votes
1 answer
TCPDF right margin not working with right alignment
When creating a PDF in PHP (with TCPDF), I have a line of text aligned to the right. When I increase the left margin, this line extends beyond the page border, though the right margin is specified at 10mm. The remaining of the text (left aligned)…

Rodrigo
- 4,706
- 6
- 51
- 94
0
votes
1 answer
TCPDF Image horizontal position not working
When creating a PDF in PHP (with TCPDF), I'm trying to position an image in the header, a small distance to the right of the left margin. However, the $x parameter is being completely ignored.
$img =…

Rodrigo
- 4,706
- 6
- 51
- 94
0
votes
1 answer
tcpdf in wordpress output crazy code
i would like to implement the tcpdf in my wordpress project. I tried to call below example tcpdf file (it's an example from tcpdf), unfortunately its output are crazy code as below,
%PDF-1.7 %���� 8 0 obj << /Type /Page /Parent 1 0 R /LastModified…

Jerry Lee
- 23
- 1
- 6
0
votes
2 answers
Get current text color in TCPDF
TCPDF allows to set the text color by SetTextColor method but I wasn't able to find any method to get the current text color. Is this simply not supported or did I missed something?
Use case: I'm writing a reusable helper for TCPDF which needs to…

jelhan
- 6,149
- 1
- 19
- 35
0
votes
0 answers
TCPDF - PDF Builder no longer working (even with previous github versions)
This is my first experience with using a pdf builder but I have been using github for maybe two years now and I have never experienced anything like this before.
Not only did the latest version stop working but, now previous versions that I checkout…

jamesbcn
- 307
- 4
- 6
- 20
0
votes
1 answer
QR (write2DBarcode) Code on TCPDF
I'm trying to create a PDF with two different QR code in the same line, but I'm getting the second QR code in a different size, Please check below code and picture.
$pdf->write2DBarcode('http://xxxx.xxx.php?sc='.$linha_id_to_print->xxx,…

Correia
- 23
- 1
- 8
0
votes
0 answers
TCPDF - Accented Characters are not displaying properly in svg using TCPDF
I am generating a pdf using the TCPDF library. I need to create a pdf of a svg image which has some accented characters that are not displaying properly. If I add accented characters without svg then it's working fine but it has problem in svg.
I…

Sandeep sidhu
- 67
- 7
0
votes
1 answer
Is it possible to make a TCPDF element with maximum height?
I'm working with TCPDF using PHP. I'm trying to make a PDF document that must be only one page long. This document includes a table, the data of which has a dynamically determined number of rows.
What I'd like to do is to give this table a maximum…

Adam Smith
- 449
- 9
- 23
0
votes
0 answers
Page number print on header when total page greater than one in TCPDF
I have one specific problem in PDF.
My requirement is that i have to print page number in header of the page only when total page of pdf is greater than 1.
I think this is not possible because before completing whole pdf page we can get total page…

Bhavin Thummar
- 1,255
- 1
- 12
- 29
0
votes
0 answers
How to Split Database Table into Pages in TCPDF
I am making a small PDF generation tool for my client. I am using TCPDF because the we need arabic font to be used in it. I am getting result from database. Now client requirement is 20 result per page. I searched alot on internet. But there is…

Abdullah
- 175
- 3
- 13
0
votes
3 answers
TCPDF WriteHTML() created link is not clickable
$pdf = new TCPDF();
$myHTML = 'TEST LINK';
$pdf->writeHTML($myHTML, true, false, true, false, '');
This is the screenshot of output in PDF from the code above but not clickable

Nico Sevilla
- 17
- 8
0
votes
1 answer
In TCPDF, this getAliasNbPages return value {:ptp:} so How can i get integer
In TCPDF vthis function show value {:ptp:} so How can i get interger.
So please help me. I need this value because i need apply some condition.
I have lot of checked documentation. But i can't found the solution.

Bhavin Thummar
- 1,255
- 1
- 12
- 29