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

Lib abilities

More
IP: 192.168.0.71 11 years 7 months ago #6826 by Dmitry Kazakov
Lib abilities was created by Dmitry Kazakov
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?
More
IP: 192.168.0.71 11 years 7 months ago - 11 years 7 months ago #6828 by nermeen
Replied by nermeen on topic Lib abilities
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

www.androidpdf.mobi/documentation/javado...ocument.html#OpenMem (byte[], 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: 11 years 7 months ago by marcoP.
More
IP: 192.168.0.71 11 years 7 months ago #6830 by Dmitry Kazakov
Replied by Dmitry Kazakov on topic Lib abilities
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?
More
IP: 192.168.0.71 11 years 7 months ago - 11 years 7 months ago #6831 by nermeen
Replied by nermeen on topic Lib abilities
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: 11 years 7 months ago by marcoP.
More
IP: 192.168.0.71 11 years 7 months ago #6833 by Dmitry Kazakov
Replied by Dmitry Kazakov on topic Lib abilities
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?
More
IP: 192.168.0.71 11 years 7 months ago #6835 by nermeen
Replied by nermeen on topic Lib abilities
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"
Time to create page: 0.438 seconds
Powered by Kunena Forum