šŸ“š [Free] ViewPDF - a simple pdf viewer for local files & ViewBigPDF

Iā€™m viewing pdf via webviewer and extension ViewPdf. PDF looks blurry (via android app notes looks schrap). I use Samsung Tab A 8.0ā€, android version 11. See code. I tried project size setting fixed and responsive.

How good is the original pdf. The old adage of rubbish in/rubbish out may apply.

Thanks for reply. The pdf looks very good in Samsung notes. Or is your remark that I should use other pdf ? I checked with different pdf files.

Well if you want good quality and features then you can't rely on webviewer.
Go for paid Pdf Viewer extensions.

Is via start.activity and the Samsung notes app possible ? Where to store the files then ?

@TIMAI2 please help me. when the user selects any option it has to view pdf according to its content. every thing s going good but but when i use companion to run it then it shows the path of pdf and shows error that "File may be in PDF or curruped".
This is the code i used and MIT APP INVENTER.

Remove the join in the ViewPDF1.CopyFromAssetsToASD argument socket and replace it with just the filename of the PDF.
Your current code is trying to fetch the PDF from assets/assets/; the method already assumes that the PDF is in the assets folder.

1 Like

now this showing run time error and want to repeat this is process nearly 24 times with different PDFs please help and this PDF is already in assets and i uploaded it and spelling also right
help2
and this is the code as you said

Did you set the webviewstring = 1 ?

Are you testing with companion app or with a compiled app ?

This

image

only works with a compiled app

What is your device and android version ?

app is not compiling and my android version is 13 i didn't but when i added webviwerstring to 1 still same runtime error

If using companion, try just loading it directly from assets:

image

Update to ViewPdf v2.5 and ViewBigPdfv1.1

  • added quality setter
  • now includes function from separate pdfaddon
  • afterDisplay event

See first post for more details and download

2 Likes

Can we change the background color to white? For me, if I don't change the background color it stays a light green and if I change it to white it stays the same (light green) but the other colors all work well.

As you can see, the image is white, but the background, which is set to white, looks like this.

I'm working on Android 9, I don't know if that's the problem.

Not quite sure what is happening here, but you are correct, setting to "white" does not work.

Two quick workarounds:

image

which looks the same as white to me.

or

image

which gives white

In the meantime, I will have to have a look at the code and see why this is happening.

Okay, I'll test it. Thanks for the answer.

Hi @TIMAI2 i got a issue, i can't display my pdf.
pdf is in download files called "Play.pdf" i tried many options to make it work any ideas?

I always receive this error, i tried to change "assets/" to "download/" and other options like to set my own directory but then android give me error about no permission, any ideas? i would be thankfull.

ss

If the pdf is in your Download folder, then your path should be:
/storage/emulated/0/Download/Play.pdf

I was trying this before and again i got a message about no permission even when i build it and set in settings to allow storage access

image

A different error, probably showing that the file path is correct, but that the pdf is not "owned" by the app, thus you do not have access permission.

Does the file have to be in the Download directory ?

Could you download it using your app into the ASD (and then copy to Download) ? Or store it in the assets / media folder ?

Tell us more...

I would prefer to be download directory because when user is downloading pdf from e-mail it lands in download directory, is it possible to get files from download/ anyway?

For now i don't want to implement downloading from cloud a pdf file