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

TOPIC:

Getting only the Radaee PDF reader 4 years 5 months ago #14677

  • kamennik
  • kamennik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi, we will most probably get the radaee license for Android. I have downloaded the trial version, extracted the only class that we need: PDFGLSimpleAct and imported the library ViewLib into a separate app, the resulting app in release is around 20MB (without any additional code or libararies) . When we buy the license, is there an option to get also a more lightweight library, with just basic http streaming and reading from downloaded files (we will be handling the downloading) with the page curl option?

We will buy of course the full license.

Just curious.

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

Getting only the Radaee PDF reader 4 years 5 months ago #14678

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
our demo app shall only 13M apk size for debug build, even include x86 libraries.
there are some points may help you:
1.remove "x86_64" and "x86" arch libraries, if you are sure your app never run on x86 devices.
2.check images and other assets that you added to app, avoid large images, and same image from different location.
3.delete files in assets, like "$RDPDFReader\src\main\assets"
4.remove codes never used, no from packages "com.radaee.pdf", "com.radaee.util", "com.radaee.view".
5.check your other third party reference.
6.there is 3 modules in demo project: "PDFReader","RDPDFReader","ViewLib", you can remove module "PDFReader" if you only using "RDPDFReader"

"ViewLib" is base module referenced by both "PDFReader" and "RDPDFReader".
"PDFReader" is deprecated module based on deprecated classes. currently, we use "RDPDFReader" to run reader.

at last, plz check your project, and compare to the demo project.
The following user(s) said Thank You: kamennik

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

Last edit: by radaee.

Getting only the Radaee PDF reader 4 years 5 months ago #14679

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
More information.

The raw folder contains about 16Mb of resources mainly related to fonts' redering.
If you're sure that PDF files you will manage will fully be embedding fonts faces and you won't manage non-Asiatic fonts you could try not to provide ttf/otf files and cmap.

One more: new App bundle mechanism from Google Play manages different devices' architecture removing from the deployed binary unwanted and unneeded files (ie.: running on an ARM64 architecture the provided binary should not include the ARM32, x86, x86_64 architecture).
The following user(s) said Thank You: kamennik

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

Getting only the Radaee PDF reader 4 years 5 months ago #14680

  • kamennik
  • kamennik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
TYVM, very good points.

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

  • Page:
  • 1
Powered by Kunena Forum