Export to PDF Multipage java

I downloaded the java war file for exporting the scheduler to PDF from this link: dhtmlx.com/x/download/regular/sc … f-java.zip

I deployed the war file on my web server and am using this code:

scheduler.toPDFRange(new Date(2013,0,19), new Date(2013,1,6), ‘month’, ‘http://localhost:8080/scheduler-pdf/generate’, ‘gray’);

This is generating a PDF but multipage is not working correctly. PDF is generated only for the month of January and when I have more than 6 events in a day, the remaining are displayed on the next page with a reference to the day. Is there a workaround or an update for this?

Also if I try week view, since i have multiple events on one slot, the event texts do not even show. And if I try a larger timespan instead of january 19th to febuary 6th, I get one page PDF with a lot of dates instead pages with the respective months seperated.

Am I doing something wrong? Or is there a more recent version?

If I enter