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

Deflating streams #68

Open
alistair0adams opened this issue Sep 7, 2024 · 1 comment
Open

Deflating streams #68

alistair0adams opened this issue Sep 7, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@alistair0adams
Copy link

Describe your idea

Decoding of steams is not part of the exposed API. It will save those not intimately familiar with the structure of PDFs a lot of work, or some may give up entirely on using this library. So why not put decoding of streams as part of the PDFRawStreams class.

How could this be implemented?

getContents() should look to see if the stream has been decoded. If not already decoded it should call decodePDFRawStream and store the decoded content in the class so the next time getContents() is called it just returns the decoded data.

What problem are you trying to solve?

Making this library easier to use. A user of this library shouldn't have to need to how deal with this like this user did: Hopding#1627

Why does this matter to you?

For my use I can just hack around it, but wouldn't it be better for everyone?

Would others find this helpful?

Yes.

Are you interested in implementing your proposal?

Yes

Why are you submitting a proposal?

Does this make sense? Is there something I haven't thought about (likely).?

Additional Notes

No response

@Sharcoux
Copy link
Collaborator

Sharcoux commented Sep 9, 2024

Hi

Thanks for the suggestions. Can you provide a PR please?

@Sharcoux Sharcoux added help wanted Extra attention is needed and removed needs-triage labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants