From d2961dc2d8bfd4a05c8459efc4bbd8d8bdf6dd7d Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Tue, 14 Mar 2023 17:08:49 +0000 Subject: [PATCH] always create/truncate text extraction output file(s) --- pdf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdf.c b/pdf.c index f773872..90c9474 100644 --- a/pdf.c +++ b/pdf.c @@ -5206,8 +5206,7 @@ main(int argc, char *argv[]) /* extract text if requested */ if (xfile != NULL || Xfile != NULL) { process_page_content(&aux); - if (aux.ntextobjs > 0) // XXX always create output file? - text_extract(&aux, xfile, Xfile); + text_extract(&aux, xfile, Xfile); } return 0; -- GitLab