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

2096 questions
0
votes
0 answers

tcpdf custom footer adjustment

I am generating a invoice pdf using tcpdf in php codeigniter framework, i am using html template and then writing to pdf. Invoice pdf has company name then addreess , then item list and then price and sign etc. look at case 1 - if there is only 1…
gurbinder
  • 78
  • 8
0
votes
0 answers

TCPDF ERROR; undefined offset

I am new to php and html.I am currently developing a functioning bookstore website.In it the administrator needs to beable to download a pdf of the customer list. i have used the tcpdf library however i ran into an error while using it. The error…
0
votes
1 answer

Cannot generate PDF for some specific simplified chinese characters via TCPDF

I have an existing program (codes) to generate PDF file via TCPDF. It works fine even contain non-English characters in most cases, but now, when the content has either two simplified Chinese characters 喆 (unicode number: 21894) or 旻 (unicode…
NelsonC
  • 11
  • 3
0
votes
0 answers
0
votes
0 answers

Create a pdf on the go and send via swiftmailer

I am trying to create a PDF with TCPDF and send it via SwiftMailer, since Drupal Mail does not allow attachments.This is my current code: public function getPdfReport($document){ $html =…
0
votes
1 answer

TCPDF, $htmlContent & writeHtml() Alternative

I'm learning how to use TCPDF with CakePHP 3.x, & I want to know if there is any alternative to write directly the HTML code instead of writing it inside the Php variable(ex: $htmlContent), and after that, passing it through the writeHtml()…
Mehdi Bouzidi
  • 1,783
  • 3
  • 12
  • 27
0
votes
1 answer

Sending PDF File using Phpmailer generated by tcpdf

i am using PHP mailer to send the invoice in pdf . the pdf is generated using tcpdf plugin attatchment cannot attatched into mail i am using following code please help me what can i do ? $pdf->writeHTML($html, true, false, false, false, ''); …
Vivek
  • 47
  • 4
0
votes
1 answer

How to add a div with image and text 180 degree rotate in tcpdf

I have searched a lot for this solution but no luck, as tcpdf have a poor documentation so i found nothing, what i need is a name plate print as pdf using tcpdf, ant the template is so simple just as the image is But the problem is i can not…
M. K Hossain
  • 649
  • 1
  • 10
  • 24
0
votes
1 answer

TCPDF add pages automate

I want to export a webshop order into pdf. I have a long html content, that includes text and tables also. The pdf file, that the program generates, now it only has 1 page, but if i take a look at the content, that would be about 2-3 pages. What am…
0
votes
0 answers

PHP Combining Two PDFs Script Returns First Page Combined Twice

I've got a php script that merges two PDF files. The script works perfectly when I pull the two files directly from the server. But the point is to post the two treat the it as a service and post the two files as a base 64 encoded text and then the…
GisMofx
  • 798
  • 7
  • 23
0
votes
1 answer

tcpdf jQuery object conversion issue to pdf

I need to generate a PDF report and make that available as download on the screen. I created an html to display the report and passing the html to TCPDF to convert the html to PDF. There is a jQuery component in html which shows a graph. This graph…
sagar
  • 1
0
votes
1 answer

TCPDF save page number in mysql

I am using tcpdf 6.2.13 to print mysql data into pdf format. I am creating custom index with school name and page number. For that i have fetched the mysql data in foreach loop and loading school id to store page number in mysql for that…
jack
  • 147
  • 9
0
votes
1 answer

Using FPDF & FPDI & TCPDF

I want to write some text on top of a PDF template, and I achieved this using: FPDF & FPDI libraries. My code:
Learner
  • 541
  • 2
  • 7
  • 25
0
votes
1 answer

Unable to get the size of the image ( codeigniter , tcpdf , php )

I have a problem when trying to show picture in tcpdf using codeigniter, This is my pdf view: $base_url=base_url(); // NON-BREAKING ROWS (nobr="true") $tbleauproduct = <<

Hamza Najemi
  • 233
  • 2
  • 6
  • 15
0
votes
1 answer

TCPDF get value from database

I'm trying to get a value from the database. I want to get the name of id '17'. I'm using Laravel 5.4 and Tcpdf This is my controller code: public function createpdf($id) { $scan = Scan::find($id); $pdf = new \TCPDF(); …
itvba
  • 225
  • 5
  • 18
1 2 3
99
100