pdftools icon indicating copy to clipboard operation
pdftools copied to clipboard

Feature: "yes to all" for `pdftools delete`

Open petermao opened this issue 2 years ago • 0 comments

When this package is used as a library, there are instances where the overwrite query in delete gets in the way. Also, on the command line, it is useful to have a way to get around the overwrite query.

For example:

ls *.pdf  | xargs -I {} pdftools delete {} 1

does not remove the first page of every pdf in the cwd. With this PR in place,

ls *.pdf  | xargs -I {} pdftools -f delete {} 1

would do the trick.

petermao avatar Jun 08 '23 21:06 petermao