[QAE1032] PDF generation: better in displaying of multiple option questions and some refactoring