I am developing a site for generating a form with PHP & MySQL whereby a user puts in details (selections / static and freetext) and it produces the form in a printable format at the end.
The problem is the form has to be identical to the hand written / word printed forms. The main issue I have is when it goes over 1 page long.
The form used has a large header on first page (including how many total pages in the form) and then each subsequent page has a header with page number X of Y on it and every page has a signature space in footer.
Whilst I can emulate the form design fine using HTML there is no way to distinguish if form goes onto more than 1 page and how many pages there are etc…
Can anyone suggest any ideas on best way to generate the page and have those items inserted?
I have tried FPDF which has page counting and can insert total pages and page numbers but as it is a totally new class to me it was taking forever to try and emulate design off the form.
Have found some simple word document generators which would be ideal but no idea how to use them to insert headers / footers / page numbers.