tcpdf Questions

7

I'm trying to generate a PDF file containing labels which are 202mm wide by 50mm heigh. I have managed to do this and added the required text and a barcode but my problem is that the labels print o...
Mello asked 30/3, 2011 at 10:14

7

This example on tcpdf's website shows how to use page formats like A4, A5 etc, but how do I set tcpdf to use custom sizes like 175mm x 266 mm? Solutions appreciated.
Endothecium asked 16/10, 2010 at 12:7

4

Solved

I would like to add a custom font to a pdf I'm generating using TCPDF. I might be missing something but the docs seem to be out dated. They are referencing the addTTFfont() function but I think it'...
Bekah asked 27/4, 2015 at 12:41

3

How to open links in new tab/window which is in pdf document. I tried target="_blank" but it did not work. I was found javascript solution on the internet. But how I can use javascript in tcpdf. ...
Solidary asked 1/4, 2013 at 11:49

12

Solved

I'm using TCPDF to print a receipt and then send it to customer with phpMailer, but I have a problem: I have no idea how to save the file into a pdf. I've tried this: // reset pointer to the la...
Varner asked 6/9, 2012 at 16:37

5

I'm trying to achieve simple 1px solid red border around each page generated in TCPDF. Previously using other PDF scripts I was forced to draw a rectangle after doing some rough calculations with g...
Overflow asked 10/2, 2011 at 10:27

4

So I have an assignment where I need to output the data from mysql database in PDF. And of course I am using PHP on this. I already started using FPDF since the first tutorial that popped up when I...
Oballa asked 27/2, 2019 at 5:11

4

Solved

I have several PDF templates that I would like to load and modify and output using tcpdf. Is it possible to load an existing PDF and use it as a starting point in tcpdf?
Bunkum asked 13/9, 2009 at 21:56

3

Solved

I'm struggling to understand how the header function is working in tcpdf. Is is possible to use $pdf->writeHTML to the header? http://www.tcpdf.org/examples/example_003.phps I would like to disp...
Sair asked 22/9, 2014 at 13:15

2

Solved

I try to create tcpdf using writeHTML like this $pdf->writeHTML($html, true, 0, false, 0); which $html value like code below <table border="1"> <tr> <td width="100%" colspan="4...
Nelia asked 18/9, 2014 at 6:58

2

I'm trying to dynamically add some text to an existing pdf file. I've tried both FPDF and TCPDF combined with FPDI to import the existing pdf. That's ok. But, as expected, all existing links from...
Anoxemia asked 30/4, 2015 at 12:56

7

Can somebody tell me what i am doing wrong? I need Arial font in my pdf generated by TCPDF. First I've tried to use that : 1) I got Arial from windows fonts caltalog and put it in TCPDF directory. ...
Mejias asked 14/1, 2012 at 9:12

2

I used getNumPages() function to get the total number of pages in tcpdf, but I didn't get the correct output. What should I do to get the correct number?
Button asked 2/4, 2012 at 13:42

8

Solved

I am using TCPDF to create dynamically generated pdf file . In my pdf file a image is generated based on user input and I want to add that image on my pdf file . Here is my code $map_image = "ex...
Belay asked 21/11, 2014 at 12:1

3

I want to add an image in header using TCPDF in my Magento store. I am doing this: $tcpdf = new TCPDF_TCPDF(); $img = file_get_contents(Mage::getBaseDir('media') . '/dhl/logo.jpg'); $PDF_HEADER_LO...
Choosy asked 15/5, 2016 at 10:36

12

Solved

I am using TCPDF Library Version: 5.9.011. I am trying to execute HTML layout as PDF. For which I tried with example provide with the site $html = '<h1>HTML Example</h1> <h2>List...
Knur asked 10/11, 2010 at 6:40

8

Solved

Is there a way to have a different header logo for the 1st page in a document and different for the 2nd page? I thought that changing the header data between adding pages might do the trick, but i...
Gall asked 1/3, 2012 at 8:49

10

Solved

this question seems an evergreen on TCPDF... I have an issue that's driving me crazy. I have an html code that I use as "template" for my PDF, here I have my company logo. Everything works fine on...
Relative asked 4/12, 2012 at 12:27

8

The Problem: TCPDF & mPDF error: Some data has already been output to browser, can't send PDF file I gave up on trying to fix the error with TCPDF and installed mPDF only to get the same erro...
Nigel asked 22/11, 2013 at 14:13

3

Solved

I am using TCPDF to generate a 2 page pdf document. I have added a header and a footer to the document. The text part of the header and footer shows up correctly on each page however when I includ...
Apologia asked 5/10, 2018 at 9:17

5

Solved

The code used to print the pdf is as follows: class MYPDF extends TCPDF { // Load table data from file public function LoadData($file) { // Read file lines $lines = file($file); $data = arra...
Saccharify asked 11/1, 2013 at 8:25

5

Solved

I'm having a problem with TCPDF. My custom font (and any other included font) isn't working when using writeHTML. $tcpdf = tcpdf_get_instance(); $fontname = $tcpdf->addTTFfont('/antiquariat/sit...
Spritsail asked 22/7, 2014 at 10:26

4

Solved

I'm having a strange issue with Git. I use Composer to include TCPDF in my application, but I can't get it added to my repository. Here's what I do step-by-step: The status quo. These are just...
Hit asked 15/11, 2016 at 9:47

3

How can I import an existing pdf file into the new-created pdf using TCPDF? So assume I am currently doing an invoice section. Once the user click print invoice, I will start gather the data and t...
Featherston asked 29/11, 2016 at 5:26

3

Solved

How do you make a table like this with FPDF using PHP? I can't seem to figure out how to do this with $this->Cell.
Derringer asked 15/11, 2012 at 22:6

© 2022 - 2024 — McMap. All rights reserved.