AX 2009 - Batch job print only first page

Hi,
I have a problem with batch generating a report to a PDF file. The file is always created with only one page, even though there should be 2-3. There is no error message.

When I run the same task but not in batch, everything works fine.

Has anyone encountered such a problem or knows how to solve it?