Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Add pdf_update_annot, which is called before rendering an annotation, and
checks that the annotation structure has correct information. There are
three reasons the information can be out of date.
Attributes of a field may have been changed such that its appearance
stream needs updating. In this case the field will have have "Dirty"
added to its dictionary
The mouse may have changed state over the field, and a different
appearance stream needs selecting. The annotation structure now records
the mouse states for which the current appearance stream is acceptable.
The field may have changed state as recorded by its "AS" value, and a
different appearance stream needs selecting.
|
|
|
|
Also add a function to report whether the core has javascript support,
so that the additional features can be enabled only when the javascript
engine is present
|
|
|
|
Files had been added to project, but not to android makefiles.
Thirdparty file paths needed updating in android makefiles.
Rebuilding with the latest ndk (r8b) shows a problem due to a
bug in the NDK. Work around this.
|
|
If the user rapidly changes page, many drawPage calls can be queued for
many page views, each holding a reference to a bitmap. This change ensures
that bitmap creation will be delayed until the bitmaps of other views will
be gc'able, thus fixing bug 693230: "Mupdf/android provokes out of memory
when continuously rendering pages in pdf with large images".
|
|
|
|
|
|
|
|
|
|
Just fix a typo in the xml
|
|
|
|
|
|
Now selects between displaying "Text not found" and "No further occurences found"
|
|
The highlights were unintentionally being cached between file invocations.
In fact it was possible for the highlighting from one file to appear when
opening another, even if those highlights didn't match words on the page.
That could happen if both files happened to have been last opened on a
common page (common in terms of page number).
|
|
Also change the search button to behave as a toggle.
|
|
Fixed by doubling the seekbar resolution and rounding odd positions upwards.
|
|
|
|
|
|
|
|
|
|
Make a separate constructor function that does not link in the
interpreter, so we can save space in the mubusy binary by not
including the font and cmap resources.
|
|
|
|
Thanks to Robin for the nice idea of storing the text with the search so
that we can test whether it matches the edit contents
|
|
Also ensure that starting a search closes the keyboard.
|
|
Sebras found a way of crashing the MuPDF Android app by seeking
quickly back and forth with the page seek bar. After about 30
seconds of frantically tapping either end of it, we'd force close.
Examination shows this is due to the Async task queue getting full
and throwing an exception. A simple fix is to catch the exception
and perform the same tasks in the foreground.
Testing indicates that this causes the UI to stall, but it's far
preferable to a crash.
|
|
Also update the android ReadMe.txt file to include details of this.
|
|
|
|
|
|
|
|
When building MuPDFActivity as part of a framework, the application
lifecycle is slightly different. This can mean that if an attempt
is made to open a corrupt file (that fails to open) createUI can be
called with core == null. The fix is just to check that core is
non-null.
We add this check in various places to be doubly sure.
|
|
|
|
The link support still has several outstanding issues that need to be
solved.
|
|
The patterns can be used freely in both personal and commercial projects
with no attribution required, but always appreciated.
darkdenim3.png was made by Brandon Jacoby.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bring up to date with current APIs, including text device changes.
|
|
Debug printing functions: debug -> print.
Accessors: get noun attribute -> noun attribute.
Find -> lookup when the returned value is not reference counted.
pixmap_with_rect -> pixmap_with_bbox.
We are reserving the word "find" to mean lookups that give ownership
of objects to the caller. Lookup is used in other places where the
ownership is not transferred, or simple values are returned.
The rename is done by the sed script in scripts/rename3.sed
|
|
|
|
|
|
|
|
|