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

Get Bitmaps from every page of PDF file #20

Closed
aemarkov opened this issue Jun 30, 2016 · 4 comments
Closed

Get Bitmaps from every page of PDF file #20

aemarkov opened this issue Jun 30, 2016 · 4 comments

Comments

@aemarkov
Copy link

aemarkov commented Jun 30, 2016

Is there any way to get Bitmap from every page of PDF file? I need to render pdf and also get Bitmaps to do some extra operations with them (e.g. save).

There is onLayerDrawn event, but it call not only once, but every time pdf is scrolled.

I know, that storing many Bitmaps in memory is not good idea, but it is important feature and will work for files with a few pages.

@barteksc
Copy link
Collaborator

barteksc commented Jul 1, 2016

Library does not render whole page as one bitmap, so you can't do that. Only possibility is to use PdfiumAndroid itself and manually render page to bitmap e.g. on page change.

@aemarkov
Copy link
Author

aemarkov commented Jul 1, 2016

Do you know how to do this? Or what I can read to learn something about it?

@barteksc
Copy link
Collaborator

barteksc commented Jul 3, 2016

PdfiumAndroid on Github - https://github.com/barteksc/PdfiumAndroid

@aemarkov
Copy link
Author

aemarkov commented Jul 3, 2016

Thank you!

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

No branches or pull requests

2 participants