Tilman Hausherr created PDFBOX-6160:
---------------------------------------

             Summary: Immediate generic refinement region with no reference not 
displayed
                 Key: PDFBOX-6160
                 URL: https://issues.apache.org/jira/browse/PDFBOX-6160
             Project: PDFBox
          Issue Type: Sub-task
          Components: JBIG2
    Affects Versions: 3.0.4 JBIG2
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 3.0.5 JBIG2


The attached file has an immediate refinement region segment that refers to no 
other segments. This previously brought an NPE and I changed it to an 
InvalidHeaderValueException. However it turns out that this is legit, and 
described on page 71: "In this case, the region segment is acting as a 
refinement of part of the page buffer." So we have to pass the page buffer 
{{pageBitmap}} to the GenericRefinementRegion class. I tried something quick 
and it worked immediately. So all there is to do is to find a better way to 
implement this, e.g. if the {{GenericRefinementRegion}} can access the 
{{JBIG2Page}} class.



--
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