User Activity

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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?

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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.

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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()?

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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.

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    Yes it will. This line has the effect of removing the last page if it is blank (such as when added by autopagebreak).

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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.

  • Posted a comment on discussion Help on TCPDF - PHP class for PDF

    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.

View All

Personal Data

Username:
silid
Joined:
2004-03-15 20:31:21

Projects

  • No projects to display.

Skills

  • No skills entered.

Personal Tools