-
Notifications
You must be signed in to change notification settings - Fork 687
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
New Streams #446
New Streams #446
Conversation
* Multiple filters per stream * It's now possible to append data to compressed streams * Stream compression is reentrant (multiple calls to `compress!` will have stream deflated only once). * A few additional filters from PDF spec * ASCIIHex * ASCII85 * DCT filter is a stub as it's used only in JPEG images. It doesn't decode/encode JPEG images.
This should fix #434 as well as some other potential problems. |
This looks good to me. Anyone else want to review or have comments? |
end | ||
end | ||
|
||
module ASCII85Decode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ascii85 gem is an indirect dependency via pdf-reader. Maybe this class should just delegate to that?
The AsciiHex and Ascii85 filter aren't used anywhere in the code base. I'm not keen on adding extra code that isn't used. I like this change in general and like that we can add the extra filter types if we ever need them. Maybe we should merge this work minus the unused filters? |
Threre probably should be a gem with all the filters that are not used in the core.
@yob Any other comments on this pull request? |
Nope. It looks good to me, but I'll leave it to Brad to merge if he's happy. |
compress!
will havestream deflated only once).
decode/encode JPEG images.