Project

General

Profile

Defect #686

Table cell spanning more than one page...

Added by Joe Privett about 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
08/11/2014
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

I emailed you recently about a problem in the version 5.01 of TcPDF Table, whereby if the contents of a table cell was large enough for the cell to span one page , TCPDF would hang and not complete generating the PDF document - has this been addressed?

I am using TcPDF Table version 5.0.1

PDF Table Bug.rar PDF Table Bug.rar 2.6 KB Joe Privett, 08/29/2014 12:11 PM
pdf.class.php pdf.class.php 72.3 KB Joe Privett, 09/01/2014 12:32 AM
7rows.pdf View 7rows.pdf 129 KB Joe Privett, 09/01/2014 12:32 AM
9rows.pdf View 9rows.pdf 130 KB Joe Privett, 09/01/2014 12:33 AM
pdf_native_test.php pdf_native_test.php 1.19 KB Joe Privett, 09/01/2014 01:39 AM

History

#1 Updated by Andrei Bintintan about 5 years ago

  • Status changed from New to Feedback
  • Assignee changed from Andrei Bintintan to Joe Privett

Can you upload a small example to reproduce this?

#2 Updated by Andrei Bintintan about 5 years ago

Is this issue related to #585?

#3 Updated by Andrei Bintintan about 5 years ago

  • Status changed from Feedback to Closed

Closing the ticket due to lack of response.

#4 Updated by Joe Privett about 5 years ago

Any chance of re-opening this case - I have attached an example of the code I am implementing.

The main script is ra_report_pdf_test.php

Basically, when the number of rows in my table is 7, the table is ok. 9 rows forces the table header to detach from the table body. Over 11 rows cause the script to run continuously.

#5 Updated by Andrei Bintintan about 5 years ago

  • Status changed from Closed to In Progress

#6 Updated by Andrei Bintintan about 5 years ago

Yes, of course we can reopen. Thanks for the examples, I'll have at it.

#7 Updated by Joe Privett about 5 years ago

Thanks. Is there a way to fast track this as we have a urgent situation whereby this bug is affecting our entire application?

#8 Updated by Andrei Bintintan about 5 years ago

  • Status changed from In Progress to Feedback

There is something wrong here.
Are you sure you use 5.01 of TcPDF Table??

From the example it seems that you're using the tfpdf -> the fpdf UTF8 Version.

            $table = new tfpdfTable($this);
            $table->initialize(array($obj_width), $table_config);

Besides that, what does the library/classes/pdf/pdf.class.php contain?
There are some functions in class pdf_report class that I cannot find:

$this->pdf();
$this->reset_page_style();
$this->convert(36)

#9 Updated by Andrei Bintintan about 5 years ago

I assume you're using tfpdf version 4.2.x >>> not sure though.

Can you send me a screenshot of your bug and also run the following test:
1. disable all your header and footer functions and check if the bug it's still there.

#10 Updated by Joe Privett about 5 years ago

Andrei Bintintan wrote:

There is something wrong here.
Are you sure you use 5.01 of TcPDF Table??

From the example it seems that you're using the tfpdf -> the fpdf UTF8 Version.

[...]

Besides that, what does the library/classes/pdf/pdf.class.php contain?
There are some functions in class pdf_report class that I cannot find:

[...]

If I check in the folder tcpdf_table\version_table file it says 5.0.1 ....
If I check in the folder tfpdf\class.tfpdftable.php and in tfpdf\version it says 4.0.6 !

I think that what's happened is that I purchased TcPDF Table from you a year or so ago, then discovered it was the wrong package, i.e. I should have purchased FPDF Advanced Table (UTF8). As I still have the TcPDF package in my file structure, I simply looked for that version, but I am not using it in the application!

I have therefore gone ahead and just purchased the latest FPDF Advanced Table (UTF8) package. Is there any chance of being refunded for the TcPDF package that I mistakenly purchased previously?

It's all very confusing TCPDF, TFPDF, FPDF (for me anyway :) )!

#11 Updated by Joe Privett about 5 years ago

ok, I installed v 5.0.1 and the same problem still exists. I have attached pdf.class.php, as requested, along with 3 examples of the output.

7rows.pdf is working fine. If i increase the example to 9 rows, the table header detatches fomr the table body. If i increase it to 11 rows, this is when the script runs indefinately.

Joe

#12 Updated by Joe Privett about 5 years ago

ok, i decided to create another PDF script ONLY using your libraries and I'm seeing the same thing. See attached.

#13 Updated by Andrei Bintintan about 5 years ago

  • Status changed from Feedback to In Progress

#14 Updated by Andrei Bintintan about 5 years ago

Ok, I see now the problem. I couldn't understand until now what the issue was. I will investigate.

#15 Updated by Andrei Bintintan over 3 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF