- Posts: 100
- 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
[SOLVED]I need to show pdf on each page
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
IP: 192.168.0.71
11 years 5 months ago - 11 years 4 months ago #7342
by asliyanage
[SOLVED]I need to show pdf on each page was created by asliyanage
I have view pager in my android application.It contain several fragments.There are several pdf files which contain only one pages.I need to show a pdf file on each fragment.when i swipe i need to show a other pdf files.can we do this using radaee pdf ? If yes can you provide me an example please?
Last edit: 11 years 4 months ago by marcoP.
IP: 192.168.0.158
11 years 5 months ago #7343
by nermeen
Replied by nermeen on topic I need to show pdf on each page
Yes, you can do it implementing it yourself..sorry we do not have an example code for this
You need to pay attention that, while navigating with the view pager you need to release resources or you will face lots of memory problems (for example closing the pdfs that is not visible)
The solution we recommend in your case, using a premium license, you will be able to create one pdf instead of all your one page pdfs...this will save memory resources, the navigation will be much smoother...etc
You can test this solution using the demo project (as it is activated with premium license), you can check PDFTestAct.concat_pdf( String dst, String src )
You need to pay attention that, while navigating with the view pager you need to release resources or you will face lots of memory problems (for example closing the pdfs that is not visible)
The solution we recommend in your case, using a premium license, you will be able to create one pdf instead of all your one page pdfs...this will save memory resources, the navigation will be much smoother...etc
You can test this solution using the demo project (as it is activated with premium license), you can check PDFTestAct.concat_pdf( String dst, String src )
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 5 months ago #7346
by asliyanage
Replied by asliyanage on topic I need to show pdf on each page
can't we call a pdf opening on each fragment ?
IP: 192.168.0.158
11 years 5 months ago #7348
by nermeen
Replied by nermeen on topic I need to show pdf on each page
Yes, you have to ... but you need to close the pdf for the invisible fragments
- asliyanage
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 0
IP: 192.168.0.71
11 years 5 months ago #7533
by asliyanage
Replied by asliyanage on topic I need to show pdf on each page
I tried with your demo project,but it doesn't provide me xml tag for pdf. I need a xml tag which can attached a pdf view to xml file.
IP: 192.168.0.158
11 years 4 months ago #7539
by nermeen
Replied by nermeen on topic I need to show pdf on each page
Please check reader.xml in the demo project.
Code:
<com.radaee.reader.PDFReader
android:id="@+id/view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" >
</com.radaee.reader.PDFReader>
Time to create page: 0.413 seconds