Added Export as PDF as generalized export function