1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fixes symbols positioning in JBIG2

This commit is contained in:
Yury Delendik 2013-02-22 22:08:46 -06:00
parent 007a643279
commit cbe829228e
3 changed files with 10 additions and 1 deletions

View file

@ -823,7 +823,7 @@ var Jbig2Image = (function Jbig2ImageClosure() {
textRegion.transposed = !!(textRegionSegmentFlags & 64);
textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
textRegion.dsOffset = (textRegionSegmentFlags >> 10) & 31;
textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
if (textRegion.huffman) {
var textRegionHuffmanFlags = readUint16(data, position);