-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code cleanup (Add library dependencies, remove old custom code) #90
Conversation
…tead of ExceptionConverter. Removed ExceptionConverter.
….escapeXML. Deprecate SimpleXMLParser.
…ve the LZWDecoder class.
…m BMP, GIF, PNG, TIF and JBIG image codecs.
Great to see this cleaned up. 👍 It looks like a bad practice to use a class from an internal package Or am I missing something? |
@PascalSchumacher Thanks, updated. |
By the way |
…arser.getEncodingName.
I understand that using libraries can simplify things, however I am not only positive about it. It introduced 5 new dependencies that might collide with dependencies from the using project its other dependencies. |
@kasperschnack Please open bugs about specifics you are missing. Some functions were removed as part of this cleanup process. Some of the removed classes had other open source licences than LGPL/MPL. @gexclaude Using libraries will allow this project to focus more on the core functionality. Apache Commons are widely used libraries which should be fine to use for almost all projects. Some of the dependencies can be made optional, pull-requests are welcone. Please open bugreports about specific issues you might have. |
Why was bidirectional text support removed? Is there a new better way it can be supported now? |
@sagendejonge Because of licensing. If you can prove it is safe, then we can add it back. |
that is what meant with my previous comment. Keeping the number of dependencies small for a library, it eases its usage, which is a clear benefit. But of course, I don't mean to avoid dependencies at all costs. |
@andreasrosdal Ok thanks for the explanation. |
This is part of the ongoing work on Issue #89, where the source code is cleaned up, old custom source code is replaced by using software libraries instead.
As a result of this the contents of misc_licenses.txt is reduced considerably, making OpenPDF significantly more LGPL/MPL consistent. The only remaining class mentioned there now is SimpleXMLParser. That class is very-non-trivial to replace, and it is still in use in iText, so it should be safe.
I intend to merge this pull-request in some days if there are no strong objections.