[QAE1032] pdf generation: better handling of conditions