There is a question as it is possible to generate here such report in tax http://joxi.ru/RmzvVORS0oOywm with the filled data?
The full document here .
While such report needs to be unpacked only, the variant thought to use html-tables and css
Looked other libraries on generation of reports on php, did not find something on similarity of generation of such report, something can missed.
Advise, who can faced with such, not mandatory libraries on php, it is possible and in other languages, the main thing is generation of such report and its printout.