summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-07-08 14:01:17 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-07-08 16:25:32 +0000
commiteb276d11a652601f743d69ada7a38016bd97d73e (patch)
tree6cbbf7c8705bf7fd29ab2d3bed373977d657c7e2 /sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
parent39f42b0b03489459540404dd218c38709853c021 (diff)
fdo#38878: Upgrading internal xpdf -> poppler
Change-Id: I00aafb3fd275e6be3b5d0eb370320e5325110da5 Reviewed-on: https://gerrit.libreoffice.org/4770 Tested-by: Fridrich Strba <fridrich@documentfoundation.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx30
1 files changed, 2 insertions, 28 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index afaec25d9dcf..94171b03f1df 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -25,33 +25,12 @@
FILE* g_binary_out=stderr;
-#ifndef SYSTEM_POPPLER
-static char ownerPassword[33] = "\001";
-static char userPassword[33] = "\001";
-static char outputFile[256] = "\001";
-
-static ArgDesc argDesc[] = {
- {(char*)"-f", argString, outputFile, sizeof(outputFile),
- (char*)"output file for binary streams"},
- {(char*)"-opw", argString, ownerPassword, sizeof(ownerPassword),
- (char*)"owner password (for encrypted files)"},
- {(char*)"-upw", argString, userPassword, sizeof(userPassword),
- (char*)"user password (for encrypted files)"},
- {NULL, argString, NULL, 0, NULL }
-};
-#else
static const char *ownerPassword = "\001";
static const char *userPassword = "\001";
static const char *outputFile = "\001";
-#endif
int main(int argc, char **argv)
{
-#ifndef SYSTEM_POPPLER
- // parse args; initialize to defaults
- if( !parseArgs(argDesc, &argc, argv) )
- return 1;
-#else
int k = 0;
while (k < argc)
{
@@ -78,19 +57,14 @@ int main(int argc, char **argv)
}
++k;
}
-#endif
if( argc != 3 )
return 1;
// read config file
- globalParams = new GlobalParams(
-#ifndef SYSTEM_POPPLER
- (char*)""
-#endif
- );
+ globalParams = new GlobalParams();
globalParams->setErrQuiet(gTrue);
-#if !defined(SYSTEM_POPPLER) || defined(_MSC_VER)
+#if defined(_MSC_VER)
globalParams->setupBaseFonts(NULL);
#endif