Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search-function in a pdf document not working #472

Open
rschaufe opened this issue Jan 20, 2025 · 3 comments
Open

Search-function in a pdf document not working #472

rschaufe opened this issue Jan 20, 2025 · 3 comments

Comments

@rschaufe
Copy link

We use SEB in a Moodle-quiz. In a question there is a link to a pdf-file. When you click the link the pdf shows in a separate window.
There is a search function. Unfortunately it is not working.
Normaly (in Windows) the word is highlighted an you can search the next entry. But on the macOS, no word is highlighted, no possibility to go to the next word.

Used the newest version 3.4.1 on two different devices.

@danschlet
Copy link
Member

danschlet commented Jan 20, 2025

I just confirmed that the search in PDF files in SEB for macOS 3.4.1 works in general with this PDF: https://safeexambrowser.org/presentations/HowTo_SEB2.0.pdf

  • Are you sure that the PDF you're trying it with contains text and not scanned bitmaps?

  • Also you have to make sure that SEB can use the modern WebView. If the classic WebView is used (you should see the deprecation message on the top of new browser windows), search in PDFs as far as I know doesn't work. Make sure your SEB settings or SEB integration is updated to allow using the modern WebView (see also here Old WebView for In-Moodle-Configuration #468 and search).

  • In general the PDF viewer in the embedded WebKit engine isn't that great. For best results and full feature compatibility it's probably currently better to use server-side PDF rendering with pdf.js. Some web document viewers like in Polybox use server-side pdf.js on Macs/iOS and the built-in pdf.js in Chromium-based browsers.

  • On iOS WKWebView/SEB currently doesn't support search in PDFs at all. Use server-side PDF rendering as mentioned above.

@rschaufe
Copy link
Author

Yes, I just got the answer that on a MacBook Air with Sonoma 14 it works. But obviously those users who reported the problem use an iPad.
Since we use Moodle without content filtering. I guess can't decide what WebView is used.

@rschaufe
Copy link
Author

Got another message from a student using Macbook Pro with Sonoma 14.6.1. that search doesn't work.
Now I am confused. Because I am not a Mac user, I have no idea how you can configure such a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants