RadaeePDF.com :: Topic: Capturing Annotation Click... (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Capturing Annotation Click...

Capturing Annotation Click... 2 years 7 months ago #8418

  • tschumaker
  • tschumaker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
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
Attachments:
Last Edit: 2 years 7 months ago by tschumaker.
The administrator has disabled public write access.

Capturing Annotation Click... 2 years 7 months ago #8420

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
fist of all, u shall need a professional license.
and then derive class like:
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:
m_reader.PDFOpen(m_doc, false, this);
there are method:
public void OnAnnotClicked(PDFVPage vpage, Annotation annot)
for PDFReaderListener, which implement in Activity class
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:
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: 2 years 7 months ago by Davide.
The administrator has disabled public write access.

Capturing Annotation Click... 2 years 7 months ago #8422

  • support
  • support's Avatar
  • OFFLINE
  • Administrator
  • Posts: 497
  • Thank you received: 40
  • Karma: 6
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?
The administrator has disabled public write access.
Powered by Kunena Forum