Document print logic finished