summaryrefslogtreecommitdiff
path: root/android/src/com/artifex/mupdfdemo/MuPDFCore.java
AgeCommit message (Collapse)Author
2013-02-26Android: add support for highlight and underline markup annotations.Paul Gardiner
Highlight annotations currently come out opaque so aren't a lot of use.
2013-02-26Include required quadPoints entry in created markup annotations.Paul Gardiner
Also change the way we pass the text rectangles so that non-axis-aligned ones can be permitted, and relocate the code that calculates the strike-out lines from the bounding boxes
2013-02-26Android: implement annotation deletionPaul Gardiner
2013-02-22Android: add MuPDFCore.getAnnotationsPaul Gardiner
2013-02-05Android: avoid byte[] -> String -> byte[]Paul Gardiner
2013-02-05Android: Use HTML output in reflow mode.Robin Watts
This gets us styles.
2013-02-04Android: zooming in reflow mode altering CSS fontSize via javascriptPaul Gardiner
2013-02-04Android: handle Unicode correctly in reflowPaul Gardiner
2013-02-03Android: first attempt at reflow modePaul Gardiner
2013-02-01Android: quick and dirty conversion of text to htmlPaul Gardiner
2013-01-31Android: implement strikeout annotation creationPaul Gardiner
2013-01-26Android: Fix NullPointerException seen on Google PlayRobin Watts
According to Google Plays automated crash detection, we get a NullPointerException when trying to parse a null string as a Uri. This turns out to be caused by us trying to open a PDF attachment from gmail. This is because MuPDF is invoked with a content:// URL that does not have a file associated with it. Instead we can open that URL as an InputStream. Here we amend MuPDF to spot that case, and to open the InputStream, suck the data into a byteArray, and then to use that to open the file from.
2013-01-22More work on android bitmap recycling.Robin Watts
After much discussion and investigation, Paul and I have realised that we do in fact (in the current scheme at least) need to hold the existing bitmap in memory while drawing the next one (as the existing bitmap is still in an ImageView and being used for any foreground render requests). As such remove a 'setBm(null)' in drawPage. Also, in the onPostExecute for the patch redraw, we cannot recycle the bitmap in a bitmap holder due to it still potentially being in use. We therefore add a 'drop' method to the BitmapHolder class that sets the reference to null without recycling. This is not ideal, but is better than recycling too early and causing crashes.
2013-01-21Rename app.Robin Watts
Due to a clash on Google Play, we need to rename the apps main class from com.artifex.mupdf to something else. We choose com.artifex.mupdfdemo. Any user of the code in their own app should rename it similarly. To simplify this process we add some macros in the C. Various renames and lots of tedious package name editing is still required in the Java though.