Package: poppler-utils
Version: 0.12.4-1.2
Severity: normal
File: /usr/bin/pdftoppm

pdftoppm doesn't test for page rotation correctly.  It assumes that any
non-zero rotation is a 90-degree rotation.  However, that test fails if
the rotation is 180.  I just tracked down the problem line in the 0.12.4
source package.  However, I also find that it's fixed upstream at
poppler.freedesktop.org.  Here's that commit:

commit 0cb07d645527f25997f5e1b104a6be92441d8ffa
Author: Albert Astals Cid <aa...@kde.org>
Date:   Thu Feb 18 23:27:20 2010 +0000

    Only swap w with h if rotation is 90 or 270

diff --git a/utils/pdftoppm.cc b/utils/pdftoppm.cc
index e5d3ba0..5b318be 100644
--- a/utils/pdftoppm.cc
+++ b/utils/pdftoppm.cc
@@ -18,7 +18,7 @@
 // Copyright (C) 2009 Michael K. Johnson <a1...@danlj.org>
 // Copyright (C) 2009 Shen Liang <shenzh...@gmail.com>
 // Copyright (C) 2009 Stefan Thomas <tho...@eload24.com>
-// Copyright (C) 2009 Albert Astals Cid <aa...@kde.org>
+// Copyright (C) 2009, 2010 Albert Astals Cid <aa...@kde.org>
 // Copyright (C) 2010 Adrian Johnson <ajohn...@redneon.com>
 //
 // To see a description of the changes please see the Changelog file that
@@ -308,7 +308,7 @@ int main(int argc, char *argv[]) {
     }
     pg_w = pg_w * (x_resolution / 72.0);
     pg_h = pg_h * (y_resolution / 72.0);
-    if (doc->getPageRotate(pg)) {
+    if ((doc->getPageRotate(pg) == 90) || (doc->getPageRotate(pg) == 270)) {
       tmp = pg_w;
       pg_w = pg_h;
       pg_h = tmp;


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.37 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages poppler-utils depends on:
ii  libc6                       2.11.2-11    Embedded GNU C Library: Shared lib
ii  libfontconfig1              2.8.0-2.1    generic font configuration library
ii  libgcc1                     1:4.4.5-12   GCC support library
ii  libpoppler5                 0.12.4-1.2   PDF rendering library
ii  libstdc++6                  4.4.5-12     The GNU Standard C++ Library v3
ii  libxml2                     2.7.8.dfsg-2 GNOME XML library

Versions of packages poppler-utils recommends:
ii  ghostscript                  9.01~dfsg-1 interpreter for the PostScript lan

poppler-utils suggests no packages.

-- no debconf information

-- 
-Sanjoy

`Until lions have their historians, tales of the hunt shall always
 glorify the hunters.'  --African Proverb



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to