Lib abilities - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC: Lib abilities

Lib abilities 4 years 3 months ago #6826

  • Dmitry Kazakov
  • Dmitry Kazakov's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Lib abilities 4 years 3 months ago #6828

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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?.

Please Log in or Create an account to join the conversation.

Last edit: by marcoP.

Lib abilities 4 years 3 months ago #6830

  • Dmitry Kazakov
  • Dmitry Kazakov's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Lib abilities 4 years 3 months ago #6831

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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

Please Log in or Create an account to join the conversation.

Last edit: by marcoP.

Lib abilities 4 years 3 months ago #6833

  • Dmitry Kazakov
  • Dmitry Kazakov's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

Lib abilities 4 years 3 months ago #6835

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
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"

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum