tcpdf Questions

5

Solved

I get my images in my pdf document on my localhost but on the production site i get the error TCPDF ERROR: [Image] Unable to get image i am using an html img tag to get the images and the src is th...
Cenobite asked 23/2, 2012 at 14:34

2

Solved

I haven't found a way to control linespacing in TCPDF's MultiCell as of version 5.9. Nor have I found any method that helps to mimic the same behaviour by using Cell, such as some method that retur...
Naissant asked 13/3, 2012 at 10:28

8

I try to create a PDF with multiple pages and need to calculate the height of each individual element (MultiCell) in advance to prepare for a page break. According to the documentation there are a ...
Loralorain asked 3/7, 2009 at 10:12

2

My site draws a column chart. I have a button to save it as a PDF file showing it before saving. The way it works now is this. google.visualization draws the chart. html2canvas takes a screenshot ...
Ganley asked 9/8, 2020 at 18:7

11

I am using TCPDF to generate a pdf. My issue is the following line from the Footer() method: $this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 'T', false,...
Mastiff asked 30/3, 2011 at 10:48

15

Solved

In TCPDF, there are only a few fonts to choose from, to create pdf files. I want to set Tahoma as my pdf font. How can I include Tahoma in TCPDF??
Nannettenanni asked 10/3, 2011 at 17:43

9

Solved

I am a web programmer with no in-depth knowledge of fonts and am struggling to get TCPDF to include our custom OpenType font. We have bought OpenType font files (.oft), which are not protected by a...
Milagrosmilam asked 15/10, 2013 at 15:50

4

Solved

I'm trying to make generate a pdf from a view but the styles just won't come out. I've tried using 3 different libraries but the results aren't much different. Am I missing something? view <!DOC...
Shropshire asked 27/5, 2021 at 21:35

13

Solved

By default, the values within tables cells (within tables generated by TCPDF) are vertically aligned right at the top of the cell. Has anyone found a simple method for vertically aligning text to ...
Marquettamarquette asked 28/5, 2012 at 7:49

13

I'm trying to generate pdf with the combination of TCPDF and FPDI. Here is my code. require_once('../tcpdf/tcpdf.php'); require_once('../FPDI/fpdi.php'); $fileName = '../sample.pdf'; class PDF e...
Telson asked 24/3, 2015 at 12:32

5

Can someone put together a clear and concise example of how you can create a PDF using TCPDF that will support text strings from any language? It appears there is not a single font that will suppo...
Honeyman asked 24/2, 2012 at 7:30

9

I am creating a large HTML table and I have problem with page breaks as you can see in the following image: Is there a method settle down the problem automatically? Or what is the way to do it?
Returnable asked 1/5, 2011 at 3:8

4

I'm using the tcpdf library to generate the pdf document. I'm using smarty template engine to hold the data. Below is the script to put in the header data: // set default header data $pdf->SetH...
Sensibility asked 24/1, 2013 at 7:4

1

I am using html to create pdf. Below is my code: $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); $pdf->SetMargins(15, 20, 14, 0); $pdf->SetAutoPageB...
Padishah asked 16/10, 2020 at 11:50

3

Solved

How can I create a link with TCPDF? When using the writeHTML() function and passing my whole html content, TCPDF doesn't make my links clickable. They are blue and underlined but I cannot click th...
Lima asked 13/2, 2013 at 8:37

6

How can I create a new document using other PDFs that I'm generating? I have methods to create some documents, and I want to merge them all in a big PDF, how can I do that with TCPDF? I do not w...
Talesman asked 27/10, 2009 at 10:49

4

so after browsing through many packages like TCPDF, FPDP, DOM2PDF and many other excellent php pdf packages, I couldn't find this feature in any packages where it allows to split the pdf file...
Needlefish asked 13/4, 2015 at 15:49

4

I need to align an image . But I did not get with the parameters passed inside the Image function in tcpdf . $pdf->Image(Image_Path, 0, 250, 210 , 0, 'PNG', '', '', false, 300, '', false, fals...
Crispa asked 19/5, 2017 at 4:40

2

I am generating PDF report using TCPDF's Cell method extensively. Text printed with Cell method spills beyond width specified in method. I want to print only as much part of the text that fits in t...
Bicarb asked 17/11, 2011 at 8:13

5

I need to handle images in TCPDF I get this error.. Imagemagick is installed, but how do I tell TCPDF the path to imagemagick? TCPDF ERROR: TCPDF requires the Imagick or GD extension to handle PN...
Herpetology asked 20/8, 2012 at 18:35

4

Solved

I use tcpdf to generate pdf files. And there's a problem in aligning image in table td. I am uising $pdf->writeHTML($html, true, false, true, false, ''); in tcpdf. html is clear from the im...
Florous asked 16/7, 2013 at 6:39

6

Solved

I am trying to create a header in TCPDF, however it always have a border underneath of it. Is there a way I can remove the bottom border?
Chatelaine asked 31/10, 2011 at 6:17

4

I need to print many 1D and 2D barcodes and plce them inside a html formatted doc. Looking around I found that this is possible using TCPDF methods, indeed the example No.49 gives the solution. $p...
Badge asked 22/5, 2015 at 17:51

16

Solved

Im using latest TCPDF version(5.9). But have some strange problems with encoding. I need Lithuanian language symbols like: ąčęėįšųūž. But get only few of it. Other remain like ????? So what should ...
Sitar asked 17/3, 2011 at 1:7

6

Solved

I've this string from Mysql db: $img_base64_encoded = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vR...
Earthnut asked 31/12, 2017 at 15:13

© 2022 - 2024 — McMap. All rights reserved.