rnote icon indicating copy to clipboard operation
rnote copied to clipboard

Imported PDF doesn't show up

Open Krusty27 opened this issue 3 years ago • 7 comments

Describe the bug When I try to import a PDF it doesn't show up

To Reproduce Steps to reproduce the behavior:

  1. Go to three dot menu
  2. Import file
  3. Choose PDF

Expected behavior The imported PDF should show up on the canva

** Console Output ** Run with flatpak run com.github.flxzt.rnote and post the output here I'm not using the flatpak version but I downloaded it from Arch Community Repo

Desktop (please complete the following information):

  • OS: Arch Linux
  • Version 5.17.1-arch1-1
  • Installation source Archlinux Community Repo
  • Desktop Environment Gnome 41.5

Additional context Could it be that the PDF is too large? It's 18mb and 103 pages

Krusty27 avatar Apr 02 '22 17:04 Krusty27

Update: after waiting for a long time (10 minutes) while writing other things in the same sheet where I tried to import the PDF, it finally imported it (but with cut images)

Krusty27 avatar Apr 03 '22 15:04 Krusty27

Ok I made some other testing: if I zoom in, PDF pages zoom in and are complete. If I zoom out they become more and more cut. So the overall system works, it's just a too slow. Maybe there could be an option that makes you import just some choosen pages from the PDF? Or the app could import n pages a time and it loads the next ones if the user scrolls down

Krusty27 avatar Apr 03 '22 15:04 Krusty27

Could you try out ~~this dev build~~ the new release ? It should load PDFs faster. There should still be a import dialog to select pages for import, I agree.

flxzt avatar Apr 14 '22 20:04 flxzt

Hi! Sorry for the late answer. So I tried different things:

  • with balanced mode, it took just one minute to load it
  • with performance mode it took less then one minute (I'd say 50s)

So overall that's much better, thanks! Also, the new loading bar is very useful to have a visual effect to know that something is actually going on. If you want I'll open a separate issue for the pages to import chooser.

Krusty27 avatar May 06 '22 11:05 Krusty27

50 secs still sounds pretty painful to be honest.

Yes, that would be a new feature request

flxzt avatar May 06 '22 11:05 flxzt

Just tried importing a pdf using version 5.3.1 from flathub with default settings (image type: vector, import width: 50%), when rotating the pdf or zooming it had the same issues as described before e.g. not loading or only partially loading, when using image type: bitmap it seems to work flawlessly. So you might have a look at the vectorization I guess, I instantly thought of some missing refresh call after the rotation but I don't know anything about the code base.

offtopic: Looking forward for v0.6. Rnote is definitely a bliss to use! Haven't found any other open source drawing software that fits my needs that good while working like a charm.

pascalbehmenburg avatar Jun 15 '22 10:06 pascalbehmenburg

I think that is a different issue than slow import speed. Could you open a new issue for it, with some screenshots? That would really help!

flxzt avatar Jun 16 '22 12:06 flxzt

Thank you!

Krusty27 avatar Jan 14 '23 15:01 Krusty27

How fast is the import for you in the latest version?

flxzt avatar Jan 14 '23 15:01 flxzt