Export file as PDF

Although now we won't be needing two separate functions, but make sure your action names and your function names match.