I'm super excited to announce we've just published the new jsreport extension called pdf-utils which improves jsreport pdf generation capabilities by magnitude.
Its one line description may look boring at the first glance:
Merge or concatenate multiple pdf templates into one output pdf
However with further look it pops up this extension solves the most pdf generation limitations phantomjs, wkhtmltopdf or chrome has. Lets see this on the examples.
The pdf-utils comes with help. It lets you to make separate header template, render it into separate pdf and then merge it anywhere back to the main one. Even rotated on a side.
The common tools for rendering pdfs from html have very limited options to change page sizes or orientation dynamically. The pdf-utils is here again to solve this problem, because it allows to create multiple pdfs separately and concatenate them into one.
The pdf headers often needs to be aware of the full context and content of the particular page. The page number is not enough. Lets say a report needs header with summary of items visible on the current page. Again, this is not possible with common tools, but pdf-utils has the solution. It is able to embed information to each page and forward it to the fully dynamic header rendering.
This extension is one of the biggest pdf rendering improvements we have done in jsreport. Please install it, play with it and give us feedback. You can also find other examples and complete documentation here.