Moved methods for pdf generation to MRAFilesHandler.