Version 2.2.0 [2024-03-25] --------------------------- ## Features - `--page-number` can now take an optional argument `label` that shows the PDF's page label instead of the page index. ## Changes - Port to PCRE2 - Change default value of `--include` to `*.[Pp][Dd][Ff]` to allow for different case variations of `*.pdf`. - Build system: Switch to C++14 - Build system: Require poppler-cpp >= 0.36.0, to avoid a nasty bug in earlier versions that makes pdfgrep produce wrong results. See https://bugs.freedesktop.org/show_bug.cgi?id=91644 - Manpage: Specify SYNOPSIS more precisely. - Ignore extra whitespace at the end of pages as generated by newer poppler. This fixes e.g. `--warn-empty` and our testsuite. ## Fixes - Fix crash with invalid locale setting - Fix `--warn-empty` with `--cache` Version 2.1.2 [2018-11-19] --------------------------- - Bugfix: Fix crash when compiled with hardened compiler flags (specifically -D_GLIBCXX_ASSERTIONS) Version 2.1.1 [2018-05-22] --------------------------- - Bugfix: Fix build with libunac support enabled Version 2.1.0 [2018-04-28] --------------------------- - New option `--page-range` to limit search to a set of pages - New option `--file/-f` to read patterns from a file - New option `--regexp/-e` to specify multiple patterns (combined with OR). - New options `--files-with-matches/-l` and `--files-without-match/-L` to only list filenames of files that contain or don't contain matches. - Major manpage restructuring. It's now divided into subsections like the GNU grep's manpage. - Bugfix: Actually stop searching after first match with `-q` Version 2.0.1 [2017-03-06] --------------------------- - Bugfix: Fix --cache when used with recursive search Version 2.0 [2017-01-25] ------------------------- - **Incompatible change**: `--context/-C` is now line based as opposed to character based and works just like grep - Two new options from grep: `-A/--after-context` and `-B/--before-context` - Lines with multiple matches are now printed only once - Optional caching of pdf-text for faster operation (by Christian Dietrich) This adds a **new dependency**: libgcrypt - Bash-completion improvements (by Rainer Müller) - Bugfix: Fixed string search (`-F`) now works as advertised with multiple patterns - Bugfix: Empty pages can now be matched with `^$` - Bugfix: The pattern `^` now matches *only* at the beginning of pages - Bugfix: Text outside of PDF's CropBox but inside the MediaBox is not ignored anymore. - Various fixes for BSD support Version 1.4.1 [2015-09-26] --------------------------- - Test suite added - Bugfix: The tarball contains HACKING and README again - Bugfix: The zsh completion completes options as first argument correctly - Bugfix: Exit status is set as advertised - Bugfix: Spurious null bytes removed from output - Bugfix: Skipping of some matches in certain conditions fixed. - Bugfix: Empty matches don't trigger a loop Version 1.4.0 [2015-08-14] --------------------------- - PCRE support (by Julius Plenz) - Fixed string search - Ability to pass multiple passwords - Option to change the colon as prefix separator - Optional warning about PDFs that contain no searchable text - New option from grep: `--only-matching` - New option from grep: `--null` - Bugfix: Correctly print unicode characters - Installation: New configure flag `--without-libpcre` - Installation: New configure flag `--disable-doc` to disable manpage generation with asciidoc - Installation: pdfgrep now requires c++11 Version 1.3.2 [2015-02-20] ----------------------------- - A bash completion module - Don't limit output to 80 characters on non-terminals - Print a lot less error messages by default (only with >= poppler-0.30.0) - New option `--debug` to print verbose debug output - Installation: New configure flag `--with-zsh-completion` Version 1.3.1 [2014-08-10] ----------------------------- - **Incompatible change**: `-r` doesn't follow symlinks - A zsh completion module - Support for password-protected PDFs - Allow to omit '.' with `-r` to search current directory - Add `-p` or `--page-count` to count matches per page (by Jascha Knack) - Add `-m` or `--max-count` to limit matches per file (by Thibault Marin) Version 1.3.0 [2012-02-14] ----------------------------- - Experimental support for libunac (removing accents and ligatures before search) - Recursive search [`--recursive`] (by Mahmut Gundes) - Don't use colors on dumb terminals - A few minor bug fixes - Use poppler-cpp instead of the poppler core library (by Pino Toscano) Version 1.2 ----------- - 2 small bugfixes (`-h` option and closing open files) - This is probably the last release that supports poppler < 0.14 Version 1.1 ----------- - Respect the `GREP_COLORS` environment variable - Fix buffer overflow bug - Don't exit on the first error - Use terminal width to calculate the context length Version 1.0 ----------- - First release