Я не уверен, что Вы хотите, но awk может, вероятно, сделать это легко. Добавить дополнительную новую строку после каждого согласующего отрезка длинной линии:
tail -f production.log |
awk '/Processing|compatible;|Completed in / {print; print ""}'
Добавить новую строку между всеми блоками непоследовательных согласующих отрезков длинной линии:
tail -f production.log |
awk '
/Processing|compatible;|Completed in / {
if (NR == n+1) print "";
n = NR;
print;
}'
pdfimages является одной программой для извлечения изображений:
NAME
pdfimages - Portable Document Format (PDF) image extractor (version 3.00)
SYNOPSIS
pdfimages [options] PDF-file image-root
DESCRIPTION
Pdfimages saves images from a Portable Document Format (PDF) file as Portable Pixmap (PPM), Portable Bitmap (PBM), or JPEG files.
Pdfimages reads the PDF file PDF-file, scans one or more pages, and writes one PPM, PBM, or JPEG file for each image, image-root-
nnn.xxx, where nnn is the image number and xxx is the image type (.ppm, .pbm, .jpg).
pdfimages --help
pdfimages version 0.12.4
Copyright 2005-2009 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2004 Glyph & Cog, LLC
Usage: pdfimages [options] <PDF-file> <image-root>
-f <int> : first page to convert
-l <int> : last page to convert
-j : write JPEG images as JPEG files
-opw <string> : owner password (for encrypted files)
-upw <string> : user password (for encrypted files)
-q : don't print any messages or errors
-v : print copyright and version info
-h : print usage information
-help : print usage information
--help : print usage information
-? : print usage information
pdftoppm - другой:
NAME
pdftoppm - Portable Document Format (PDF) to Portable Pixmap (PPM) converter (version 3.00)
SYNOPSIS
pdftoppm [options] PDF-file PPM-root
DESCRIPTION
Pdftoppm converts Portable Document Format (PDF) files to color image files in Portable Pixmap (PPM) format, grayscale image
files in Portable Graymap (PGM) format, or monochrome image files in Portable Bitmap (PBM) format.
Pdftoppm reads the PDF file, PDF-file, and writes one PPM file for each page, PPM-root-nnnnnn.ppm, where nnnnnn is the page num‐
ber.
Как уже упомянуто, можно попытаться открыть PDF с графическим программным обеспечением управления.
Как длятся нейтрализацию, можно отобразить PDF, сделать снимок экрана и работать над этим.
Для изменения файла PDF, содержание которого является отсканированным документом, можно установить Xournal в системе.
Если Вы имеете систему Debian или Ubuntu-based, открываете терминал и вводите этот commandL sudo apt-get install xournal
, или иначе установите его через свой синаптический диспетчер пакетов. Для Fedora использовать sudo yum install xournal
.