[QAE1032] fixed couple of small issues in pdf generation