finish save to pdf