summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
index 26011cc08c64..fd75becc8a12 100644
--- a/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx
@@ -16,12 +16,12 @@
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
@@ -123,15 +123,15 @@ int main(int argc, char **argv)
}
}
}
-
+
// PDFDoc takes over ownership for all strings below
GooString* pFileName = new GooString(argv[1]);
GooString* pTempErrFileName = new GooString("_err.pdf");
GooString* pTempErrFileNamePath = new GooString(argv[0]);
GooString* pErrFileName = new GooString(pTempErrFileNamePath,pTempErrFileName);
-
-
+
+
// check for password string(s)
GooString* pOwnerPasswordStr( ownerPassword[0] != '\001'
? new GooString(ownerPassword)
@@ -153,12 +153,12 @@ int main(int argc, char **argv)
PDFDoc aDoc( pFileName,
pOwnerPasswordStr,
pUserPasswordStr );
-
+
PDFDoc aErrDoc( pErrFileName,
pOwnerPasswordStr,
pUserPasswordStr );
-
-
+
+
// Check various permissions.
if ( !aDoc.isOk() )
{
@@ -175,17 +175,17 @@ int main(int argc, char **argv)
// do the conversion
for( int i=1; i<=nPages; ++i )
{
- aErrDoc.displayPage( pOutDev,
- i,
- PDFI_OUTDEV_RESOLUTION,
+ aErrDoc.displayPage( pOutDev,
+ i,
+ PDFI_OUTDEV_RESOLUTION,
PDFI_OUTDEV_RESOLUTION,
0, gTrue, gTrue, gTrue );
aErrDoc.processLinks( pOutDev, i );
}
}
else
- {
-
+ {
+
pdfi::PDFOutDev* pOutDev( new pdfi::PDFOutDev(&aDoc) );
// tell receiver early - needed for proper progress calculation
@@ -198,9 +198,9 @@ int main(int argc, char **argv)
const int nPages = aDoc.getNumPages();
for( int i=1; i<=nPages; ++i )
{
- aDoc.displayPage( pOutDev,
- i,
- PDFI_OUTDEV_RESOLUTION,
+ aDoc.displayPage( pOutDev,
+ i,
+ PDFI_OUTDEV_RESOLUTION,
PDFI_OUTDEV_RESOLUTION,
0, gTrue, gTrue, gTrue );
aDoc.processLinks( pOutDev, i );