📚 [Free] ViewPDF - a simple pdf viewer for local files & ViewBigPDF

Good job. Would it make sense to call the CopyFromAssets CopyFromAssetsToAsd since that is where it is going?

4 Likes

Will add to list for updates. The tooltip does tell you though

image

4 Likes

Instead why not take an arrangement, create a new web view and display it?

1 Like

Then it would require an arrangement instead of a webviewer :wink:

4 Likes

Very good extension @TIMAI2

1 Like

1 Like

Update to v2.2

  • adds colour properties for html background and text
  • edit to copyfromAssets block title
  • temp file delete function added (under the hood...)
4 Likes

Doesn't seem to work with Kodular.

1 Like

Any of it, or just one of the functions ?

2 Likes

The web page at

file:///data/user/0/io.makeroid.companion/cache/display4036312430542112567.html

could not be loaded because

net:ERR_ACCESS_DENIED

1 Like

We believe it is a file path issue, peculiar to Kodular. Will have a look at it.

2 Likes

@Anke

Did you try a compiled app?

2 Likes

Same result.

1 Like

Good job @TIMAI2, great PDF reader!

2 Likes

updated to v2.3 to provide file access in Kodular

3 Likes

updated to version 2.4

new features:

  • added page count property
  • added page clicked returns page number to webviewstring
  • added scroll to page number from webviewstring
  • developer must set webviewstring = 1 when first displaying pdf
  • no requirement to reload pdf when changing scroll to page
2 Likes

Update:

Now included is an add on extension to allow selection of Assets when the app is compiled. The method used to do this is to write(copy) the asset file to a temporary file in the private directory of the app (there doesn't really appear to be any other way at the time of writing). The temporary file is overwritten when a new asset is loaded. You must ensure that your file naming follows the standard format, e.g. myfile.pdf

You can download the add on extension and see the usage/blocks in the first post.

ViewPdfAddOn extension

1 Like

Hi @TIMAI2 , hope you are having a good time, I wanted to ask that, what block fitts in the web viewer socket in this block if we want to open a specific PDF.
image
I would be highly grateful if you answer this question

Arnav Tiwari

check 1st post, there is sample blocks there.

2 Likes

One suggestion:
for the pathToPdf, please make it accept string like '//test.pdf' for from assets, and 'test.pdf' for from ASD, thus the user will no need to join string for full path manually.

1 Like