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.

Resources

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
  • 71
  • 5
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
  • 27
  • 10
0
votes
0 answers

TCPDF v.6.2.13 runs well if its file-based cache-folder gets rwx-rights (in no.: 7) for public

As 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
  • 1
  • 5
0
votes
0 answers

php-file responding correctly in local mode throws "fatal error" via http

my 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
  • 1
  • 5
0
votes
1 answer

Display array as dynamic table php

I 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
  • 337
  • 3
  • 20
0
votes
1 answer

mpdf merging file - File is encrypted

Im 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
  • 2,220
  • 7
  • 43
  • 80
0
votes
2 answers

Fit image in an pdf area, math question

It'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
  • 18,854
  • 11
  • 48
  • 82
0
votes
2 answers

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Hello 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
  • 13
  • 4
  • 10
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 line

I 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
  • 9
  • 1
0
votes
0 answers

TCPDF file download from js application

I'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
  • 69
  • 2
  • 14
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
0
votes
2 answers

writehtmlcell content height before insert in TCPDF

I want to know the height of specific HTML content so I can fix the position of an HTML table. $htmlDatatable = "
lbm gplus
  • 55
  • 6
0
votes
1 answer

Want to Display a LInk for Screen Only TCPDF

I am working on pdf Using TCPDF library, i want to display a link on PDF generated, but for screen only and not to be printed when the document is printed.
0
votes
1 answer

PDF and Roland printer specific code

I must be able to create a PDF with specific "color" codes for Roland printers. specific code : RDG_GLOSS RDG_WHITE CutContour so if I understand correctly ;) the PDF carries a JPG image and in addition information such as rectangles with a…
S8N
  • 147
  • 7
1 2 3
99
100
Sr. No Name