Implementing PDF saving and sending by email