Document inspector