RadaeePDF.com :: Topic: Lib abilities (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Lib abilities

Lib abilities 3 years 3 months ago #6826

Hello,

I make some research for my client and want to understand capabilities of the app.

I don't see in the demo app how I can load pdf from sdcard or from the internal memory. Is it possbile? Do you have a code snippet?

I want to show pad as scrollable pages. Does is possible? Do you have app that demonstrates this?
The administrator has disabled public write access.

Lib abilities 3 years 3 months ago #6828

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
load pdf from sdcard or from the internal memory: Yes, it's possible, you need to pass the file path to the open method, check
http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Document.html#Open(java.lang.String, java.lang.String)
www.androidpdf.mobi/documentation/javado...ocument.html#OpenMem(byte[], java.lang.String)
http://www.androidpdf.mobi/documentation/javadocs/com/radaee/pdf/Document.html#OpenStream(com.radaee.pdf.Document.PDFStream, java.lang.String)

code snippet:
m_doc.open("/sdcard/test.pdf", "");
check also the demo project PDFReader.PDFOpen(Document, boolean, PDFReaderListener, PDFViewListener)

show pad as scrollable pages: do not understand what you mean, can you explain?.
Last Edit: 3 years 3 months ago by marcoP.
The administrator has disabled public write access.

Lib abilities 3 years 3 months ago #6830

Thank you.

I want to understand can I show pdf in others ways. For example I would like to open pdf as scrollable pages as other pdf viewers do this.

Is it possible?

Also I would like to make pdf viewer as fullscreen component.

It seems that app doesn’t support this automatically. Can you tell me which part of code is responsible for this?
The administrator has disabled public write access.

Lib abilities 3 years 3 months ago #6831

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
You can change the view mode, by changing the value of def_view variable in Global.default_config ..give them a try
fullscreen, no direct method to do so, you need to implement it yourself
Last Edit: 3 years 3 months ago by marcoP.
The administrator has disabled public write access.

Lib abilities 3 years 3 months ago #6833

New values in public static int def_view = 2; does not affect anything.

Does I understand you corrrectly that I need to modify NDK code to draw pdf as a fullscreen view?
The administrator has disabled public write access.

Lib abilities 3 years 3 months ago #6835

  • nermeen
  • nermeen's Avatar
  • OFFLINE
  • Moderator
  • Posts: 709
  • Thank you received: 49
  • Karma: 18
you need to change the value in Global.default_config..

No, not NDK you need to deal with it as a normal view, to make it as fullscreen you need to hide the action bar..

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
or
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum