-
Notifications
You must be signed in to change notification settings - Fork 43
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
Comments
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
|
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. |
Got another message from a student using Macbook Pro with Sonoma 14.6.1. that search doesn't work. |
Another feedback from two students:
|
As I said before: It won't work if SEB is using the classic WebView. I will assume that's the problem there until someone provides me with a test link I can try it out myself. I will close this issue otherwise. |
I don't know if classic WebView is used, how should I know? We use Moodle and therefore we don't have anything to do with the configuration. And all the students that reported, use the same configuration file and the newest version of the SEB. Since the Quiz with SEB is within our Moodle system I can't get you a direct access. You would have to log in our Moodle with your Switch EDU Id and then I could give you access. |
Also it's always a good idea to send log files (as mentioned on our support page and in the template when you create an issue). It's mentioned in there which WebView is used and I might be able to find out why the search doesn't work. But I'm happy to try to reproduce the issue (maybe next week, as i'm working on a release right now), you can send me more information like the link to your Moodle server to info at safeexambrowser dot org. |
I try to organize the logfiles. |
Ok, I logged into your Moodle. |
Der Zugang zum Moodle-Quiz ist: |
org.safeexambrowser.SafeExamBrowser 2025-01-29--09-43-13-387.log Hier ein log file eines MacBook Air mit Sonoma 14.4 Hier funktioniert die Suche. Ich warte noch auf Rückmeldungen von Studierenden, wo es nicht funktioniert. |
Did you see the disclaimer for text search in the browser (in the tooltip in Settings or in SEB for macOS Release Notes): Added text search for web pages: Use the search icon in the browser window toolbar or cmd-F. This feature is not available in the full screen mode main window. Search in PDFs works only in modern WebView and macOS >=11 (currently not in iOS). This would explain the cases where text search didn't work on Macs if those students were using an older macOS version than 11 Big Sur. As mentioned, on iOS/iPadOS text search in PDFs currently doesn't work at all. I will file a feature request to Apple, but if they fix it, it will only work in new iOS versions. Until then you would need to use a server-side PDF renderer like pdf.js. We at ETH use Polybox, which is based on Own Cloud. That uses pdf.js on macOS/iOS for rendering PDFs and then text search always works. Maybe there is a pdf.js plugin for Moodle? |
Yes, I think you got it. _Added text search for web pages: Use the search icon in the browser window toolbar or cmd-F. This feature is not available in the full screen mode main window. Search in PDFs works only in modern WebView and macOS >=11 (currently not in iOS). This would explain the cases where text search didn't work on Macs if those students were using an older macOS version than 11 Big Sur._We need to make our students aware of this in the next exam session. To put the files in an other place than in the Moodle course is not an option for us. So it seems, that we have to live with it. Thank you. |
I just did a quick search and it seems there was a pdf.js plugin for Moodle, which renders PDF files on the server (so search should work on all SEB platforms): https://moodle.org/plugins/mod_pdfjsfolder Also there is this PDF annotation plugin: https://moodle.org/plugins/mod_pdfannotator I'm interested to find a Moodle workaround for this question, but don't have time right now to look into it myself, but maybe someone can give us input on this. Also I will report the iOS PDF search issue to Apple and look into if SEB could add a better PDF view with search (but this would be more work and might take longer time). |
I installed the plugin. But it only works with very small files. My idea was to implement a Moodle filter with pdf.js. But now I have to find out where the problem is with bigger files. |
Hi there. We are doing some tests with SEB 3.4.1 for iOS and SEB Server.
Only workaround we see is to use a "server-side PDF viewer (like PDF.js). Is there any way or plans to fix search in PDF in SEB for iOS ? |
This is impossible. I never implemented a "entry" or "result" x from y. That must be something server-side. Send a screen shot (photo) please. SEB for iOS only supports searching in HTML. So you can click on the search feature, but you will only get results if they are located in the HTML part of a web page. The search feature highlights all results (in yellow) and the currently selected one in green. You can jump to the next or previous result(s), but SEB never displays the number of results. Apple has to support search in PDF files in WKWebView (the embedded browser engine). If they do, it will work in SEB for iOS. There might be an alternative way to implement it for me using a separate PDF view to render PDFs, as that view seems to support search. But this will be an additional effort to implement and it's unlikely that it will be compatible with all websites which embed PDF files. I will look into it when time permits (but we have a very long backlog of very important features). |
I wrote a simple filter as a Moodle plugin that changes the url in a pdf link. Then this link opens the pdf file with the pdfjs viewer. I think that will do for us. |
Oh, it looks that's even worse. Now I have students that tell me that the pdf is not showed in the pdfjs viewer. What could be the reason for this new problem? |
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.
The text was updated successfully, but these errors were encountered: