Check how they check in pdf.js.