You've edited the meta data - not the document. The title that appears on the page is set here: $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
Conversion from what? If this is html you could perform a regex relace using php.
ts was added as a file extension in WinMerge 2.16.7
Try using the absolute url including http
The booklet mode demo is for demoing margins that are different depending on whether it is a right or left hand page. I don't think there is a way to set booklet mode as the default print option. When I do booklets I create a source pdf and then create a booklet pdf from it by reimporting the pages and creating the layout.
You have the line return $output; You should only do this if the PDF is not being created. On 26 Dec 2017 10:13, "Ndayishimiye Muhamudu" muhamudu@users.sf.net wrote: Please How can I resolve this problem, I'm usinf PHP5. Here is my Codes. $query = mysql_query("SELECT * FROM student_tb ORDER BY firstname ASC"); $count = 0; while($row = mysql_fetch_array($query)) { $count++; $output .= " <tbody> <tr> <td>$count</td> <td><img src='student_img/".$row['profile_picture']."' style='height:50px; width:50px;'></td>...
What printers have you tried? What is the error you get? Are you using PCL or Postcript print drivers? Can you share a PDF that won't print?
You need to use code tags every time you post code else I can't see it. You also need to post code I can run that shows your problem. Try writing a basic page that doesn't do anything with your database, that runs standalone and demonstrates your problem. Then share this page and pdf and people can use it to help you.
I was suggesting your provide code that shows your fault, that I can run. I can't see your generated code when you use db variables. However it seems you have a field with html that ruins your layout? Have you tried using PHPs strip_tags()?
The html has been stripped by the message board so we don't even know what your problem is. Please provide the minimum amount of code to demonstrate your problem. And please use the code tags
Have a look at this example: https://tcpdf.org/examples/example_047/ You can start a transaction, then at the end of your operations, count the pages (or check to see if the current page is blank) and then work out if the current page or the previous page needs the end footer. If it is the previous page you can rollback the transaction and run it again specifying the page number that requires the footer.
Yes it will. This line has the effect of removing the last page if it is blank (such as when added by autopagebreak).
Or you could run it as a transaction to find out how many pages there will be, then set a flag that makes the footer appear on the specific page number and run it again.
The correct-footer.png attachment is missing so I can't see what it is supposed to look like. Have a look in TCPDF.php and search for this section: if ($plendiff == 0) { // remove last blank page $this->deletePage($this->numpages); } Commenting it out may accomplish what you want.
I've not looked at your specific example, but if I recall correctly, it will have created a new page when it met the page break, and then the new empty page will have been removed when the pdf closed.
I've not looked at your specific example, but if I recall correctly, it will have created a new page when it met the page break, and then the new empty page will have been removed when the pdf closed. On 25 July 2017 at 03:45, Abrar Sheikh abrarsheikh@users.sf.net wrote: Can someone help me? Strange behaviour defining a footer for the last page when using AutoPageBreak and writeHTML https://sourceforge.net/p/tcpdf/discussion/435311/thread/eed0b01d/?limit=25#44e5 Sent from sourceforge.net because...
See this thread: https://sourceforge.net/p/tcpdf/discussion/435311/thread/4fbe6f...
In my code I use GetStringWidth to check the string will fit, or make changes based...
Not that I know.
A browser is more forgiving to bad html than TCPDF. Try the HTML here: https://v...
Are error messages turned on in PHP? Can you validate your HTML table? Eg. is it...
I notice none of your images have any alignment information. Have a look at this...
Can you put it in code tags?
Can you post the HTML that has been generated?
Why not create a parent table to put them in? (You wouldn't do that for a webpage,...
It will be something like: $a = $imageWidth/300; //Gives image width in inches; $x...
Sorry. I only just read the subject line. I would do some regular PHP to find the...
See GetX() and GetAbsX() in the documentation.
Here is an example of what I use when creating booklets: $preferences = array( 'FitWindow'...
I think it may in part be because you are using a font that you haven't embedded....
Please share the PDF and the code.
This element is some invisible text that reads: Powered by TCPDF (www.tcpdf.org)....
Are you able to post your code? For example what values have you set your margins...
Do you have some code to show what you are doing? You could put your images in d...
Your images look to localhost so I can't see them. And can you include your code...
Have you tried setting the font like this: $pdf->SetFont('freeserif', 'BI', 20, '',...
Yes you can. See http://www.tcpdf.org/fonts.php
You have a space in your class name on the table cell. Does it work when you remove...
I hardcode.
I do this but I do all my measurements in mm. eg. <table width="150mm">
are your pdfs actually multipage? or are they a series of single page pdfs?
You'll need to specify where to import the page, so something like this: foreach...
It is very difficult to say without seeing your code, it may not require much to...
You could either use columns to split over the pages, or create an A4 pdf, then import...
Have a look at this section of the docs: http://www.tcpdf.org/doc/code/classTCPDF.html#ad99d9dea88f659fedf9fe11f30586a99...
I've tested it on my install and it displayed some fractions. <table> <tr> <th>Fraction</th><th>Decimal</th><th>Hexadecimal</th><th>HTML...
Another option is to create each label as a separate PDF then import them back onto...
Have you tried using css, "overflow: hidden;". I don't know if that is supported...
I'd check the text using getNumLines() to get the height of the text before drawing...
I am glad you found a solution. I don't have Verdana font for TCPDF so I used Helvetica...
If you share enough to reproduce the problem we may be able to help you.
Are you saying the text is too big for the cell and you need it to auto resize the...
are you able to share your code so we can see what you are doing?
Inkscape can open PDF and save as SVG or you can try FPDI with TCPDF to import P...
Inkscape can open PDF and save as SVG or you can try FPDI with TCPDF to import P...
I'd use something like GetStringWidth() to find the length of the text, then manually...
It exists in mine. Are you sure you extracted the whole zip file?
I think this is a genuine bug. The span tags in Example 61 don't work in recent releases...
Are you encoding them as HTML? Eg <
I'm enjoying your conversation. I've not tried to do this myself but I know tcpdf...
You will probably want to use htmlentities() to encode your text.
Have you tried using the font tag rather than span.
Have you tried using the tag rather than .
You can do it using FPDI. See this thread: https://sourceforge.net/p/tcpdf/discu...
You can do it using FPDI. See this thread:https://sourceforge.net/p/tcpdf/discus...
Are you running this on a webserver? If so you may want to change the output from...
This definitely produced something so try this and see how you get on: <?php ini_set('display_errors','On');...
I'd do something like this: <?php class MYPDF extends TCPDF { public function Header()...
Ah - I didn't even notice it there. That isn't accessible inside the function. The...
Where is $something being set?
For this I'd override the header function. You could add a check for an array and...
If you get an internal server error can you check your web server error log for more...
Hmm. Don't know what to say. It worked for me using file_get_contents.
Is it a public url I can try?
Does it work with file_get_contents() rather than curl? Do you need it to keep a...
In fact having now tried it, it is easier to do this: <?php $pdf->AddPage(); $pdf->StartTransform();...
In fact having now tried it, it is easier to do this: wzxhzdk:0 You are right that...
MirrorH should be fine and if you combine with translate should not require any further...
Are you looking for someone to do this for you, as a project, or do you just want...
What is it you want to accomplish? You can import PDFs into TCPDF using the FPDI...
Have a look at examples 27 and 13. You should combine these to get the effect you...
Something like this: <?php require_once "tcpdf/tcpdf.php"; require_once "FPDI/fpdi.php";...
Have you looked at the source of importPDF() ? I don't think it does anything yet....
Also you seem to create the text twice. Once for screen and once for print rather...
If you open the pdf in notepad, on line 1013 you can see there is a linefeed missing...
You should provide your code and/or the pdf for more advice.
I usually specify cell sizes in mm to ensure it draws how I expect.
I'd save the PDF to file and then do an AJAX check in the browser to see if the file...
By default writeHTML adds a new line following the HTML. See: http://www.tcpdf.org/doc/code/classTCPDF.html#ac3fdf25fcd36f1dce04f92187c621407...
Have a look at this for ideas: http://stackoverflow.com/questions/9106959/conver...
Start by turning on all php error messages. I suspect you'll get an error that will...
This isn't a TCPDF question but if you'd like help can you provide an example of...
Look at the docs: http://www.tcpdf.org/doc/code/classTCPDF.html#ac3fdf25fcd36f1dce04f92187c621407...
You should turn on your PHP error messages and see what errors you get.