On Sat, 8 Feb 2020, Ken Moffat via blfs-dev wrote:
For you, easy. For me, I can just about realise that poppler is the
problem. So, whenever you find it is easy enough to fix, please can
you report what you did ? TIA.
I'll try to remember that. Whenever I did not, I usually had a reason - a
mixture of: It seemed hacky even to me. It only considered my use-case
(here: only considers most recent poppler while a decent patch would have
some IFDEF POPPLERVERSION>X around it). I did not check whether upstream
already has a (just not released) solution. "Easy enough to fix" may also
mean: I just skipped two versions of it but kept my script unchanged and
only took a deeper look into it and came up with a patch two months later
after editors long decided to go another way. Usually you guys are faster
and more informed than me and I appreciate that ;-)
That said, inkscape-0.92.4 has a very similar issue as libreoffice-6.4.0.3
which I solved by the seds below. This is close to but not identical to
what the book does. The globalParams and const parts are better solved by
the upstream patch, but the Unicode sed did not work for me with all the
latest packages such as poppler-0.85 and I needed mine instead:
sed -e 's/globalParams = new GlobalParams()/globalParams.reset(new
GlobalParams())/' -i src/extension/internal/pdfinput/pdf-input.cpp
sed -e 's/(GfxPath/(const GfxPath/' \
-e 's/ GfxSubpath/ const GfxSubpath/' \
-i src/extension/internal/pdfinput/svg-builder.cpp
sed -e 's/(GfxPath/(const GfxPath/' \
-e 's/ &u/ (const Unicode**)\&u/' \
-i src/extension/internal/pdfinput/pdf-parser.cpp
Regards
Uwe
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page