Added save as pdf functionality with custom title