Finish pdf output