[poppler] utils/pdfseparate.1 utils/pdfseparate.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Jul 31 17:40:26 UTC 2017


 utils/pdfseparate.1  |    7 ++++---
 utils/pdfseparate.cc |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 92ad743b63c3e82211ea0b2e4d4471dd3f71cebc
Author: LĂ©onard Michelet <leonard.michelet at smile.fr>
Date:   Mon Jul 31 19:40:06 2017 +0200

    pdfseparate: minor improvement to the documentation
    
    Bug #101800

diff --git a/utils/pdfseparate.1 b/utils/pdfseparate.1
index 856f345e..132511a1 100644
--- a/utils/pdfseparate.1
+++ b/utils/pdfseparate.1
@@ -13,10 +13,11 @@ extract single pages from a Portable Document Format (PDF).
 pdfseparate reads the PDF file
 .IR PDF-file ,
 extracts one or more pages, and writes one PDF file for each page to
-.IR PDF-page-pattern ,
+.IR PDF-page-pattern.
+.PP
 PDF-page-pattern should contain
-.BR %d .
-%d is replaced by the page number.
+.BR %d
+(or any variant respecting printf format), since %d is replaced by the page number.
 .TP
 The PDF-file should not be encrypted.
 .SH OPTIONS
diff --git a/utils/pdfseparate.cc b/utils/pdfseparate.cc
index 45274ec8..34cc1926 100644
--- a/utils/pdfseparate.cc
+++ b/utils/pdfseparate.cc
@@ -97,7 +97,7 @@ bool extractPages (const char *srcFileName, const char *destFileName) {
     }
   }
   if (!foundmatch && firstPage != lastPage) {
-    error(errSyntaxError, -1, "'{0:s}' must contain '%d' if more than one page should be extracted", destFileName);
+    error(errSyntaxError, -1, "'{0:s}' must contain '%d' (or any variant respecting printf format) if more than one page should be extracted, in order to print the page number", destFileName);
     free(auxDestFileName);
     delete doc;
     return false;


More information about the poppler mailing list