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
0 answers
Html2Pdf : ImageException
I would like to generate a PDF file by using Html2PDF. My HTML code contains an image which generates an ImageException : Unable to get the size of the image.
Here is my HTML code :
![]()
ThBM
0
votes
0 answers
How to append a row to a table created in pdf using tcpdf by using javaScript or jquery?I have a form in which there are two fields: amount input and submit button. On submitting this form I want the data to be stored in database and should be displayed in pdf using tcpdf. Everytime i add an amount it should be appended to a table in a…
![]()
Abhinay Raj
0
votes
0 answers
TCPDF v.6.2.13 runs well if its file-based cache-folder gets rwx-rights (in no.: 7) for publicAs others have told in the past, TCPDF wants to cache some data into an file-system based cache on the webserver. My issue here is: my TCPDF ran well as long as i tested it locally on my apache2 server with folder cache under 744 rights, what is no…
![]()
marita
0
votes
0 answers
php-file responding correctly in local mode throws "fatal error" via httpmy tests with tcpfd run well as long as in terminal mode.
(see 1. and 2.). they don't when browser calls the same file via http (3.):
why?
local apache2 lists the file with appropriate rights:
tcPDFv6213 # ls -l…
![]()
marita
0
votes
1 answer
Display array as dynamic table phpI have the next array
$arreglo=[1,2,3,4,5..50]
I want to show that array in a table but I want that table have 10 columns, for example:
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
etc...
the number of rows depends on the size of…
![]()
Baker1562
0
votes
1 answer
mpdf merging file - File is encryptedIm trying to merge several pdf's into one using MPDF
function create( $paths ){
$pdf = new \Mpdf\Mpdf();
$pdf->enableImports = true;
foreach( $paths as $key => $file ){
$pdf->SetImportUse();
…
![]()
lior r
0
votes
2 answers
Fit image in an pdf area, math questionIt's late here and my brain doesn't work as it should so...
I have an image 244x175 pixels and I want to scale it in order to fit in an 125mm area for a PDF I am generating by using www.tcpdf.org.
How many much I have to scale it in order to fit…
![]()
chchrist
0
votes
2 answers
possible options to create pdf file using html elements to generate invoice in php and codeigniterHello Everyone this could be the most common question asked on stackoverflow,
I have an invoice template in html like this demo page. I want to generate an invoice pdf file, When user clicks on button.
Can anyone suggest me the best option to do…
![]()
deepak
0
votes
0 answers
Fatal error: Uncaught Error: Call to undefined method TCPDF::addTTFfont() in C\... Stack trace: #0 {main} thrown in index.php on lineI need to add Custom font using TCPDF. I followed the procedure as mentioned in TCPDF documentation like Conversion of TTFont to TCPDF fonts & add it fonts folder & define font in tcpdfconfig_fonts.php, & tried to call that function. This error is…
![]()
Saranya
0
votes
0 answers
TCPDF file download from js applicationI've got SPA(ember js), and REST API service - php(laravel 5.2).
I'm trying to download pdf document generated on server
That's how i'm generating pdf
$tcpdf->Output({path}, 'I');
if i visit API resource directly in browser everything is fine and…
![]()
Максим Сарвилин
0
votes
2 answers
How to show image in pdf page using TCPDF?Please find the below code. When i print_r() the output, image shows in the webpage. But image is not showing in the PDF page. Can anyone please tell me what is wrong in my code?
$link = base_url();
foreach($defect_photos as $defect_photo){
…
![]()
M N
0
votes
1 answer
A non-numeric value encountered php 7 tcpdf$header_x = (float)$this->original_lMargin + (float)($headerdata['logo_width'] * (float)1.1);
Severity: Warning
Message: A non-numeric value encountered
Filename: tcpdf/tcpdf.php
Line Number: 3422
![]()
Vishal Lunagariya
0
votes
2 answers
writehtmlcell content height before insert in TCPDFI want to know the height of specific HTML content so I can fix the position of an HTML table.
$htmlDatatable = "
|