OppiaMobile Community

Unable to open PDF via the App

Hi Alex, was unable to open a few PDFs via the App. Nevertheless, it opens up via Moodle. It’s on the Course 1: SL - WHAT IS COVID-19.

Click to access the file.

There are other PDFs that do not open up as well, but a few other PDFs do open.

Kindly let me know why this could be occurring. Grateful for any advise.

Hi @isaacwilliams ,

I’m not exactly sure what’s going on here… I would have said that maybe there’s not a pdf viewer app on the device, but since you can open some pdfs but not others, then that won’t be the issue.

You’ve given me the link directly to the pdf on Moodle, but please could you send on the link to the course homepage in Moodle (it’s not obvious to me which course this pdf is in) , so then I can export to my server and test from there,

Hi Alex, could you check Course bearing ID Number 55. Browse to Course 1 - Module 1 - Last lesson (Catalogue…). You’d find a URL that should open up a PDF.

Course Name is “COURSE 1: SL - WHAT IS COVID-19?”

I realize, none of the PDFs open up.

Any advise?

Hi @isaacwilliams

I just had a look at this, and think I know what the problem is…

Since the pdfs have been uploaded into Moodle, the app uses a reference to the Moodle internal link for this, which is why it doesn;t work in the app, since the link isn’t valid from the app.

There are 2 potential solutions to this (right now, without any tech dev)… and depends on whether users will need to get these pdfs whilst online or offline…

If you need these pdfs to be included in the app download (so available when the user is offline), then best to add a “Resource” activity type in Moodle, and upload the pdf to this. The downside to this approach is that you will need to add a separate “resource” activity for each pdf (rather than including all pdfs in a single page). So you might want a separate section/topic in Moodle for these additional pdfs.

If it’s OK that the user needs to be online to access these, then best to include the full link in the page. So instead of uploading the pdf to Moodle, put the link to the originating site, eg. as you did with the link to the WHO Q&A in this Moodle page activity: https://moodle.communityhealthacademy.org/mod/page/view.php?id=1983

Something to bear in mind here is that sometimes pdfs can get very long/large, and can be tricky to read on small screens (with horizontal and vertical scrolling), so best to keep to pdfs/docs that are a few pages.

Hope that all makes sense, but let me know if you’re still stuck anywhere with this.

Maybe it would be good for use to add a tech dev issue, so that files that are uploaded into pages are also exported so they are available offline for users.