Документ не верно печатает методом toHtml

Hello @artem1278495 do you have any updates or can we close the topic?