Tilman Hausherr created PDFBOX-6155:
---------------------------------------

             Summary: AT (Adaptive template pixels) -1 byte skipped
                 Key: PDFBOX-6155
                 URL: https://issues.apache.org/jira/browse/PDFBOX-6155
             Project: PDFBox
          Issue Type: Sub-task
          Components: JBIG2
    Affects Versions: 3.0.4 JBIG2
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
         Attachments: bitmap-symbol-textrefine-customat.pdf, 
bitmap-symbol-textrefine-negative-delta-width.pdf, bitmap-symbol-textrefine.pdf

bitmap-symbol-textrefine-customat.pdf has a garbled shape, however 
bitmap-symbol-textrefine.pdf doesn't. The difference is that one has 4 AT bytes.

After a lot of reading and searching I was able to trace it to 
{{GenericRefinementRegion.updateOverride()}} which ignores AT bytes if they are 
-1. However the specification says no such thing:

6.3.5.3 Fixed templates and adaptive templates

The AT pixel RA1 can be located anywhere in the field shown in Figure 7, not 
including the current pixel. The AT pixel
RA2 can be located anywhere in the range (-128, -128) to (127, 127) in the 
reference bitmap.

Just removing the two lines fixes the problem but ruins 
bitmap-symbol-textrefine-negative-delta-width.pdf, which has all -1 so I'll 
research that.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to