mignaway / EpubReader

Epub / Book Reader Application built with ElectronJS
https://mignaway.github.io/epub-reader-website/
MIT License
102 stars 3 forks source link

PDF Could not convert (for flatpak/flathub release) #18

Open fastrizwaan opened 10 months ago

fastrizwaan commented 10 months ago

hi @mignaway

The flathub version runs but it can't open pdf files, what needs to be done, do I need to add any package for pdf conversion into flatpak? here's the output without session-bus permission and after that you can see the full permission output.

rizvan@fedora:~$ flatpak run io.github.mignaway.EpubReader 
Gtk-Message: 09:36:17.058: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:36:17.060: Failed to load module "canberra-gtk-module"
[3:0107/093617.093546:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:0107/093617.093671:ERROR:bus.cc(397)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[42:0107/093617.238655:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[42:0107/093621.344322:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[42:0107/093622.790961:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[42:0107/093624.422911:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
^C

with full access to system and session bus (we should provide session-bus name for epubreader --tak-name=something.something (what are you using the session bus name)?)

rizvan@fedora:~$ flatpak run --socket=session-bus --socket=system-bus --device=all io.github.mignaway.EpubReader 
Gtk-Message: 09:38:10.918: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:38:10.922: Failed to load module "canberra-gtk-module"
[42:0107/093811.120706:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[42:0107/093812.344313:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[42:0107/093812.346181:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[42:0107/093815.243611:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
rizvan@fedora:~$ 
jayshozie commented 1 month ago

I have the exact issue. I'm trying to open a PDF, and the app throws out a "Couldn't convert file" error.

lloppy commented 1 month ago

I have the exact issue. I'm trying to open a PDF, and the app throws out a "Couldn't convert file" error.

have you solved the problem?

jayshozie commented 1 month ago

Sadly, no. Most of the books I'm reading are PDFs, so I switched apps.

mignaway commented 1 month ago

Hey, please note that the app converts PDFs to EPUB format, so while you can't read PDFs directly, it extracts the content and transforms it into an EPUB file. In the app console you encounter an error asking you to download Calibre, simply follow this link https://calibre-ebook.com/, installing Calibre should resolve this issue.

Additionally, there's another small bug indicating that a temp folder the program uses is missing, you'll need to create it manually. Navigate to this directory: C:\Users{your name}\AppData\Roaming\EpubReader\localStorage\, and create a folder named "tempConvertedBooks", this should fix the conversion process.

Sorry about this. Over the next few months, if everything goes smoothly and there are no delays, I'll be releasing a new ebook reader that's going to be way better in terms of features, design, and usability. This current reader works fine actually, so that's why I’m not gonna fix these small bugs right now since I’m focused on the new app. I’ll probably post an update in the repo when it’s ready :D

jayshozie commented 1 month ago

Thx for the info. I'll try the fix. I really like the style of this app, and I consider using it for EPUB files. However, most of the PDFs I'm reading needs to be rendered as a PDF because of the images they contain. Like I said, I still consider this app. I will check it out in a few months again.