I followed your instructions, and compiled xpopple/xpdf/xpdf. Then I opened
a few 'pdf' files with the new executable.
It does work now. Did not notice any other problem.

Thanks a lot.

Subhashis

On Wed, 18 Feb 2026 01:46:27 +0000 Adam Sampson <[email protected]> wrote:
> Hi Subhashis,
>
> On Tue, Feb 17, 2026 at 02:00:59PM +0530, S. Roy wrote:
> >     depth:    30 planes
> >     red, green, blue masks:    0x3ff00000, 0xffc00, 0x3ff
> >     significant bits in color specification:    10 bits
>
> Yep, XPDFCore::setupX didn't handle those masks correctly -- there's
> some code there to work out how far it needs to shift each component
> left and right when converting a colour value, and it produced incorrect
> shift values when a channel was wider than 8 bits.
>
> I've pushed a change to xpopple upstream for this that should hopefully
> fix this -- if possible, could you try it out? You'll need to:
>
>   git clone http://offog.org/git/xpopple.git
>   cd xpopple
>   autoreconf -vfi
>   ./configure
>   make
>
> and that should give you an xpdf/xpdf executable to try. (You may need
> to "apt install build-essential automake" and "apt build-dep xpdf" first
> if you don't already have the appropriate development packages
> instealled.)
>
> Thanks very much,
>
> --
> Adam Sampson <[email protected]>                         <http://offog.org/>
>
>

Reply via email to