PDFTron Android on Fragment

Yes, you can manage/load a pdf into a fragment. Quoting Android developer website, “Fragments behave somewhat like a nested activity that can define its own layout and manage its own lifecycle.”

Since fragments have their own layout, you can easily add a PDFViewCtrl to it. For example:

<pdftron.PDF.PDFViewCtrl
android:id="@+id/pdfviewctrl"
android:layout_width=“fill_parent”
android:layout_height=“fill_parent”
android:scrollbars = “vertical|horizontal”/>

On your fragment’s onCreate() method you can get the reference to this PDFViewCtrl and then load the document into it. Just remember that fragments have a slightly different life-cycle than activities, and depending on what you want to achieve you need to have that in mind.

You can also take a look in the mobile API for Android: http://www.pdftron.com/pdfnet/mobile/Javadoc/index.html
Android website: http://developer.android.com/training/basics/fragments/index.html