close PDDocument after converted to text