read and write in binary
This commit is contained in:
parent
1302315bed
commit
1b609fc77d
1 changed files with 2 additions and 2 deletions
|
@ -201,9 +201,9 @@ def main(images, dpi, title=None, author=None, creator=None, producer=None,
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(description='lossless conversion/embedding of images (in)to pdf')
|
parser = argparse.ArgumentParser(description='lossless conversion/embedding of images (in)to pdf')
|
||||||
parser.add_argument('images', metavar='infile', type=argparse.FileType('r'),
|
parser.add_argument('images', metavar='infile', type=argparse.FileType('rb'),
|
||||||
nargs='+', help='input file(s)')
|
nargs='+', help='input file(s)')
|
||||||
parser.add_argument('-o', '--output', metavar='out', type=argparse.FileType('w'),
|
parser.add_argument('-o', '--output', metavar='out', type=argparse.FileType('wb'),
|
||||||
default=sys.stdout, help='output file (default: stdout)')
|
default=sys.stdout, help='output file (default: stdout)')
|
||||||
def positive_float(string):
|
def positive_float(string):
|
||||||
value = float(string)
|
value = float(string)
|
||||||
|
|
Loading…
Reference in a new issue