managed to determine the pdf aspect ratios and put the export functionality in a dedicated class