tcpdf

problem with TCPDF and CSS

Hello, I try to make a PDF writing CSS and HTML but my CSS doesn't appear in my PDF. The only thing considered is the font-size and font-color. I give you the code (sorry, it's a little long...) $config = sfTCPDFPluginConfigHandler::loadConfig('my_config'); $doc_title = "Fiche Logement"; $html = <<<EOF <style> .in...

tcpdf - center align a *block of text*

Centering text is easy enough, but what if I want to align an entire block of text (i.e., text shows up left-align, but block/box is dead center)... HTML would go like this: '<html><body><center><table width="90%"><tr><td>'.$html.'</td></tr></table></center></body></html>' but I cannot get tcpdf to center align the box using either...

tcpdf joomla output in wrong on live server.

Hi Guyz, I am working with joomla and have tcpdf for pdf, print article when i test on local server it shows me the right results on both but on live server only the print page works fine and pdf did not render perfectly, it show some machine specific code. thanks in advance. Farrukh ...

PHP / TCPDF: Template Bug?

I have been using TCPDF for sometime. It's simple to use, outputs low size PDF and is under active development. Following is the code for a page which should only have Hello World and a footer showing page number. However I get an additional Horizontal Line at the top of the page. http://yfrog.com/2tapdfj It's bugging me. How do i get r...

TCPDF Problem with header

Hi, guys. I have a weird bug with tcpdf. I am generating a pdf document with tcpdf. I derived tcpdf and created a class and made my own header and footer. The content of the pdf is printed using writeHTML function. The content is about 4~5 pages. The problem is the header is under the content from page 2. You can check it here http://m...

Emailing A Dynamically Created PDF Through PHP

I've recently created an online template for creating job postings for our website. Everything is all done, it formats correctly in a browser, automatically posts to our website, bla bla bla. The last piece I'm creating is to give the administrator a few options for distributing the posting to various places (via email) in a consistent,...

PHP MySQL: Saving PDF to Database

I am generating PDFs with TCPDF, I want to save the generated pdf as blob in a MySQL db. What data should I save to the db? Code for PDF page <?php require_once('../config/lang/eng.php'); require_once('../tcpdf.php'); // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false); //...

Need some help getting a pdf export to work properly

I'm using a 3rd party tool (TCPDF) to export data to PDF. If I use a form and post the data to the export php page it works fine. However, I have another need to call the same exporter page and pass it the params it needs via ajax to output the pdf file that way. Everything seems to be working fine, except when I get the output for th...

TCPDF QR Code is different all the time

I've got TCPDF installed in CakePHP 1.3 and am using it to generate a PDF of a QR code. It's a very simple function that creates a A9 sized page, two strings and one QR code. The QR code is for a simple url (ie. 'example.com/12345'). I can load the page in a browser (Safari using it's built in PDF reader.) and each time I reload it, t...

How to Handing EXTREMELY Large Strings in PHP When Generating a PDF

I've got a report that can generate over 30,000 records if given a large enough date range. From the HTML side of things, a resultset this large is not a problem since I implement a pagination system that limits the viewable results to 100 at a given time. My real problem occurs once the user presses the "Get PDF" button. When this happ...

How can I render existing view for output to PDF?

I am using the TCPDF app in CakePHP as a vendor. I have everything setup according to the instructions. I am able to produce a valid PDF and it works great. Now I want to take the results of an HTML rendered view that already exists and create a PDF from it. I set the HTML variable and use that in the view as: $pdf->writeHTML($html, tru...

tcpdf split text between two cells

Using tcpdf Is there a way to split either a html or text string such that it could be displayed in two cells if it reaches a certain height? (a further cell would be between the two cells) tried looking at getNumLines(), which might be useful if could then somehow split text at a certain line? ...

Adding 3rd part PHP classes to Zend Framework

Hi, I am new to Zend Framework. I am trying to integrate TCPDF with my controller so that I can generate PDFs on the fly. I'd like to put the entire TCPDF folder in library/tcpf (instead of the public folder where it is now) and have the application run but I dont seem to be able to get Zend to see it and use it. I read through the loa...

TCPDF Wrapping Text around an object.

Simple question. Let's say that I have a Cell full of text and I want to have a smaller Cell in the middle that has some related information in it. Is there function or feature in TCPDF that allows text in the bigger cell to wrap cleanly around the text in the smaller, inner cell? ...

TCPDF: Left and right aligning a cell leaving space between text and border.

Every time I draw a cell, I get this weird padding between where the border ends and where the text begins. This happens for left and right aligned text. It's much easier to show than describe, so here we go. My code sample: class FPDI_Report extends FPDI { var $now = null; function __construct() { $args = func_get_a...

Tab character in TCPDF

How do I enter TAB character befoare a paragraph. If I enter some spaces instead of TAB when I use the cell function to print some text that has two or three paragraphs justified the width of spaces before paragraphs is not the same for each paragraph and I need it to be. ...

TCPDF Custom page size

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

Alternative to TCPDF for large-volume pdf generation

I generate pdf documents with TCPDF. It's fairly easy to setup and very good for creating pdf files with <10 pages. I can generate 50 pages long PDF files within the 60 seconds default php timeout and can generate upto 200 pages when the timeout is set to 300 (SET_TIME_LIMIT(300)). I have also allocated 256 mb memory in the PHP ini....