- Posts: 3
- Thank you received: 0
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
Getting only the Radaee PDF reader
IP: 216.66.42.253
6 years 10 months ago #14677
by kamennik
Getting only the Radaee PDF reader was created by kamennik
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.
We will buy of course the full license.
Just curious.
IP: 111.196.246.217
6 years 10 months ago - 6 years 10 months ago #14678
by radaee
Replied by radaee on topic Getting only the Radaee PDF reader
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.
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.
Last edit: 6 years 10 months ago by radaee.
IP: 37.183.44.177
6 years 10 months ago #14679
by support
Replied by support on topic Getting only the Radaee PDF reader
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 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).
IP: 216.66.42.253
6 years 10 months ago #14680
by kamennik
Replied by kamennik on topic Getting only the Radaee PDF reader
TYVM, very good points.
Time to create page: 0.401 seconds