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

Implement MuPDF openBuffer #313

Closed
muotaz opened this issue Aug 19, 2015 · 5 comments
Closed

Implement MuPDF openBuffer #313

muotaz opened this issue Aug 19, 2015 · 5 comments

Comments

@muotaz
Copy link

muotaz commented Aug 19, 2015

Hello there,

I am trying to implement MuPDF openBuffer method, but I can't find the SO version in use in the project.
So, which MuPDF is being used in Librelio?

@libreliodev
Copy link
Owner

@intrications Which version are we currently using please?

@intrications
Copy link
Collaborator

I think 1.5 plus a few commits later that fixed a bug on Android:

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=38402bcf8dfea7b08cb5b3e6948af078d0b3874b

Here's the commit:
71b5af6

@muotaz
Copy link
Author

muotaz commented Aug 21, 2015

I see, so in that case the openBuffer method exhibits the issue explained here:

http://stackoverflow.com/questions/22558597/mupdf-how-to-open-pdf-file-with-openbuffer-method

So I had to use the 1.7 precompiled binary from MuPDF site, but then I was faced with this issue:

http://stackoverflow.com/questions/32136233/mupdf-cannot-recognize-version-marker

Any idea on how to get openBuffer working ? Thanks in advance

@intrications
Copy link
Collaborator

@muotaz I don't know I'm afraid. There are multiple open issues on this project about how to update MuPDF as you can see here: #208 (comment). I've tried updating it but I keep getting problems.

@muotaz
Copy link
Author

muotaz commented Aug 24, 2015

@intrications I think I was able to do it! I used the pre-compiled binary as I told you and then added some native library method declarations, added the cookie class, and modified drawPage method signature to conform to the new version (I have compared the sample MuPDF app and and went through the C code). And the openBuffer is working now.

@muotaz muotaz closed this as completed Aug 24, 2015
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

3 participants