- Thank you received: 0
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
Trying to make link&index in pdf clickable
- Sokołowski
- Topic Author
- New Member
-
Less
More
IP: 192.168.0.71
12 years 2 months ago #6503
by Sokołowski
Trying to make link&index in pdf clickable was created by Sokołowski
We have based our application on PDFHttpDemo and found that links are unclickable. To fix it we are trying to adopted some code from PDFReader example.
The question is why:
returns Annotation object in PDFReader example and NULL in PDFHttpDemo?
Regards,
L
Code:
public boolean OnPDFSingleTapped(float x, float y)
{
if( m_status == STA_NORMAL || m_status == STA_ANNOT )
{
m_annot_pos = m_view.vGetPos((int)x, (int)y);
m_annot_page = m_view.vGetPage(m_annot_pos.pageno);
Page page = m_annot_page.GetPage();
if( page == null ) m_annot = null;
else m_annot = page.GetAnnotFromPoint(m_annot_pos.x, m_annot_pos.y);
...
The question is why:
Code:
m_annot = page.GetAnnotFromPoint(m_annot_pos.x, m_annot_pos.y)
returns Annotation object in PDFReader example and NULL in PDFHttpDemo?
Regards,
L
- Sokołowski
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
IP: 192.168.0.71
12 years 2 months ago #6514
by Sokołowski
Replied by Sokołowski on topic Trying to make link&index in pdf clickable
Still trying.
In the doc I have read "this [GetAnnotFromPoint] can be invoked after ObjsStart or Render or RenderToBmp" so I have tried to invoke Page.ObjsStart() with no success.
I guess this are all methods connected with pdf edition while we are tryig to create simple pdf reader. I think there should be a simple method to follow inner and externals links in pdf files but I can't find it.
Could you please show me direction?
While looking for solution we are using PDFHttpDmo with Premium license as doc says that annotation suppport needs proffessional+ licenses.
Will we have to upgrade our "standard" license to enable following links in pdf?
I will appreciate any help,
Regards,
L
In the doc I have read "this [GetAnnotFromPoint] can be invoked after ObjsStart or Render or RenderToBmp" so I have tried to invoke Page.ObjsStart() with no success.
I guess this are all methods connected with pdf edition while we are tryig to create simple pdf reader. I think there should be a simple method to follow inner and externals links in pdf files but I can't find it.
Could you please show me direction?
While looking for solution we are using PDFHttpDmo with Premium license as doc says that annotation suppport needs proffessional+ licenses.
Will we have to upgrade our "standard" license to enable following links in pdf?
I will appreciate any help,
Regards,
L
IP: 192.168.0.71
12 years 2 months ago #6522
by radaee
Replied by radaee on topic Trying to make link&index in pdf clickable
PDFHttpDemo does not actived license, it is view only.
so, link is not clickable.
and, annotation object not avaible in standard license.
so, link is not clickable.
and, annotation object not avaible in standard license.
- Sokołowski
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
IP: 192.168.0.71
12 years 2 months ago - 12 years 2 months ago #6525
by Sokołowski
Replied by Sokołowski on topic Trying to make link&index in pdf clickable
Thank you.
I will check but I'm not sure it is the reason as I can see
in "global.java" and annotations fuction properly in the second example "PdfReader".
I will use "global.java" from "PDFReader" example and will name package accordingly to verify if it is the reason.
Regards,
L
I will check but I'm not sure it is the reason as I can see
Code:
boolean succeeded = activePremium(...
in "global.java" and annotations fuction properly in the second example "PdfReader".
I will use "global.java" from "PDFReader" example and will name package accordingly to verify if it is the reason.
Regards,
L
Last edit: 12 years 2 months ago by hsu123.
- Sokołowski
- Topic Author
- New Member
-
Less
More
- Thank you received: 0
IP: 192.168.0.71
12 years 2 months ago - 12 years 2 months ago #6527
by Sokołowski
Replied by Sokołowski on topic Trying to make link&index in pdf clickable
You were right.
Thank you.
in PDFHttpDemo is a little bit confusing wouldn't be bettter to use "activeStandard" or activate the license as in PDFReader exmaple?
Best regards,
L
Thank you.
Code:
boolean succeeded = activePremium(act, "radaee", "[email protected]", "LNJFDN-C89QFX-9ZOU9E-OQ31K2-FADG6Z-XEBCAO");
in PDFHttpDemo is a little bit confusing wouldn't be bettter to use "activeStandard" or activate the license as in PDFReader exmaple?
Best regards,
L
Last edit: 12 years 2 months ago by hsu123.
Time to create page: 0.449 seconds