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...
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'...
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...
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...
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?
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...
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...
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.
...
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?
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...
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...
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...
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...
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...
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...
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.