PDF Generation working again