diff options
-rw-r--r-- | utils/pdfseparate.1 | 7 | ||||
-rw-r--r-- | utils/pdfseparate.cc | 2 |
2 files changed, 5 insertions, 4 deletions
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; |