Commit 67f4c2b3 authored by Albert Astals Cid's avatar Albert Astals Cid

Please #kde-devel people making beign a pdf hacker more easy, if you don't...

Please #kde-devel people making beign a pdf hacker more easy, if you don't want drm checking just do
./configure --enable-kpdf-drm=no

svn path=/trunk/kdegraphics/kpdf/; revision=390898
parent f04b9739
......@@ -85,10 +85,33 @@ AC_ARG_ENABLE(multithreaded-kpdf,
yes)
AC_DEFINE(MULTITHREADED, 1, [Defines if use multithreading in xpdf code inside kpdf])
;;
*)
no)
AC_DEFINE(MULTITHREADED, 0, [Defines if use multithreading in xpdf code inside kpdf])
;;
*)
AC_DEFINE(MULTITHREADED, 1, [Defines if use multithreading in xpdf code inside kpdf])
;;
esac
]
, AC_DEFINE(MULTITHREADED, 0, [Defines if use multithreading in xpdf code inside kpdf])
)
dnl #### Enable the user to decide if he wants drm or not
AC_ARG_ENABLE(kpdf-drm,
AC_HELP_STRING([--enable-kpdf-drm],[Makes kpdf check for DRM to decide if you can copy/print protected pdf. (default=yes)]),
[
case $enableval in
yes)
AC_DEFINE(KPDF_HAVE_DRM, 1, [Defines if use DRM in kpdf])
;;
no)
AC_DEFINE(KPDF_HAVE_DRM, 0, [Defines if use DRM in kpdf])
;;
*)
AC_DEFINE(KPDF_HAVE_DRM, 1, [Defines if use DRM in kpdf])
;;
esac
]
, AC_DEFINE(MULTITHREADED, 0, [Defines if use multithreading in kpdf])
, AC_DEFINE(KPDF_HAVE_DRM, 1, [Defines if use DRM in kpdf])
)
......@@ -10,6 +10,7 @@
#ifndef _KPDF_GENERATOR_H_
#define _KPDF_GENERATOR_H_
#include <config.h>
#include <qobject.h>
#include <qvaluevector.h>
#include <qstring.h>
......@@ -51,7 +52,11 @@ class Generator : public QObject
virtual const DocumentSynopsis * generateDocumentSynopsis() { return 0L; }
// DRM handling
#if KPDF_HAVE_DRM
virtual bool isAllowed( int /*Document::Permisison(s)*/ ) { return true; }
#else
bool isAllowed( int /*Document::Permisison(s)*/ ) { return true; }
#endif
// page contents generation
virtual bool canGeneratePixmap() = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment