There is a new bugfix version of MAT2: 0.12.4, mostly fixing a major bug that could result in crashes/errors when processing multiple files via the command line interface. Can you spot the bug?
with concurrent.futures.ProcessPoolExecutor() as executor:
futures = list()
for f in files:
future = executor.submit(clean_meta, f, args.lightweight, inplace, args.sandbox, policy)
futures.append(future)
for future in concurrent.futures.as_completed(futures):
no_failure &= future.result()
If not, check the fix here. This release also addresses a couple of minor issues:
- Fix possible errors/crashes when processing multiple files via the command line interface
- Use a fixed PDF version for the output
- Improve compatibility with modern versions of rsvg
- Improve the robustness of the command line interface with regard to control characters
As usual, if you know some python or web-fu help is more than welcome.