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

Accept stream input #58

Open
zlangner opened this issue Mar 1, 2022 · 2 comments
Open

Accept stream input #58

zlangner opened this issue Mar 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@zlangner
Copy link

zlangner commented Mar 1, 2022

Currently it appears that this library supports byte[] and filepath inputs. It would be much more flexible if it also allowed for Stream input.

@Modest-as
Copy link
Member

Hi, PDFium does not expose a way to pass streams to the unmanaged code. Similar issue : #45

@zlangner
Copy link
Author

zlangner commented Mar 7, 2022

That is true but that doesn't mean the API layer of docnet can't. You could do what PDFiumSharp does and offer methods that take streams but resolve them into byte arrays before accessing the unmanaged code.

@Modest-as Modest-as added the enhancement New feature or request label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants