Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Capturing Annotation Click...

More
11 years 1 month ago - 11 years 1 month ago #8418 by tschumaker
I am trying to understand how to get a handle on "annotations' while evaluating the Android PDF software.

My environment:

* I am using version 3.3.1.
* When I asked this question earlier, I was referred to the following knowledgebase article:
www.radaeepdf.com/support/knowledge-base?view=kb&kbartid=6

However, I do not see PDFReaderListener classes as even being available, only PDFThumbListener and PDFViewListener (both of these listeners do not provide "annotation semantics").

I am attaching my working program below, along with the annotation PDF file (that has the clicks embedded in them, which I want to capture).
(ignore the 1st Java file, look at the second one.

Thanks ahead of time for any suggestions.

Troy
Last edit: 11 years 1 month ago by tschumaker.
More
11 years 1 month ago - 11 years 1 month ago #8420 by radaee
fist of all, u shall need a professional license.
and then derive class like:
Code:
public class PDFReaderAct extends Activity PDFReaderListener
eclipse shall auto generate all methods for PDFReaderListener.

when Activity start, invoke Global.Init(); and open PDF file.
then, open PDFReader codes like:
Code:
m_reader.PDFOpen(m_doc, false, this);
there are method:
public void OnAnnotClicked(PDFVPage vpage, Annotation annot)
for PDFReaderListener, which implement in Activity class
Code:
public void OnAnnotClicked(PDFVPage vpage, Annotation annot) { m_reader.PDFPerformAnnot(); }
when user click on an annotation.
if itis link jump to another page, shall auto jumping.
others, shall call other callbcks:
Code:
public void OnOpenJS(String js) { //todo: parser java-script. } public void OnOpenURI(String uri) { } public void OnOpenMovie(String path) { } public void OnOpenSound(int[] paras, String path) { } public void OnOpenAttachment(String path) { } public void OnOpen3D(String path) { }
Last edit: 11 years 1 month ago by Davide.
More
11 years 1 month ago #8422 by support
It seems you are using the httpstream demo skeleton.
That application is really simple and I suggest you to start your testing from the full demo project.
May be, if the stream input is a must for you, you should change the Document.Open with a Document.OpenStream.

Or are there some other reasons you was starting with the simpler package?
Time to create page: 0.410 seconds
Powered by Kunena Forum