Differentiating between PDF and HTML record contents