Poppler plugin: Embeded jpeg images are lost

Bug #1460854 reported by Greg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qpdfview
Incomplete
Undecided
Unassigned

Bug Description

Dear developpers !

When PDF plugin is compiled statically (static_pdf_plugin option), a page opened by qpdfview
is rendered correctly, no problems with the text or graphic formats but jpeg images aren't shown on the paper.
I played with several versions of poppler (2.24.5, 0.33.0) and Qt (4.8.5, 4.8.6, 4.8.7) libraries. Same problem, no jpeg
images.

Main system:

Linux kernel: 3.2.67
Xorg : 1.7.3
Qt : 4.8.6
Poppler : 0.24.5
libjpeg : 6b

Thank You for your hard work !
With best regards,
Greg.

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Bug 1460854] [NEW] Poppler plugin: Embeded jpeg images are lost

Hello Greg,

thanks for taking the time to report this. I suspect linker collisions
hence would like to find out a few things: Did you build Qt and Poppler
with the same version of libjpeg? What flags did you use to build
Poppler itself? Did you try building qpdfview using only the PDF plug-in
(without any other plug-ins)? What happens if all plug-ins are built
statically?

Best regards, Adam.

Am 02.06.2015 um 01:45 schrieb Greg:
> Public bug reported:
>
> Dear developpers !
>
> When PDF plugin is compiled statically (static_pdf_plugin option), a page opened by qpdfview
> is rendered correctly, no problems with the text or graphic formats but jpeg images aren't shown on the paper.
> I played with several versions of poppler (2.24.5, 0.33.0) and Qt (4.8.5, 4.8.6, 4.8.7) libraries. Same problem, no jpeg
> images.
>
>
> Main system:
>
> Linux kernel: 3.2.67
> Xorg : 1.7.3
> Qt : 4.8.6
> Poppler : 0.24.5
> libjpeg : 6b
>
>
> Thank You for your hard work !
> With best regards,
> Greg.
>
> ** Affects: qpdfview
> Importance: Undecided
> Status: New
>

Revision history for this message
Greg (02091970-t) wrote :

Hello Adam !
Thanks for answer !

1) Yes, Poppler and Qt are linked with same version of libjpeg.

2) Poppler is built with following flags:
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib${LIBDIRSUFFIX}" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir="${PREFIX}/man" \
--disable-silent-rules \
--enable-static \
--enable-shared \
--enable-xpdf-headers \
--enable-libjpeg \
--enable-libopenjpeg \
--enable-libtiff \
--enable-libpng \
--enable-zlib \
--enable-splash-output \
--enable-cairo-output \
--enable-poppler-glib \
--enable-poppler-cpp \
--enable-poppler-qt4 \
--disable-poppler-qt5 \
--enable-introspection=no \
--enable-cms=none \
--enable-utils \
--disable-gtk-doc \
--disable-gtk-doc-pdf \
--disable-gtk-doc-html

3) After reading your post, I build it using only PDF plugin. No problems with PDF, all embedded jpeg images
are shown correctly.

4) When all plugins are built statically, only PDF has an above problem. DjVu and Postscript documents are rendered OK.

With best regards !
Greg.

Revision history for this message
Greg (02091970-t) wrote :

Hot News:
I experimented with plugins (on/off) and found that something happens between PDF and PS.

a) djvu + pdf + ps -> PDF is broken (jpeg images are lost).
b) djvu + pdf -> PDF is OK (jpegs are shown).
c) pdf + ps -> PDF is broken (jpeg images are lost).

Revision history for this message
Adam Reichold (adamreichold) wrote : Re: [Bug 1460854] Re: Poppler plugin: Embeded jpeg images are lost

Hello again,

Am 02.06.2015 um 17:37 schrieb Greg:
> Hot News:
> I experimented with plugins (on/off) and found that something happens between PDF and PS.
>
> a) djvu + pdf + ps -> PDF is broken (jpeg images are lost).
> b) djvu + pdf -> PDF is OK (jpegs are shown).
> c) pdf + ps -> PDF is broken (jpeg images are lost).

Ok, so I suspect problems with the libjpeg vesion in
libspectre/ghostscript and would propose to try the following
workarounds: a) Build without PostScript support which of course might
not be an option for you. b) Try building ghostscript with a different
version of libjpeg or try building Poppler without libjpeg (using its
internal fallback decoder instead).

Also is there anything logged to the console when you try to view those
PDF using Poppler?

Best regards, Adam.

P.S.: Does the problem still occur if you build PDF statically but PS
dynamically? If not, maybe that would be a viable workaround?

Revision history for this message
Greg (02091970-t) wrote :

Hello !

>a) Build without PostScript support which of course might
> not be an option for you.
Already done, PDF and DjVu (without PostScript) are enought personally for me.

>Try building ghostscript with a different
>version of libjpeg or try building Poppler without libjpeg (using its
>internal fallback decoder instead).
OK, I will continue experimenting and report you as it will be possible.

>Also is there anything logged to the console when you try to view those
> PDF using Poppler?
I tried this before posting a bugreport, nothing was logged there.

Changed in qpdfview:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.