This project is part of a CodeIgniter project, but codeigniter experience is not required.
We have a very complicated document that print from data in mySQL tables. The code that creates the output has already been completed. We also currently have it printing to a pdf file using some 3rd party utility (not sure what it is). You can use this same utility or use your own.
The important thing is that you can create a document that looks professional each time it is rendered, even though the data will be different for different users. There are two specific issues that we know already exist and have had a difficult time correcting.
1 - The first section of the document is several pages of information that comes from different tables. Often, the data that needs to print is longer than will fit on one page. The way we are handling page headings is in the HTML so we had to try to figure out when to do a page break and insert a new page and page heading. This code does not work effectively. Sometimes it breaks too soon and leaves the first page way too short. Sometimes it doesn't break correctly and the data runs over to a new page with no new heading.
We need HTML code that will format and page break the document correctly (including not breaking in the middle of a word, etc) formatted document AND add the needed page headings.
2 - The second section of the document is several pages of charts. Sometimes the information in the charts require more than one page, and we need the page heading and the first row of the chart (the column headings) to repeat at the top of each page. Again, we have had difficulty determining where to break the page because the contents of each row are varied.
Also, you must keep in mind that the page headings are different on different pages, so it isn't something that can be set in a pdf as "page heading" and repeated at top of every page, unless it can be changed for each section.
As I said before, the code has already been written, which will save you a bunch of time. All you MUST do it change the way it is formatted. Although if you prefer, you can use the existing code as a guide and re-write using your own 'coding style'.
Attached is a sample of the document for your review and the HTML code that we currently are using.