X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fxpdf%2Fpdfimages.cc;h=319e141c4df4ea389b33bfa66f343c5b8955a321;hb=8e5042edbe098c8a8b760a36a8bc35dfca4e6041;hp=e8a42aaf342a98c17942b2b6f178cb0be2707be7;hpb=7c5ab64d4db75e4bb6dadedb578e10178554d0db;p=evince.git diff --git a/pdf/xpdf/pdfimages.cc b/pdf/xpdf/pdfimages.cc index e8a42aaf..319e141c 100644 --- a/pdf/xpdf/pdfimages.cc +++ b/pdf/xpdf/pdfimages.cc @@ -25,13 +25,13 @@ #include "PDFDoc.h" #include "ImageOutputDev.h" #include "Error.h" -#include "config.h" +#include "xpdfconfig.h" static int firstPage = 1; static int lastPage = 0; static GBool dumpJPEG = gFalse; -static char ownerPassword[33] = ""; -static char userPassword[33] = ""; +static char ownerPassword[33] = "\001"; +static char userPassword[33] = "\001"; static GBool quiet = gFalse; static char cfgFileName[256] = ""; static GBool printVersion = gFalse; @@ -96,12 +96,12 @@ int main(int argc, char *argv[]) { } // open PDF file - if (ownerPassword[0]) { + if (ownerPassword[0] != '\001') { ownerPW = new GString(ownerPassword); } else { ownerPW = NULL; } - if (userPassword[0]) { + if (userPassword[0] != '\001') { userPW = new GString(userPassword); } else { userPW = NULL; @@ -134,7 +134,7 @@ int main(int argc, char *argv[]) { // write image files imgOut = new ImageOutputDev(imgRoot, dumpJPEG); if (imgOut->isOk()) { - doc->displayPages(imgOut, firstPage, lastPage, 72, 0, gFalse); + doc->displayPages(imgOut, firstPage, lastPage, 72, 72, 0, gTrue, gFalse); } delete imgOut;