Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

[SOLVED]I need to show pdf on each page 10 years 6 months ago #7342

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
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: by marcoP.
The topic has been locked.

I need to show pdf on each page 10 years 6 months ago #7343

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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 )
The topic has been locked.

I need to show pdf on each page 10 years 6 months ago #7346

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
can't we call a pdf opening on each fragment ?
The topic has been locked.

I need to show pdf on each page 10 years 6 months ago #7348

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Yes, you have to ... but you need to close the pdf for the invisible fragments
The topic has been locked.

I need to show pdf on each page 10 years 6 months ago #7533

  • asliyanage
  • asliyanage's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 100
  • Thank you received: 0
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.
The topic has been locked.

I need to show pdf on each page 10 years 6 months ago #7539

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Please check reader.xml in the demo project.
<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>
The topic has been locked.
  • Page:
  • 1
Powered by Kunena Forum