saber-notes / saber

The cross-platform open-source app built for handwriting
https://saber.adil.hanney.org
GNU General Public License v3.0
2.15k stars 138 forks source link

Failed to open pdf fron other apps. #1176

Open night-nl opened 7 months ago

night-nl commented 7 months ago

Before submitting an issue, please check the following

Describe the bug

When I tried to open a pdf from Dingtalk, Saber tells me "no routes for location". I think that since Saber is designed to open pdf, it shouldn't work like this. My device is Xiaomi Pad 5pro, running Hyper OS based on android 14. Screenshot_2024-03-17-16-21-25-825_com adilhanney saber Screenshot_2024-03-17-16-21-22-091_android

To reproduce

Select a pdf file, and open it with Saber, and then it failed as mentioned above.

Expected behavior

I hope that Saber can open pdf files from other apps, just like the other pdf reader.

Saber version

v0.21.2 F-Droid

Device

Anything else?

No response

QubaB commented 7 months ago

Looking on the error message, you are trying to open pdf from some alibaba cloud.

If you dowload pdf from cloud to your device and try to import file from device. Does it work?

night-nl commented 7 months ago

Looking on the error message, you are trying to open pdf from some alibaba cloud.

If you dowload pdf from cloud to your device and try to import file from device. Does it work?

It doesn't work, too. Actually, this file has been downloaded, and another pdf reader (Librera FD)could work properly.

QubaB commented 7 months ago

Is there error message during import of localy saved pdf?

If not, can you provide pdf to test it in developer version?

night-nl commented 7 months ago

Is there error message during import of localy saved pdf?

If not, can you provide pdf to test it in developer version?

Look at those pictures. Screenshot_2024-03-19-15-44-26-233_com.android.fileexplorer.jpg

Screenshot_2024-03-19-15-43-51-533_android.jpg

Screenshot_2024-03-19-15-43-56-791_com.adilhanney.saber.jpg

Screenshot_2024-03-19-15-44-22-566_com.adilhanney.saber.jpg

Screenshot_2024-03-19-15-43-38-214_com.android.fileexplorer.jpg

I tried open the file via file manager.

QubaB commented 7 months ago

You are opening pdf from file manager? Or you are importing pdf directly from Saber?

I do not know if opening pdf in Saber is implemented. Try to import pdf from Saber.

night-nl commented 7 months ago

You are opening pdf from file manager? Or you are importing pdf directly from Saber?

I do not know if opening pdf in Saber is implemented. Try to import pdf from Saber.

Open pdf from saber is ok. But is Saber desgined not to open pdf from other places? Or it's just a bug. As you see, Saber is registered system-wide to open pdf, but it didn't work as expected. If Saber can open pdf fron file manager, it will be a great convenience.

QubaB commented 7 months ago

It is surprise for me, because I do not see Saber as system wide pdf opener. It is question to @adil192 if saber is able to open pdf directly. I do not think so.