Fixed bug in PDF-engine with incorrect calculation in landscape mode