Skip to content
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

Merged
merged 3 commits into from
Mar 22, 2013
Merged

New Streams #446

merged 3 commits into from
Mar 22, 2013

Conversation

pointlessone
Copy link
Member

  • 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.

* 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.
@pointlessone
Copy link
Member Author

This should fix #434 as well as some other potential problems.

@bradediger
Copy link
Member

This looks good to me. Anyone else want to review or have comments?

end
end

module ASCII85Decode
Copy link
Member

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?

@yob
Copy link
Member

yob commented Feb 24, 2013

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.
@pointlessone
Copy link
Member Author

@yob Any other comments on this pull request?

@yob
Copy link
Member

yob commented Mar 16, 2013

Nope. It looks good to me, but I'll leave it to Brad to merge if he's happy.

@bradediger bradediger merged commit 71a08e5 into prawnpdf:master Mar 22, 2013
@bradediger
Copy link
Member

👍 Merged. Thanks @cheba, @yob!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants