Skip to main content

Questions tagged [tcpdf]

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.

0 votes
0 answers
38 views

Want to reduce PDF size tried JsPDF to TCPDF [closed]

I'm working on application whose frontend on Angular and backend on Laravel, from the frontend pdf generated through jsPDF which is approx 465KB then on the backend few other pdfs merge with it so It ...
Kamran Allana's user avatar
1 vote
0 answers
38 views

Rotating a Barcode in TCPDF when embedded in HTML

Im generating a PDF in PHP with a barcode. Within the document, I need one vertical barcode and one horizontal. Heres my sample code. The barcodes generate fine. $data = $pdf->serializeTCPDFtag('...
Shane's user avatar
  • 11
1 vote
1 answer
19 views

How to Avoid Adding Padding Top Before the First Row in TCPDF Table?

I'm using TCPDF to generate a PDF document, and I'm encountering an issue where there's an unwanted padding or space at the top of the table before the first row. Here's the relevant code and a ...
Sheikh Wahab Mahmood's user avatar
0 votes
0 answers
35 views

Blob image in header breaks the page

I want to display in the header of the document, an image from the database. The image depends on the company being selected. I tried every solution I found here, nothing works. Two of them work ...
Sorina's user avatar
  • 1
0 votes
0 answers
67 views

How to display 12 Qr Code per page using tcpdf in php?

I'm not able to get the exact result after page 1 with 12 qrcodes So far I tried this code, and I'm expecting to display 12 QR code every page. $pdf->SetFont('helvetica', '', 11); $style = array( ...
Mir's user avatar
  • 1
0 votes
0 answers
15 views

PHP TCPDF ERROR: [8] Undefined offset: 29 using < character

I am trying to generate a pdf using the '<'character, but It shows me this error. I think the < character is the problem, because I am using html tags and they use the character to close any tag....
PROX's user avatar
  • 31
0 votes
0 answers
20 views

Generate dynamic table of contents with TCPDF

I am using TCPDF to generate pdf documents. The source of the file is html with dynamic fields, and this dosnt let me know the right pages to put into my table of contents. Does somene have any idea ? ...
Chawki Ellouze's user avatar
0 votes
1 answer
41 views

TCPDF cannot apply Italic-Bold Calibri font style

You should know I converted the calibriz.ttf using php tools\tcpdf_addfont.php -b -t TrueType -i calibriz.ttf and stored under the application\libraries\fonts. FYI I also did install all the calibri ...
YangDev's user avatar
  • 133
0 votes
0 answers
20 views

Blank PDF Issue when using TCPDF and Adobe Acrobat

I'm using TCPDF to create a PDF using TinyMCE to input the text. Then, I'm using TCPDF's method writeHTML to generate my PDF. TINYMCE Editor However, if Adobe Acrobat is activated in my browser, the ...
Rafael R.'s user avatar
0 votes
0 answers
50 views

Validate digital signature using TCPDF PHP

I created a signed PDF file by using TCPDF. I used this function: setSignature() Howerver I can not find any function to validate this signed PDF file. Following example 52 of TCPDF documment, they ...
Chlaris Butler's user avatar
1 vote
0 answers
24 views

Tamil Letters not displayed Correctly in TCPDF [duplicate]

My PHP Code is below describes. i want to display tamil letters in pdf using php.. **My Code Is ** <?php require_once('tcpdf_include.php'); $pdf = new TCPDF('P', 'mm', 'A4', true, 'UTF-8', ...
Golden Saravana's user avatar
0 votes
0 answers
62 views

Error Laravel site : GD library error : failed to open stream: No such file or directory

Since this morning I have an error when I try to generate a PDF, I have this message : Exception TCPDF ERROR: GD library error: imagepng(/tmp/...
Vaas's user avatar
  • 1
0 votes
0 answers
59 views

Some kanji characters cannot be displayed when using TCPDF

I am using TCPDF latest version (6.7.5) to export PDF documents. In the document there are some Japanese kanji characters that cannot be displayed. I have tried using fonts like cid0jp, cid0cs, cid0cs,...
thinh1995's user avatar
1 vote
3 answers
252 views

How to make TCPDF fit content from PhpSpreadsheet

I need to fill the existing Excel sheet regularly and export it to PDF. But I can't do it so that the content fits the page. $spreadsheet = IOFactory::load(Storage::path('Time&Attendance Template....
barmaxon's user avatar
  • 157
-1 votes
1 answer
149 views

How to create correct Scan&Pay QR code in PHP

I am developing my own plugin that handles PDF generating (invoices, pro-formas etc.). I would like to include QR code that if user scans in the Bank app it will set the payment data for them (name, ...
Michal Talafa's user avatar

15 30 50 per page
1
2 3 4 5
147