- Posts: 5
- 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
How to integrate Pdf reader
IP: 192.168.0.71
11 years 6 months ago #7328
by narezzi
How to integrate Pdf reader was created by narezzi
Hello sir,
I have already purchases a licences key, but i have no idea how to integrate into a my project.
I have already purchases a licences key, but i have no idea how to integrate into a my project.
IP: 192.168.0.158
11 years 6 months ago #7329
by nermeen
Replied by nermeen on topic How to integrate Pdf reader
you need to change the activate method in Global.Init with your activation info
Code:
activeProfessional(act, company, email, key)
- asliyanage
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 6 months ago #7333
by asliyanage
Replied by asliyanage on topic How to integrate Pdf reader
can you provide the code for pdf view example code?
IP: 192.168.0.158
11 years 6 months ago #7334
by nermeen
Replied by nermeen on topic How to integrate Pdf reader
You can check PDFReaderAct in the demo project
- asliyanage
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 5 months ago #7374
by asliyanage
Replied by asliyanage on topic How to integrate Pdf reader
those demo contain lot of code.Can you provide a simple one?
IP: 192.168.0.158
11 years 5 months ago #7379
by nermeen
Replied by nermeen on topic How to integrate Pdf reader
To view a pdf: (check PDFReaderAct for complete code)
Code:
m_doc.Close();
int ret = doc.Open(m_path, password);
switch( ret ) {
case -1://need input password
InputPassword(item);
break;
case -2://unknown encryption
finish();
break;
case -3://damaged or invalid format
finish();
break;
case -10://access denied or invalid file path
finish();
break;
case 0://succeeded, and continue
InitView();
break;
default://unknown error
finish();
break;
}
Time to create page: 0.439 seconds