From 174ef6d93a4bdda31e3e96c4bfd400ea4ca23bbe Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 2 May 2018 10:49:16 +1000 Subject: [PATCH] Rename 'pdf_unlock()' to 'pdfunlock()' --- pdfunlock/pdfunlock.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pdfunlock/pdfunlock.py b/pdfunlock/pdfunlock.py index 4cda66d..b6eb2bc 100644 --- a/pdfunlock/pdfunlock.py +++ b/pdfunlock/pdfunlock.py @@ -6,7 +6,7 @@ including restrictions on: - copying text and images - printing the document -usage: pdf_unlock [-h] [-r] [-o] folder +usage: pdfunlock [-h] [-r] [-o] folder positional arguments: folder name of input folder @@ -21,15 +21,15 @@ Examples: Search for pdfs inside 'pdf_folder', then create new unlocked versions of the pdfs with the the suffix '-unlocked.pdf'. -> pdf_unlock pdf_folder +> pdfunlock pdf_folder Search for pdfs inside 'pdf_folder', then unlock the pdfs and overwrite the original versions. -> pdf_unlock pdf_folder -o +> pdfunlock pdf_folder -o Search recursively for pdfs inside 'pdf_folder' and all subfolders, then unlock the pdfs and overwrite the original versions. -> pdf_unlock pdf_folder -o -r +> pdfunlock pdf_folder -o -r """ @@ -181,7 +181,7 @@ def main(): for pdf_file in pbar: pdf_file_shortname = os.path.split(pdf_file)[1] pbar.set_description('Processing {}'.format(pdf_file_shortname)) - pdf_unlock(pdf_file, overwrite=args.overwrite) + pdfunlock(pdf_file, overwrite=args.overwrite) if __name__ == '__main__':