saber icon indicating copy to clipboard operation
saber copied to clipboard

Can't import some PDFs.

Open bryanpaget opened this issue 1 year ago • 10 comments

Before submitting an issue, please check the following

  • [X] I have searched for similar issues (both open and closed) and cannot find a duplicate
  • [X] I agree to follow the Code of Conduct

Describe the bug

When I create a PDF with some apps (Markor for example), I can't import them to Saber. When I take the same PDF and import it into Samsung Notes it works, and I am able to export from Samsung Notes and then the PDF will open in Saber.

To reproduce

  1. Export from Markor.
  2. Import into Saber.
  3. Fail.

Samsung Notes Workaround.

  1. Import same PDF into Samsung Notes.
  2. Export from Samsung Notes as PDF.
  3. Import into Saber.
  4. Success.

Expected behavior

I expected to be able to import any PDF.

Saber version

v0.23.0 Fdroid 23000

Device

  • Device: Samsung tab s9
  • OS: android 14

Anything else?

Love the app.

Screenshot_20240519_100504

bryanpaget avatar May 19 '24 17:05 bryanpaget

The problem persists for version 0.23.1.

bryanpaget avatar May 21 '24 13:05 bryanpaget

Can you share small pdf which you cannot import as an example?

QubaB avatar May 21 '24 16:05 QubaB

Created by Android print (does not import to Saber Notes): Saber.PDF

Created by Samsung Notes (Saber Notes can import this file, it's the same file as above, simply imported to Samsung Notes and then exported): SaberPDF_240524_072120.pdf

bryanpaget avatar May 24 '24 14:05 bryanpaget

I could import Saber.PDF to 0.23.2 (Android) and 0.23.0 (Android emulator). Is it not a problem on your side?

QubaB avatar May 24 '24 16:05 QubaB

It does not work for me. I don't have access to Saber Notes 0.23.2 on Android. I can't import Saber.PDF on my Samsung phone or tablet (running 0.23.1) and I also tried on my Steam Deck running Saber Notes 0.23.2.

bryanpaget avatar May 24 '24 17:05 bryanpaget

I assume this could be related to my issue #1467 with a case sensitive import check?

schober-ch avatar May 19 '25 13:05 schober-ch

I cannot import any PDF - saber displays just white pages. Tested on 0.26.3 (and on backported 0.26.10).

docentYT avatar Oct 22 '25 19:10 docentYT

pdf cannot be imported as an image (even if it is shown in file picker). It can be imported only as background image or using "Import note" when creating new note.

QubaB avatar Oct 22 '25 20:10 QubaB

This is what I do. Importing via "Import note" or as a background doesn't work.

docentYT avatar Oct 22 '25 20:10 docentYT

On Android should be pdfs imported (at least pdfs with less than lets say 40 pages). Try to import few pages pdf.

If you are skilled try to use my pull request #1559 where I am suggesting complete rework of Saber asset cache. It should solve problems with pdfs (I am using it in my personal version of Saber already and I am able to display 800 pages pdf).

QubaB avatar Oct 23 '25 03:10 QubaB