We enumulate/shall emulate it here: https://github.com/kkujala/pdf.js/blob/1c5dc2c507dcf38f9f28af0b6ebe47fc87f5a4ce/src/canvas.js#L50