Change error log level to warning.
It is some auto correction and PDF will be processed even with these problems so I want to avoid error alerts to be triggered.
User mail list doesn't work for me somehow so I am proposing it this way.
These are nasty problems. The PDF is definitively messed up and it should be checked with the sender whether it is correct. Just because you get the same content than with Adobe doesn't mean everything is OK.
Hi @THausherr sorry for late reply.
I agree that PDF is not in good shape, but unfortunately it is some input from users / companies which we need to process even if there are some problems.
Logging that error is problem for our alerting system, which is triggered for every error logged.
I can see three possibilities, how to handle this:
- as proposed in PR, change log level to warning. PDF is still processed even that this error occure
- gather errors in some list and allow user of the library to decide what to do in case of error
- switch of error logging for that class, which could be dangerous
- allow to provide some configuration to parser/library in which level this should be logged (with error as default)
Please suggest what would be the best choice in this case.
Thanks you
I like none; however with log4j you can limit output in specific classes.
Ok, I will go with option 3 as you suggest.