Krita does not open pdf's (distribution issue)

I have:

Krita>File>Open>path/file.pdf:

“Could not open file Reason: Krita does not support this file format.”

At Krita’s forum one is telling me 1) use app image 2) “Your arch build of Krita likely doesn’t open pdf because poppler wasn’t available.” And yes, I tried the image, it works, so it’s a distribution. I actually don’t mind using the app image, but I thought I’d report it in case someone wants to follow up.

$ sudo pacman -S poppler
warning: poppler-22.11.0-1 is up to date -- reinstalling
$ uname -r 6.0.10-arch2-1
$ krita --version

(process:419204): Gtk-WARNING **: 02:55:32.718: Locale not supported by C library.
	Using the fallback 'C' locale.
krita 5.1.3

pdf test file

Screenshot_2022-12-13_05-00-55

Perhaps you could try installing poppler-qt5 and see if that would make any difference.

$ pacman -Si krita
Repository : extra
Name : krita
Version : 5.1.3-1
Description : Edit and paint images
Architecture : x86_64
URL : https://krita.org
Licenses : GPL3
Groups : None
Provides : None
Depends On : kitemviews kitemmodels ki18n kcompletion kguiaddons kcrash qt5-svg qt5-multimedia quazip gsl libraw exiv2 openexr fftw openjpeg2 opencolorio libwebp hicolor-icon-theme
Optional Deps : poppler-qt5: PDF filter
ffmpeg: to save animations
python-pyqt5: for the Python plugins
libheif: HEIF filter
kseexpr: SeExpr generator layer
kimageformats: PSD support
libmypaint: support for MyPaint brushes
krita-plugin-gmic: GMic plugin
libjxl: JPEG-XL filter
Conflicts With : None
Replaces : None
Download Size : 63.71 MiB
Installed Size : 157.88 MiB
Packager : Antonio Rojas arojas@archlinux.org
Build Date : Sun 06 Nov 2022 06:57:52 PM CET
Validated By : MD5 Sum SHA-256 Sum Signature

I tried, but…

$ sudo pacman -S poppler-qt5

resolving dependencies...
looking for conflicting packages...

Package (1)        New Version  Net Change  Download Size

extra/poppler-qt5  22.11.0-1      0.75 MiB       0.22 MiB

Total Download Size:   0.22 MiB
Total Installed Size:  0.75 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from ftp.sudhip.com : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirrors.xtom.ee : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirror2.evolution-host.com : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from archlinux.mirror.pcextreme.nl : The requested URL returned error: 502
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirrors.lug.mtu.edu : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirrors.nxtgen.com : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirror2.sandyriver.net : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirror.sg.gs : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from in-mirror.garudalinux.org : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from mirror.chaoticum.net : The requested URL returned error: 404
error: failed retrieving file 'poppler-qt5-22.11.0-1-x86_64.pkg.tar.zst' from syd.mirror.rackspace.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

Try the following to update your system first:

sudo pacman -Syu

or

sudo pacman -Syyu

If this is not working, launch the welcome app and refresh your mirrorlist.

After refreshing your mirrorlist update your system:

sudo pacman -Syyu

Then install poppler-qt5:

sudo pacman -S poppler-qt5

HTH

Yes, pdfs open as expected after this:

$ pacman -Sy archlinux-keyring && pacman -Su

Then reboot and:

$ sudo pacman -S poppler-qt5
$ krita

I just installed krita on my kde system. I had no issue opening pdf.

Edit: Probably because i have okular installed?

Not sure but the issue might have been a partially upgraded situation or outdated system in OP’s case? Also not having the right package installed?

Okular has poppler-qt5 as dependency so that’s why you didn’t have the issue.

That’s what i meant! :wink:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.