![]() ![]() If os.path.isfile(os.path. Parser.add_argument('-stop', required=True, type=int, dest='stop', default=-1) Parser.add_argument('-start', required=True, type=int, dest='start', default=-1) Parser.add_argument('-file-out', required=True, type=str, dest='file_out') ![]() Parser.add_argument('-file-in', required=True, type=str, dest='file_in') Pdfextract.py -file-in /path/to/large/pdf -file-out /path/to/new/pdf -start -stop #!/usr/bin/env python usr/local/bin, and assign it execution permission with chmod 744 pdfextract.py): If you want to extract a range of pages, you can use the following script which you call like this (assumed that you save it to file pdfextract.py somewhere on your system's PATH, e.g. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |