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 <[email protected]>
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 <[email protected]>
  * Copyright (C) 2008, Pino Toscano <[email protected]>
  * Copyright (C) 2010 Hib Eris <[email protected]>
+ * Copyright (C) 2011 Glad Deschrijver <[email protected]>
  *
  * 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 <[email protected]>
  * Copyright (C) 2010 Matthias Fauconneau <[email protected]>
  * Copyright (C) 2011 Andreas Hartmetz <[email protected]>
+ * Copyright (C) 2011 Glad Deschrijver <[email protected]>
  *
  * 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 )
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to