Bug 693464 - open a document from a byte array
Summary: open a document from a byte array
Status: RESOLVED WORKSFORME
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: Android Phone Android
: P4 enhancement
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 02:34 UTC by pere
Modified: 2014-07-08 09:26 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
patch for mupdf-1.1-source (15.95 KB, patch)
2012-11-25 02:34 UTC, pere
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description pere 2012-11-25 02:34:44 UTC
Created attachment 9102 [details]
patch for mupdf-1.1-source 

The basic idea is to get a document from the network and display it without saving the sdcard from the phone, or select a document and send it to the network.

For this reason it is necessary to open the document from a byte array or  read it into a byte array.

I created a patch that fixes. To try it when I have had to change the main activity to find all pdf in the phone
Comment 1 Matt Holgate 2014-07-08 09:26:41 UTC
Thanks for the patch!

It turns out we've actually implemented this functionality ourselves, independently. Please see the 'openBuffer()' method in MuPDFActivity.java.

I'll close this bug, but please feel free to reopen if this doesn't work for you.