dsgnmind Posted November 26, 2013 Share Posted November 26, 2013 (edited) Invoice seem to generate ok if all the content fits on one page. But now I notice that for larger / longer orders the pdf. Invoices are blank with only the standard header / footer. Is this a know issue as hinted or is it fixable. 1.5.3.1 Edited November 26, 2013 by dsgnmind (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted November 27, 2013 Share Posted November 27, 2013 Templates uses tables for invoices. Correct dividing the table with order details on more pages is the key to success. I would ask TCPDF documentation. Link to comment Share on other sites More sharing options...
dsgnmind Posted November 27, 2013 Author Share Posted November 27, 2013 So you are saying because the table gets so large it disappears? That makes some sense. (MSWORD does strange things with tables) But how do I fix it. Is it a code issue with prestashop or with the TCPDF files? Link to comment Share on other sites More sharing options...
tuk66 Posted November 27, 2013 Share Posted November 27, 2013 Look at these pages: http://stackoverflow.com/questions/6172246/tcpdf-performances-split-large-html-blocks-in-smaller-pieces http://stackoverflow.com/questions/11221174/tcpdf-split-html-table-on-multiple-pages Link to comment Share on other sites More sharing options...
dsgnmind Posted November 27, 2013 Author Share Posted November 27, 2013 (edited) I turned on error reporting and got the following. Warning: Division by zero in /home/content/77/10148277/html/shop/tools/tcpdf/tcpdf.php on line 22977Warning: array_fill() [function.array-fill]: Number of elements must be positive in /home/content/77/10148277/html/shop/tools/tcpdf/tcpdf.php on line 22979TCPDF ERROR: Some data has already been output, can't send PDF file Line 22979 is $table_colwidths = array_fill(0, $dom[$key]['cols'], $table_min_column_width); Edited November 27, 2013 by dsgnmind (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now