summaryrefslogtreecommitdiff
path: root/platform/android
AgeCommit message (Collapse)Author
2017-01-09Remove platform/android/example directory.Tor Andersson
The Android example viewer has been moved to its own git repository.
2017-01-09Remove platform/android/viewer directory.Tor Andersson
The Android viewer has been moved to its own git repository.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-02Bump version number.Tor Andersson
2016-11-21Harden viewers against failures when loading outlines.Tor Andersson
Ignore invalid page references in outlines. This was shown by a file that had [null 0 0 1] as a link dest. Attempting to parse that threw an error, which caused the whole outline load to fail.
2016-11-17Rename openssl flags to libcrypto.Sebastian Rasmussen
Only libcrypto is used to do checking of digital signatures. The SSL library openssl is never used.
2016-11-15adapt to api change for toStructuredText.Fred Ross-Perry
No arguments are necessary.
2016-11-15Android example - smoother flingingFred Ross-Perry
scale the fling distance and time to the fling velocity. fling farther and for longer when the velocity is higher.
2016-11-15Android example - update gradle version.Fred Ross-Perry
2016-11-15Android example - fix to maintain vertical center when zooming.Fred Ross-Perry
2016-11-15Update JNI code to load 32 or 64 bit DLL as appropriate.Robin Watts
Make the JNI code detect whether it is running on a 32 or 64 bit machine, and change the name of the DLL appropriately. Update Android Makefile to make mupdf_java32 instead of mupdf_java. Update Java Makefile to make mupdf_java32 or mupdf_java64 based on the system it is running on. This choice can be overruled by defining BITS to be "32" or "64" before calling make. Update Windows Solution to make mupdf_java32 or mupdf_java64 as appropriate.
2016-11-15Fix android build after fz_buffer internal hiding.Robin Watts
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-11-08Fix android warnings.Tor Andersson
2016-11-02android: Don't bound twice in update_changed_rects.Tor Andersson
2016-11-02android: Fix spelling error.Tor Andersson
2016-11-02android: Fix screen updates when deleting annotations.Tor Andersson
2016-10-31Fix android build.Tor Andersson
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
2016-10-26Bump version number to 1.10.Tor Andersson
2016-10-26Fix 697233: Add FB2 file type to mobile viewers.Tor Andersson
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-10-24Bug 697226: Fix SEGV in Android viewer.Robin Watts
As we skip through pages very quickly, it is apparently possible to trigger a SEGV. Alex Talis has given a clear description of the problem on the bug, and proposed this solution. Essentially this tweaks our CancellableAsyncTask class to ensure that we do not destroy the cookie before it has finished being accessed.
2016-10-12Remove superfluous context null checks.Tor Andersson
Code MUST pass a non-null context to all functions. Checking ctx for null and failing silently is no more useful than segfaulting. fz_keep_imp and fz_drop_imp handle NULL pointers safely, so the NULL checks for this can also be dropped at the same time.
2016-10-12Android: Bug 697054: Increase zoom limitRobin Watts
Increase zoom limit to 64 times.
2016-10-07Add annotation editing functions and clean interface of existing ones.Tor Andersson
2016-10-07Remove separate tmp/deleted/changed annotation lists.Tor Andersson
Use a flag in the pdf_annot struct instead. Don't pass pdf_document to annotation edit functions.
2016-10-06Bug 697196: Add missing openjpeg file to Android Makefiles.Robin Watts
When updating openjpeg, I forgot to update the Android JNI makefiles with a newly created file. Thanks to szukw000 for reporting this!
2016-09-23Android example: Make selected display profile persistentFred Ross-Perry
Also, we attempt to start the proofing at the currently-being-viewed page.
2016-09-23Android example: add embedded profile to print profiles listFred Ross-Perry
In the proof dialog, when the document has an embedded print profile, add it to the top of the list of choices. If it's selected, send <EMBEDDED> into gs instead of a file name.
2016-09-23Android example: tweak Apply button in proofing dialog.Fred Ross-Perry
Enable Apply button in proofing only when color checkboxes are changed.
2016-09-23Android example: move kankan module.Fred Ross-Perry
Out of platform/java and into the platform/android/example.
2016-09-23JNI: Rework conversion functions and nulls.Robin Watts
Java has a convention that 'toString' should return a printable version of an object. We cannot both support this, and support a sane naming of functions to interpret pdf objects that begins with 'to'. Instead use 'as'. This means we have 'asBoolean', 'asInteger', 'asString' which expect to work just on pdf objects of the required type. 'toString' continues to work on all types and gives a printable version. We split 'toByteString' into 2 separate functions, one for acting on strings (asByteString) and one for acting on names (asByteName) more nicely mirroring the C level functions (pdf_to_string and pdf_to_name). For simplicity of use, we add asString and asName functions that return using java Strings rather than byte arrays. There are potential encoding issues with these, but then there are throughout our string handling at the moment, so we will deal with those in a followup commit. We also update the internal workings of several functions so that they never return NULL pointers, but rather return the null object. To avoid repeatedly creating new null objects we introduce a global static PDFObject.Null object. This is important as we want get("SomethingNonexistent") to return a valid java object, so we can safely do things like: get("Foo").get("Bar").get("Baz").asInteger() without having to error check at every stage. Update DocViewActivity to call the new versions.
2016-09-23Java code to get embedded profile name from a PDF.Robin Watts
To be used to make correct profile invocations.
2016-09-23Clean up annotation enum names.Tor Andersson
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum.
2016-09-21Android example - don't do any layout after the document has been destroyed.fred ross-perry
2016-09-17Android app: Update rgba -> bgra.Robin Watts
The separation class had a member renamed. Rename it here too.
2016-09-14Android example - delete temp files after proofing, destroy the document and ↵fred ross-perry
pages after use.
2016-09-14Android example: add options argument in calls to Page.toStructuredTextfred ross-perry
2016-09-14Android example - Add proofing support.fred ross-perry
2016-09-14Android example - drawing ink annotationsfred ross-perry
This commit puts in the UI for drawing with color and line thickness. But it does not yet save this to the document.
2016-09-14Android example - add button for toggling annotations.Fred Ross-Perry
2016-09-14Android example - file toolbar icons, password dialogFred Ross-Perry
add five icons to the File toolbar (not yet functioning) add a dialog to collect the password from the user for protected documents.
2016-09-14Android example - hook up the back button to finish the activity.Fred Ross-Perry
2016-09-13Update MuPDF Android build for Memento.Robin Watts
Call Memento_fin rather than piecemeal functions to ensure we get full details when available. Ensure we link with the required lib for backtracing to work in Memento builds.
2016-09-08Add options to control heuristics in structured text.Sebastian Rasmussen
2016-08-19Android example: added text searching.Fred Ross-Perry
2016-08-17Android example - add first page and last page buttonsFred Ross-Perry
also, change DocPageView to paint a white background before doing anything else. Makes for smoother-looking scrolling. And, re-introduce the slower scrolling (400 msec) when moving between pages.
2016-08-16Android example - update gradle versionfredross-perry
2016-08-16Android example - remove isBlank, start2=afterFirstLayoutComplete, ↵fredross-perry
ul/dr=upperLeft/lowerRight