You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/02/01 09:41:00 UTC

[jira] [Commented] (PDFBOX-6160) Immediate generic refinement region with no reference not displayed

    [ https://issues.apache.org/jira/browse/PDFBOX-6160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055755#comment-18055755 ] 

ASF subversion and git services commented on PDFBOX-6160:
---------------------------------------------------------

Commit b4a7d303ab03c17112a53d945c130565edd0ccba in pdfbox-jbig2's branch refs/heads/master from Tilman Hausherr
[ https://gitbox.apache.org/repos/asf?p=pdfbox-jbig2.git;h=b4a7d30 ]

PDFBOX-6160: pass page bitmap to GenericRefinementRegion class if there is no reference bitmap

> 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
>            Priority: Major
>             Fix For: 3.0.5 JBIG2
>
>         Attachments: bitmap-refine-page.pdf
>
>
> 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org