[poppler] qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Oct 1 06:42:24 PDT 2011


 qt4/src/poppler-ps-converter.cc |    3 ++-
 qt4/src/poppler-qt4.h           |    6 ++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 0e53ba5709296dc2ba1399f885af200d2041f0cd
Author: Glad Deschrijver <glad.deschrijver at gmail.com>
Date:   Sat Oct 1 15:41:51 2011 +0200

    qt4: Add the option of PSConverter creating EPS

diff --git a/qt4/src/poppler-ps-converter.cc b/qt4/src/poppler-ps-converter.cc
index 4472b0f..3b1f8f1 100644
--- a/qt4/src/poppler-ps-converter.cc
+++ b/qt4/src/poppler-ps-converter.cc
@@ -2,6 +2,7 @@
  * Copyright (C) 2007, 2009, 2010, Albert Astals Cid <aacid at kde.org>
  * Copyright (C) 2008, Pino Toscano <pino at kde.org>
  * Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
+ * Copyright (C) 2011 Glad Deschrijver <glad.deschrijver at gmail.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -211,7 +212,7 @@ bool PSConverter::convert()
 	                                     d->document->doc->getCatalog(),
 	                                     1,
 	                                     d->document->doc->getNumPages(),
-	                                     psModePS,
+	                                     (d->opts & PrintToEPS) ? psModeEPS : psModePS,
 	                                     d->paperWidth,
 	                                     d->paperHeight,
 	                                     gFalse,
diff --git a/qt4/src/poppler-qt4.h b/qt4/src/poppler-qt4.h
index 53f0ba9..637b69f 100644
--- a/qt4/src/poppler-qt4.h
+++ b/qt4/src/poppler-qt4.h
@@ -8,6 +8,7 @@
  * Copyright (C) 2010 Suzuki Toshiya <mpsuzuki at hiroshima-u.ac.jp>
  * Copyright (C) 2010 Matthias Fauconneau <matthias.fauconneau at gmail.com>
  * Copyright (C) 2011 Andreas Hartmetz <ahartmetz at gmail.com>
+ * Copyright (C) 2011 Glad Deschrijver <glad.deschrijver at gmail.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -1421,9 +1422,10 @@ height = dummy.height();
               \since 0.10
              */
             enum PSOption {
-                Printing = 0x00000001,              ///< The PS is generated for printing purpouses
+                Printing = 0x00000001,              ///< The PS is generated for printing purposes
                 StrictMargins = 0x00000002,
-                ForceRasterization = 0x00000004
+                ForceRasterization = 0x00000004,
+                PrintToEPS = 0x00000008             ///< Output EPS instead of PS \since 0.20
             };
             Q_DECLARE_FLAGS( PSOptions, PSOption )
 


More information about the poppler mailing list