[
https://issues.apache.org/jira/browse/PDFBOX-6199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077655#comment-18077655
]
Maruan Sahyoun commented on PDFBOX-6199:
----------------------------------------
[~tilman] but shouldn't this be 8 ? -> yes. I've looked at the template and
there is even a hint in the spec:
{quote}
EXAMPLE – If GRTEMPLATE is 1, the image pixels overlaid by the template are as
shown in Figure 15, and the pixels are gathered in reading order (in rows from
top to bottom, and within each row from left to right, with the pixels in GRREG
considered before the pixels in GRREFERENCE), then CX is set to "GR0000001000".
{quote}
And if we follow the logic for GRTEMPLATE 0 which is encoded to 0x100 this
again supports that it should be 0x008 here (if we keep hex representation for
the bit mask)
> Template 1 handling with TPGRON not supported
> ---------------------------------------------
>
> Key: PDFBOX-6199
> URL: https://issues.apache.org/jira/browse/PDFBOX-6199
> Project: PDFBox
> Issue Type: Sub-task
> Components: JBIG2
> Affects Versions: 3.0.4 JBIG2
> Reporter: Maruan Sahyoun
> Priority: Minor
> Attachments: image-2026-04-28-12-27-28-955.png,
> image-2026-04-28-12-28-19-575.png, image-2026-04-28-12-29-21-038.png,
> screenshot-1.png, screenshot-2.png, screenshot-3.png, screenshot-4.png
>
>
> {{bitmap-refine-template1-tpgron.jbig2}} tests the folling features of JBIG2:
> - Refinement region
> - Template 1
> - TPGRON
> - Reference bitmap reuse
> We currently produce garbled output when decoding
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]