2,205 questions
1
vote
0
answers
31
views
Is it possible to disable the automatic UPC checksum check in TCPDF?
I'm using TCPDF to generate a page of retail store bin tags. These tags include a 1D UPC barcode. The system has worked for years, save for one problem: manufacturers and/or distributors occasionally ...
0
votes
1
answer
29
views
mPDF auto page break in a table row with long text
I want to switch from TCPDF to mPDF. In my document, I'm using a two column layout which itself contains subtables that might have different height, so it looks like a fluid layout. With TCPDF it ...
-2
votes
3
answers
55
views
issues with footer being different on all pages but the last [closed]
I am using PHPv8 with TCPDF v6.3.0.
I have an HTML footer being printed on every page (basically it's just an image right now).
On the very last page, it prints the exact way I want it to. However on ...
0
votes
0
answers
14
views
replace TCPDF logo with costum
in codeigniter 3 i have a controller method to create pdf from html content using TCPDF as follow;
public function generatePDF_correct_numbering1() {
// Initialize TCPDF
$pdf = new TCPDF('...
0
votes
0
answers
16
views
Trying to duplicate a pdf file hangs on write using TCPDI
I'm trying to sign a PDF file with a certificate and I have some fallbacks for when it fails, like reading the PDF file and writing a new file then signing that file, reading the PDF file as image, ...
3
votes
0
answers
38
views
Problem writing arabic vowels with custom fonts in TCPDF
I tried example No. 18 (https://tcpdf.org/examples/example_018/) and it works very well with the predefined fonts.
However, for my project, I wanted to use the "Traditional Arabic" or "...
0
votes
2
answers
98
views
Adding annotation to signed pdf using PHP with fpdf and tcpdf removes signature
I'm trying to add a page with an annotation box to an existing signed pdf. This should be possible with TCPDF and FPDF. Unfortunately, it removes the sign and the pdf cannot be validated after being ...
0
votes
0
answers
26
views
Border-Radius for Table Cells in TCPDF
I'm currently using TCPDF for generating PDFs, and I'm trying to apply border-radius to tables in my document. However, I’ve noticed that border-radius CSS styles are not being applied as expected. My ...
0
votes
1
answer
29
views
TCPDF Image not showing
private function generatePDF($pdfData)
{
$pdf = new \TCPDF();
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Your Company');
$pdf->SetTitle('...
0
votes
0
answers
110
views
TCPDF "unable to read file: helvetica.json"
i installed the newest TCPDF version from the https://github.com/tecnickcom/tc-lib-pdf repo.
and when i try this in my code
#[Route('/pdf/{id}', name: 'app_test_pdf')]
public function pdf(...
0
votes
1
answer
77
views
Is it posible to click an image and then execute javascript in a pdf document created with tcpdf?
I'm creating a PDF document with Laravel and TCPDF (elibyy/tcpdf-laravel).
I want to show/hide a layer when clicking an image.
I can do that by clicking on a button because the Button() method has a ...
0
votes
1
answer
33
views
returning a pdf (TCPDF) with a laravel api
I am moving a laravel app to a laravel api and I have a functionality to create pdfs with TCPDF in the laravel app it works without any problem but when I try to move this functionality to an api I am ...
1
vote
0
answers
106
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('...
1
vote
1
answer
32
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 ...
0
votes
0
answers
40
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 ...
0
votes
0
answers
79
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(
...
0
votes
0
answers
26
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....
0
votes
0
answers
39
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 ?
...
0
votes
1
answer
90
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 ...
0
votes
0
answers
34
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 ...
0
votes
0
answers
116
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 ...
1
vote
0
answers
40
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', ...
0
votes
0
answers
98
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/...
0
votes
0
answers
98
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,...
1
vote
3
answers
389
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....
1
vote
2
answers
530
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, ...
0
votes
0
answers
23
views
How to change backgroud color both header logo and title on TCPDF library
Image went backwards when I add backgroud color
I added background color to my pdf file header but after that logo went backwards.
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, 'MY ...
0
votes
0
answers
172
views
TCPDF - Image on Whole Page
I have a problem with TCPDF, I would like the photo to cover the entire page, but the changes added to the code, i.e. resize, fitbox, fitonpage, do not introduce the desired changes. The photo should ...
0
votes
0
answers
65
views
TCPDF: Unable to Fill Forms in Adobe Acrobat with Password Protection Enabled
"I'm facing an issue with TCPDF where I'm using the SetProtection method to protect a PDF with an owner password. Here's the code snippet:
$pdf->SetProtection(
array('print', 'modify', '...
0
votes
1
answer
86
views
TCPDF centre text in a TextField
I am using TCPDF to generate a form. When the generated form is completed I would like to centre the text within the TextField. I suspect this may not be possible but could do with this confirming ...
0
votes
0
answers
19
views
TCPDF, SQL, HTML <table> integration and output question
So this code kinda works. The portion that doesn't work is the filling in of the table information (specifically the got here 2,3,4 do not show up on the generated PDF). I know the SQL works as I've ...
0
votes
1
answer
47
views
Is there a way to specify the bleed in TCPDF?
I am using TCPDF to generate a PDF that will be printed by a professional printing company.
They have the requirement that the 3 mm of the bleed are contained in the dimensions of the pages in the PDF....
0
votes
0
answers
64
views
TCPDF: modify number of total pages
I'm creating a PDF using TCPDF, specifically with FPDI for importing pages. My document includes a footer displaying the current page number and the total number of pages like so:
$this->Cell(0, 5, ...
0
votes
0
answers
42
views
TCPDF add alt text to image
Is there a way to add an alternative text to an image which is generated with TCPDF?
I've found some docs saying something about this, but after reading about it, it doesn't do it the way it should:
...
0
votes
1
answer
46
views
TCPDF problems with the browser chrome from Mobile
I'm a PHP developer, I coded an app using CodeIgniter 3 and it creats PDF files; I was using TCPDF for generating PDF docs. The TCPDF version was 6.2.25.
But now I upgraded my CodeIgniter from 3 to 4....
0
votes
0
answers
64
views
Generate a PDF with TCPDF including and ECHARTS
I need to generate a PDF file that includes an ECHARTS in it.
I'm trying something like this:
<script src="../x/plugins/echarts/echarts.js"></script>
<script src="../...
0
votes
0
answers
33
views
TCPDF - Editable Fields - Javascript copy field to another one on update
Once a tcpdf is generated.
We need to be able to copy the content of one field to another one.
Thoses fields are editable.
Example of the code :
` $formFieldLabels = array(
'Name:' => '...
0
votes
0
answers
71
views
Problem TCPDF automatically added html extension to the PDF file in android browser
Here my code
in contoller
TCPDF::writeHTML($html_content, true, false, true, false, '');
return TCPDF::Output('test.pdf', 'D');
in blade
<a href="/tes.pdf" type="button" ...
0
votes
0
answers
48
views
TCPDF problem with semi transparent regions of pngs
I have got a problem with semi transparent regions of pngs in rendered pdfs by tcpdf. It seems like these regions get cut out. I suppose it is something related that it is treated like a 8-bit png? ...
0
votes
2
answers
4k
views
Deprecate required parameters after optional parameters in function/method
I have update PHPV 7 to PHP 8..1.2 Now whole my application lots of diffrent errors like this.
My main problem is how to solve this issue in the tcpdf library? i have updated the tcpf library the ...
0
votes
0
answers
116
views
My signature validated on other computers are cannot found certificate
I've use TCPDF library to sign the pdf.
The result is okay, but when i validate on difference computer(with adobe acrobat), it's tell me that Signature Validity is UNKNOWN
the signer's identity is ...
0
votes
0
answers
396
views
PHP - TCPDF Error: Some data has already been output, can't send PDF file
I have a problem with last version of TCPDF for PHP (version 8.3).
Executing this code and using TCPDF library:
require_once("/var/www/shop/tcpdf/tcpdf.php");
function ...
0
votes
0
answers
103
views
TCPDF - Data not displaying correctly in table columns
I am working on generating a PDF using TCPDF in PHP, where I fetch data from two MySQL tables, checklist and checklist_notez. The goal is to display the data from these tables in separate columns in a ...
0
votes
0
answers
725
views
This PDF document probably uses a compression technique which is not supported by the free parser shipped with FPDI
i want to import an existing PDF file using TCPDF and FPDI and add a watermark and a stamp image to my PDF but i have this error
This PDF document probably uses a compression technique which is not ...
2
votes
1
answer
321
views
PDF signature invalid after timestamp to TSA
I've tried to sign pdf document using TCPDF in PHP.
The signature seems work properly but after i send my base64 pdf file to TSA for timestamp the document.
My Signature was invalid(in Adobe: The byte ...
1
vote
0
answers
162
views
How can I merge two pdfs with editable form elements in Laravel 10 without loosing the editing feature
I am using laravel snappy pdf library to generate a pdf file with form elements, and save it to a predefined storage disk using the following code
$fileName = 'run-' . time() . '.pdf';
$pdf = ...
0
votes
0
answers
72
views
Kurdish font using tcpdf library not working
Useing this code kurdish text not display correctly in pdf.
require_once('tcpdf_include.php');
require_once('../tcpdf_import.php');
require_once('../tcpdf.php');
$pdf = new TCPDF(PDF_PAGE_ORIENTATION,...
0
votes
1
answer
59
views
Issue with Rendering Base64 Image from POST Request in TCPDF
I have a base64-encoded image:
var croppedMap = croppedCanvas.toDataURL('image/png');
var form = document.createElement('form');
form.setAttribute('method', 'post');
...
0
votes
1
answer
293
views
Need Assistance with Digital Signature in PHP using TCPDF
I am currently working on implementing digital signatures in PHP using TCPDF to sign and export documents in PDF format. However, when I attempt to validate the signed PDF on platforms like Adobe, I ...
2
votes
0
answers
102
views
TCPDF Tamil Unicode Issue
My code is
<?php
header('Content-type: text/html; charset=UTF-8') ;//chrome
require_once('tcpdf_include.php');
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, ...