- Package:
- libpoppler147
- Source:
- libpoppler147
- Description:
- PDF rendering library
- Submitter:
- Hilmar Preusse
- Date:
- 2026-06-08 21:55:01 UTC
- Severity:
- normal
Package: libpoppler126
Version: 22.12.0-2+b1
Severity: important
Dear Maintainer,
don't care about the system information below, these are just from the
system, running reportbug.
The poppler library has an issue rendering images / fonts correctly, when
running on big endian machines. Assume the following code:
#include <memory>
#include <poppler-document.h>
#include <poppler-page.h>
#include <poppler-page-renderer.h>
int main() {
std::unique_ptr<poppler::document> doc{poppler::document::load_from_file("poppler-data.pdf")};
std::unique_ptr<poppler::page> page{doc->create_page(0)};
poppler::page_renderer renderer;
poppler::image img = renderer.render_page(page.get());
img.save("test.png", "png");
return 0;
}
, which renders a file called "poppler-data.pdf" and creates a file called
"test.png". The mentioned sample file can be found here [1]. When compiling
and linking on amd64 the resulting png file looks reasonable...some
glyphs are missing.
Doing the same on a Big Endian box (in my case PowerPC) the picture looks
broken: the colors are different. As far as I know s390x is affected too.
Attached are the two sample files for Little and Big Endian.
Hilmar
[1] https://github.com/TeXworks/texworks/blob/main/testcases/poppler-data.pdf
Control: affects -1 + src:texworks Affects texworks. Due to this issue the test suite of TeXworks fails on BE. H.
Am 04.01.2024 um 00:10 schrieb Preuße, Hilmar: Reassign, libpoppler147 still has the issue. H.
Am 04.01.2024 um 00:10 schrieb Preuße, Hilmar: issue is still present. Unfortunately I'm failing to build the minimal example to actually prove the statement. H.
Am 04.01.2024 um 00:10 schrieb Preuße, Hilmar: Reassign to libpoppler156. As I did not get any response I guess the issue is still present. Unfortunately I'm failing to build the minimal example to actually prove the statement. Update: the test suite of texworks still fails on s390 with the same error messages. H.
Control: reassign -1 src:poppler 22.12.0-2+deb12u1 individual poppler library package is not useful since poppler bumps their soname every month. The bug will remain open until it's fixed. Very few people work on big-endian issues, so it's unlikely you'll get much of a response. Please consider reporting this issue upstream: https://gitlab.freedesktop.org/poppler/poppler/-/work_items Thank you, Jeremy Bícha
On 07.06.26 Jeremy Bícha (jbicha@debian.org) wrote: Hello, OK, forwarded. Let's see how it goes. H.