# HG changeset patch # User Björn Ricks # Date 1415797442 -3600 # Node ID 3918c3c69485c81813f39956dc56777b0584c3e7 # Parent 16352bd395faa1d0ab5da370d1dfc87724a76ef2 Add ignore_file_errors option to mergeclient Mergeclient is the example client implementation for merging pdf documents. Therefore it should provide the option to ignore pdf file errors diff -r 16352bd395fa -r 3918c3c69485 mergeclient.py --- a/mergeclient.py Wed Nov 12 14:02:50 2014 +0100 +++ b/mergeclient.py Wed Nov 12 14:04:02 2014 +0100 @@ -13,6 +13,8 @@ parser.add_option("-s", "--host", default="localhost") parser.add_option("-p", "--port", default="5000") parser.add_option("-o", "--out", default="merged.pdf", dest="out") + parser.add_option("-i", "--ignore-file-errors", action="store_true", + default=False, dest="ignorefileerrors") (options, args) = parser.parse_args() if len(args) < 2: @@ -22,6 +24,9 @@ service = "merge" url = "http://%s:%s/%s/" % (options.host, options.port, service) + if options.ignorefileerrors: + url += "?ignore_file_errors=1" + files = [] for filename in args: