Rename 'pdf_unlock()' to 'pdfunlock()'

master
Dan Howe 7 years ago
parent 9573e73c38
commit 174ef6d93a

@ -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__':

Loading…
Cancel
Save