mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Merge pull request #3364 from stweil/master
Suppress output of page number for TIFF files with a single image
This commit is contained in:
commit
6ee69db22c
@ -1059,7 +1059,10 @@ bool TessBaseAPI::ProcessPagesMultipageTiff(const l_uint8 *data, size_t size, co
|
||||
if (pix == nullptr) {
|
||||
break;
|
||||
}
|
||||
tprintf("Page %d\n", page + 1);
|
||||
if (offset || page > 0) {
|
||||
// Only print page number for multipage TIFF file.
|
||||
tprintf("Page %d\n", page + 1);
|
||||
}
|
||||
char page_str[kMaxIntSize];
|
||||
snprintf(page_str, kMaxIntSize - 1, "%d", page);
|
||||
SetVariable("applybox_page", page_str);
|
||||
|
Loading…
Reference in New Issue
Block a user