I'm developing an app for Android that needs to work extensively with PDF files, and mupdf http://www.mupdf.com/ proved to work well with this task. I was also able to modify the Java and C source files to accept different color "Ink Annotations" and different line thickness. (The code version 1.6 downloaded from the website only allows for red colored ink annotations with a fixed line width).
Now I want to add geometry annotations such as rectangles and circles and lines. Both the Java and C code files have "Annotation Types" that correspond to these annotations, but I can't figure out which functions to call nor what exactly needs to be added to do this.
Is there a way to add this to the current version of muPDF (1.6)? If so, could you please point me in the correct direction?