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

More
IP: 192.168.0.71 11 years 5 months ago - 11 years 4 months ago #7342 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.
More
IP: 192.168.0.158 11 years 5 months ago #7343 by nermeen
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 )
More
IP: 192.168.0.71 11 years 5 months ago #7346 by asliyanage
can't we call a pdf opening on each fragment ?
More
IP: 192.168.0.158 11 years 5 months ago #7348 by nermeen
Yes, you have to ... but you need to close the pdf for the invisible fragments
More
IP: 192.168.0.71 11 years 5 months ago #7533 by asliyanage
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.
More
IP: 192.168.0.158 11 years 4 months ago #7539 by nermeen
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
Powered by Kunena Forum