In the following example using a terminal window (Ubuntu 20.04), the program ocrmypdf
produces some progress bars while it is running and the last two (2) lines are printed when the program finishes. Using the Emacs function call-process
and the optional arguments of DESTINATION (non-nil
) and DISPLAY (non-nil
), only the last two (2) lines are output to the target buffer when the program finishes. Is there a way to see progress bar output while the program is running when using the function call-process
?
$ ocrmypdf input.pdf output.pdf
Scan: 100%|██████████████████████████████████| 11/11 [00:00<00:00, 229.81page/s]
OCR: 100%|████████████████████████████████| 11.0/11.0 [03:09<00:00, 17.26s/page]
JPEGs: 0image [00:00, ?image/s]
JBIG2: 100%|██████████████████████████████████| 11/11 [00:00<00:00, 11.61item/s]
INFO - Optimize ratio: 1.28 savings: 22.1%
INFO - Output file is a PDF/A-2B (as expected)