tcpdf

Issue with HTML2PDF, not rendering PDF

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:35:56
问题 For some reason the HTML2PDF/TCPDF is not rendering the PDF... and I have no idea why... :S render.php (main file) form.php (The links will lead you to the code im trying to use, so you can test it, you will only need the HTML2PDF Class) can somebody tell me why the form isn't rendering??? I'm freaking out!!! thanx in advance!! 回答1: The answer was the execution time. Solved it by using the set_time_limit() function. 回答2: Check the webserver logs for any html2pdf-related errors. If you're

cakephp tcpdf image error [Image] Unable to get image

别等时光非礼了梦想. 提交于 2019-12-11 04:24:37
问题 i am trying to figure out this weird issue using TCPDF and CakePHP. the fact is that i am able to output a "static" image like this $this->Image(WWW_ROOT.'/img/logo-infiniti.png', 15, 15); but when i use cakephp instruction for images it doesn't work anymore echo $this->Image->resize($line['Line']['UploadImage'][0]['name'], 100, 100); and i get this error TCPDF ERROR: [Image] Unable to get image: /Applications/MAMP/htdocs/configurator/files/cache/a/a/79x100_1316533443.jpg any help will be

Add a FNC1 character to code created with tcpdf datamatrix

走远了吗. 提交于 2019-12-11 03:26:09
问题 I am using tcpdf to generate datamatrix barcodes. Works really nice. Now I was asked if we could add fnc1 characters to our code. But I have no clue what the representation of the fnc1 character would be correct for the tcpdf generator. I came across this here http://sourceforge.net/p/tcpdf/discussion/435311/thread/161b1b1a But I would like to understand where the answer of using chr(241) actually comes from. To me it seems like it fell from the sky. Documentation doesn't say anything about

TCPDF do not display Chinese on Linux client

余生长醉 提交于 2019-12-11 02:26:06
问题 I cannot get TCPDF display any chinese character no matter what font I am using. I crawled and searched everywhere I could, including these interesting posts tcpdf-utf-8-problem tcpdf-encode-chinese-character but still without success. The sample #7 from TCPDF works well with a lot of different characters sets but if I add some Chinese to the text it will display as squares and the strangest thing is if I change the font to stsongstdlight as suggested in one message the text won't display at

TCPDF - Header image only displays on first page

心已入冬 提交于 2019-12-11 00:14:37
问题 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 include an image logo in the header it is only showing up on the first page. public function Header() { $this->Image('/home/xxxxxx/public_html/xxxxxxxx/uploads/logo/logo.png',10,6,0,13); $this->SetFont('helvetica','B',20); $this->Cell(80); $this->Cell(0,0, $project->name . ' - Project Plan',$frame,0,'R');

How do I position text in TCPDF using the XY coordinates of the bottom left of the text?

≡放荡痞女 提交于 2019-12-10 23:24:57
问题 I'd like to position text so that if the font size changes, the baseline of the text will stay the same. When I use $pdf->SetXY($x,$y); $pdf->Write(0, "Hello"......); This sets the position of the text at its top left. Note: I am using write to render the text. 回答1: I used the following syntax and am able to chose the absolute position to start the table. $pdf->SetFont('verdana', 'B', 18); $pdf->SetXY(15, 20); $output = <<<EOD <table cellspacing="0" cellpadding="1" border="0"> ..... $pdf-

TCPDF/PHP & Fonts: Uppercase Numbers (Descent numbers? Old style?)

核能气质少年 提交于 2019-12-10 22:39:15
问题 I'm given a special font with numbers like that: As you can see on the 3 for example, some numbers descent below the baseline. What I like to achieve is, that these numbers don't go below the line and that it looks like this: In Word this can be easily set in the character settings for the same font. How can one render digits in TCPDF like this? I'm totally stuck there and have no clue how to proceed. Cheers for any help! 回答1: It can be done, but it's messy... In principle you'll have to do

Fatal error: Class 'TCPDF' not found

北城余情 提交于 2019-12-10 20:48:31
问题 I am generating the PDF file but facing the trouble. Can anybody tell me the solution of this error. Below is the code that I used for that. I include the tcpdf for this but there is a fatal error that saying that tcpdf file in not available or we can say not found. <?php $tcpdf_include_dirs = array(realpath('tcpdf.php'), '/usr/share/php/tcpdf/tcpdf.php', '/usr/share/tcpdf/tcpdf.php', '/usr/share/php-tcpdf/tcpdf.php', '/var/www/tcpdf/tcpdf.php', '/var/www/html/tcpdf/tcpdf.php', '/usr/local

Why can't I use č,ć,đ charters in TCPDF table?

两盒软妹~` 提交于 2019-12-10 20:33:28
问题 I'm building a tcpdf file for my web site, in that tcpdf file ther is a table with some data, But I cant get this charters to work properly. for encoding I'm using windows-1250. The charters witch are not working : č,ć,đ. I have tried with utf-8 but still not geting this charters is there something wrong with tcpdf? here is my php: <?php require_once('tcpdf_files/config/lang/hrv.php'); require_once('tcpdf_files/tcpdf.php'); // create new PDF document $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF

generating PDF using TCPDF - cannot extract embedded font

时光总嘲笑我的痴心妄想 提交于 2019-12-10 19:44:12
问题 I'm using TCPDF for generating dynamic PDFs. It works fine but since I move my generator to a new server I have a problem. I'm getting a error when I open the pdf: Cannot extract the embedded font 'AAAAAC+FreeSerif'. Some characters may not display or print correctly. It displays symbols instead of text. On the old server the files are successfully generated but on the new server all I see are symbols. Anyone has any idea why this would happen? (the files on both servers are the same!). 回答1: