catch exception on construct WKPDF