DamiPDF : Recycler PDF viewer

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

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.

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)

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

Interesting, in your provided aia you set the quality to 150

image

If I could suggest, when you make a new extension and before releasing:

  1. Finish it
  2. Test it in companion and compiled
  3. Test it with several android versions before and after Android 10
  4. Get others to test your extension in their environments

For documentation:

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

We would like to test it with Companion as well.

1 Like

here is it
com.xtiger.damipdf.aix (23.2 KB)

  • Rotate the screen 90°
  • Try to zoom the document (pdf)

DamiPDF_2.aia (161.5 KB)

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)

Hmm...

  • 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)

image

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