joniks / Android-MuPDF

MuPDF usage for magazine reading
GNU Affero General Public License v3.0
184 stars 74 forks source link

How to add Text Annotation #35

Closed 1uokun closed 5 years ago

1uokun commented 5 years ago

Annotation Type

There are some type in MUPDF in https://github.com/joniks/Android-MuPDF/blob/6d544a72e82ee89a48db965c7fa07f4c1b71274a/library/src/com/artifex/mupdflib/Annotation.java#L5-L8

Question

How to I use FREETEXT or WATERMARK,

Can you give me some example for the other type ?

Where can I see the Internal API doc?

MayBe like this in MuPDFCore

public void addFreetextAnnotation(int page, float x, float y, String text){
   gotoPage(page);
   addFreetextAnnotationInInternal(text)
}

Watiing for 💗