diff --git a/poppler-0.43.0-type3-chars-position.patch b/poppler-0.43.0-type3-chars-position.patch new file mode 100644 index 0000000..ef92899 --- /dev/null +++ b/poppler-0.43.0-type3-chars-position.patch @@ -0,0 +1,26 @@ +From 182abe4ed5c0773073c6751a26a7c4e40e99e02e Mon Sep 17 00:00:00 2001 +From: Thomas Freitag +Date: Fri, 13 May 2016 00:07:24 +0200 +Subject: [PATCH] Splash: type 3 chars. restore the current position also in + output device + +Bug #95344 +--- + poppler/Gfx.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc +index cc6b66d..7d748b9 100644 +--- a/poppler/Gfx.cc ++++ b/poppler/Gfx.cc +@@ -4046,6 +4046,7 @@ void Gfx::doShowText(GooString *s) { + curX += tdx; + curY += tdy; + state->moveTo(curX, curY); ++ out->updateCTM(state, 0, 0, 0, 0, 0, 0); + p += n; + len -= n; + } +-- +2.7.4 + diff --git a/poppler.spec b/poppler.spec index d0ccaf5..18e467a 100644 --- a/poppler.spec +++ b/poppler.spec @@ -1,7 +1,7 @@ Summary: PDF rendering library Name: poppler Version: 0.43.0 -Release: 1%{?dist} +Release: 2%{?dist} License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT Group: Development/Libraries URL: http://poppler.freedesktop.org/ @@ -10,6 +10,9 @@ Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz # https://bugzilla.redhat.com/show_bug.cgi?id=1185007 Patch0: poppler-0.30.0-rotated-words-selection.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1352717 +Patch1: poppler-0.43.0-type3-chars-position.patch + ## upstreamable patches # fix configure checks for moc versions Patch50: poppler-0.24.2-mocversiongrep.patch @@ -148,6 +151,7 @@ Requires: %{name}-glib%{?_isa} = %{version}-%{release} %prep %setup -q %patch0 -p1 -b .rotated-words-selection +%patch1 -p1 -b .type3-chars-position %patch50 -p1 -b .mocversiongrep @@ -283,6 +287,10 @@ test "$(pkg-config --modversion poppler-splash)" = "%{version}" %changelog +* Mon Jul 11 2016 Marek Kasik - 0.43.0-2 +- Restore the current position of char also in output device +- Related: #1352717 + * Tue May 3 2016 Marek Kasik - 0.43.0-1 - Update to 0.43.0 - Resolves: #1318462