This is simple pdf viewer to load pdf in Vertical or Horizontal orientation.
Load from URL ,assets or path
Easy to use
Supports transparent background
Set Quality
Goto Page / Get page
Other options with feedbacks will added
Download :-
com.xtiger.damipdf.aix (34.3 KB)
DamiPDF.aia (23.3 KB) old
3 Likes
TIMAI2
July 13, 2024, 12:37pm
2
Not displaying pdf from Assets or URL in companion app, Android 13.
1 Like
its loading fine on my samsung android 11 .
I will look into it.
TIMAI2
July 13, 2024, 12:47pm
4
error message: file not in pdf format or corrupted
The pdf file I am testing displays in Chrome viewer and with my PDFView extension (loading from assets)
LoremIpsum.pdf (57.2 KB)
note: it does open a pdf from URL with your example aia, does not load same pdf from assets...
this pdf also working for me ,
added quality,
page no too,
Others can help me to test either it works or not in other android version
com.xtiger.damipdf.aix (22.8 KB)
DamiPDF.aia (161.1 KB)
TIMAI2
July 13, 2024, 2:42pm
6
What is the range for quality ? What is the default quality ? (should be in your tool tip)
Changes in the quality parameter are a bit strange with the output ?
No zoom (like with a webviewer) to be able to read smaller text.
Still no pdf returned from Assets.
Companion 2.71u / Android 13.
Quality range from (1-100)
Assets path in companion yet to be implemented ,
I will try to add zoom feature too
TIMAI2
July 13, 2024, 3:23pm
8
Interesting, in your provided aia you set the quality to 150
If I could suggest, when you make a new extension and before releasing:
Finish it
Test it in companion and compiled
Test it with several android versions before and after Android 10
Get others to test your extension in their environments
For documentation:
Submission of new extensions
The community has adopted a new approach to the posting of extensions on the community, and all new extensions are now put through an evaluation process.
We do recognise that you have put a lot of time and effort into creating your extension.
We want you to be able to present your extension in the best condition possible, as bug free as possible, with the best documentation, and the Power Users may provide you with several recommendations of how to improve your ex…
1 Like
Ok you can unlist this extension for now , i will post later with fixes.
Almost ready
If there are anyone free please test and give feedbacks on android 8 ,9, 10 , 12 ,13 before final release DamiPDF.apk - Google Drive
Anke
July 13, 2024, 6:22pm
12
We would like to test it with Companion as well.
1 Like
Looks like i cant add zoom directly ,instead i will return image of the page and zoom it in another view
Looks like now it works from android 5 to 14 with companion and real apk ,can anyone try
com.xtiger.damipdf.aix (23.6 KB)
DamiPDF.aia (161.8 KB)
TIMAI2
July 14, 2024, 11:57am
18
PDF from URL/Assets, quality of 50:
PDF from URL/Assets. quality of 100:
[EDIT] I see now that one needs to set the size of the arrangement, e.g. fill parent both ways..
PDF from URL, quality 100 in Landscape arrangement set to Fill Parent both ways:
No zoom available/operational, pdf image size does not change when rotated to landscape, huge gap/space between pages, GoToPage and CurrentPage property seems to work OK.
Doesn't work with Vertical Arrangement as stated in your first post:
Argument #2 (com.google.appinventor.components.runtime.Verti...) to 'com.xtiger.damipdf.DamiPDF.ClearPDF(com.google.appinventor.components.runtime.HorizontalArrangement)' has wrong type (com.google.appinventor.components.runtime.VerticalArrangement) (expected: com.google.appinventor.components.runtime.HorizontalArrangement)
If it is advisable to always include the ClearPDF block before loading a different PDF or from a different location, suggest you include this step in the LoadPDFFrom...
block ? (What happens if it is not used ?)
Tested companion 2.71u, Android 13.
1 Like
If clear pdf not included it will overlap with previous loaded pdf,
Quality can go from 1 to 1000 (suggested for low end 100 high end 400)
In first post i said orientation,
I will add vertical arrangement in next release ,
I tried to add pdfium library which makes 15mb aix size which cant even uploaded in app inventor ,i am searching for other methods
Maybe i will release next week
I am also planning to add caching system with fifo method for replacement