Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
160 views
LaTex editor Kile does not work on Plasma 6
After upgrade to Plasma 6 Kile does not open as it does not find the Okular library anymore. The problem is that Kile has not been updated to use Plasma 6 yet and it still requires a bunch of Plasma 5 libraries. My operating system is KDE Neon that after a recent upgrade uses Plasma 6. I would like...
After upgrade to Plasma 6 Kile does not open as it does not find the Okular library anymore. The problem is that Kile has not been updated to use Plasma 6 yet and it still requires a bunch of Plasma 5 libraries. My operating system is KDE Neon that after a recent upgrade uses Plasma 6. I would like to continue using this system. What can I do to run Kile on KDE Neon with Plasma 6?
user72829 (101 rep)
Apr 22, 2024, 03:29 PM • Last activity: Jun 19, 2024, 06:37 PM
2 votes
1 answers
1613 views
Bad rendering of graphics in Okular at higher zoom levels
Once you have inspected the screenshots below, you will see that Okular is significantly worse at rendering my two test files than many other well-known viewers. This is unfortunate, because in Kubuntu, Okular is the natural default viewer. My questions are as follows 1. Is there anything I can do—e...
Once you have inspected the screenshots below, you will see that Okular is significantly worse at rendering my two test files than many other well-known viewers. This is unfortunate, because in Kubuntu, Okular is the natural default viewer. My questions are as follows 1. Is there anything I can do—e.g. downloading and installing some patches or the like—to improve the rendering in Okular? (The 'Enable Graphics Antialias' and 'Enable Text Antialias' are both already enabled in my Okular.) 2. Why is Okular so much worse at rendering these test files than the other viewers?


**The tests** All the images in this post, for all pdf viewers, were captured using the same size of the capturing region. In order to see what I am talking about, you may have to click on the images and view them in full resolution. **The first test file** The one-page pdf test file in question can be downloaded [here](https://drive.google.com/file/d/1QHnNzo8KnTshYtbulPfWyXH2N1XA-LJL/view?usp=sharing) . It was created using [xournalpp](https://github.com/xournalpp/xournalpp) . Below, I repeat the test with a pdf file created in [Inkscape](https://inkscape.org/) , with similar results. As I said, he 'Enable Graphics Antialias' and 'Enable Text Antialias' are both enabled in my Okular. At 75%, the rendering is mostly fine, although you can see that the left side of the gray square is thinner than the other three, which shouldn't be the case. But real problems start happening when we zoom in, below. enter image description here As you can see, some of the blue horizontal lines are rendered as significantly thicker than the others. enter image description here The problem (for this test file) does not affect any other viewers I've tried. Evince: enter image description here Foxit: enter image description here PDF-XChange Editor (through Wine): enter image description here Adobe Acrobat Reader DC (through Wine): enter image description here

**The second test file** I've tried a different test pdf file, produced in inkscape by copying and pasting the same horizontal line many times (the one-page pdf file in question can be downloaded [here](https://drive.google.com/file/d/1LF4s4M3okuF4FXcp0XWlKsYQhMGegW0Y/view?usp=sharing).) While Okular is still the worst offender, most of the other ones are less than perfect, too: if one plays with different zoom levels, eventually one will hit upon a level where the rendring is off. For this particular file, only with the PDF-XChange Editor have I been unable to find a zoom level where the rendering is off. Okular: enter image description here In order to see the imperfections in the rest of these, you really may need to click on the images and view them in full resolution (even if you didn't have to do that for the images above). You should be able to see that some of the lines are rendered thinner than the others. Evince: enter image description here Foxit: enter image description here Adobe Acrobat Reader DC: enter image description here As I said, I was unable to find any imperfections in PDF-XChange Editor's rendering of this file at any zoom level. But it is possible I haven't tried enough zoom levels. For what it's worth, though it presumably shouldn't matter, here is my system configuration:
Laptop model: Dell Latitude 7490.
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-48-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-8650U CPU @ 1.90GHz (Graphics: Intel UHD Graphics 620 integrated graphics processor)
Memory: 15.5 GiB of RAM Let me repeat my questions: 1. Is there anything I can do—e.g. downloading and installing some patches or the like—to improve the rendering in Okular? (The 'Enable Graphics Antialias' and 'Enable Text Antialias' are both already enabled in my Okular.) 2. Why is Okular so much worse at rendering these test files than the other viewers?
linguisticturn (171 rep)
Sep 28, 2020, 03:56 AM • Last activity: Feb 24, 2024, 05:53 PM
1 votes
0 answers
538 views
Are there any way to restore closed tabs in okular pdf viewer?
I am on an Arch Linux machine and okular is probably the best pdf viewer, except just one lacking feature which is restoring tabs when you reopen Okular. Now since there is no default option for doing it, and while I can always make a feature request, I was hoping for some easy out of the box soluti...
I am on an Arch Linux machine and okular is probably the best pdf viewer, except just one lacking feature which is restoring tabs when you reopen Okular. Now since there is no default option for doing it, and while I can always make a feature request, I was hoping for some easy out of the box solution, if there is any. I am using bspwm window manager. If there is some window manager route then probably the same can be done for zathura too. I think zathura doesn't have a restore tab option either since it doesn't have a tab option. I am using zathura tabs through [tabc](https://www.reddit.com/r/bspwm/comments/pfajrd/bsptab_tabs_in_bspwm_with_tabbed/) .
souraj ghosh (11 rep)
Dec 2, 2023, 02:19 PM • Last activity: Dec 3, 2023, 03:15 AM
19 votes
6 answers
21927 views
How do I delete a page from a PDF in Okular?
Didn't see an option in the menus or any documentation on what I imagine is something simple: I have a multi-page PDF and want to delete a specific page within Okular's GUI.
Didn't see an option in the menus or any documentation on what I imagine is something simple: I have a multi-page PDF and want to delete a specific page within Okular's GUI.
Wolf (1607 rep)
Aug 24, 2019, 08:39 PM • Last activity: Jun 14, 2023, 10:02 AM
0 votes
1 answers
536 views
How can I fix font issue with a PDF file?
I have a PDF file (this [Mazda owner's manual to be precise][1]) with font issues. Therefore I cannot search within. For instance, if you search for the word `electric`, Okular cannot find it (I've also tried xpdf to no avail). But if you copy the word `electric` from the file and paste it (Okular's...
I have a PDF file (this Mazda owner's manual to be precise ) with font issues. Therefore I cannot search within. For instance, if you search for the word electric, Okular cannot find it (I've also tried xpdf to no avail). But if you copy the word electric from the file and paste it (Okular's search bar for instance), it is shown as Äíá2 I can see that the file has some funky fonts which might be the cause of this issue: funky fonts” How can one fix this issue, so that I can search within this PDF file?
şaloma (541 rep)
May 20, 2023, 10:43 AM • Last activity: May 23, 2023, 08:48 PM
7 votes
2 answers
4779 views
How to create a self-signed certificate for Okular PDF
I am at a loss. I want to create a self-signed certificate to sign PDFs with Okular. I have not found any step-by-step directions that work. I tried creating and installing a certificate, but Okular did not recognize it. This was couple weeks ago, so I am hazy on the details. Background: I am aware...
I am at a loss. I want to create a self-signed certificate to sign PDFs with Okular. I have not found any step-by-step directions that work. I tried creating and installing a certificate, but Okular did not recognize it. This was couple weeks ago, so I am hazy on the details. Background: I am aware that a self-signed certificate does not really mean much. But at my university people on Windows routinely sign PDFs with Adobe with meaningless certificates, and I want to be able to do the same. So what matters here is not data security, but being able to do what the local bureaucrats accept.
gaussian (194 rep)
Nov 23, 2021, 06:34 PM • Last activity: Apr 24, 2023, 04:25 PM
4 votes
1 answers
1333 views
Okular: Transform tab into separate window
I usually want my PDFs to be opened in a single instance of Okular in separate tabs instead of having each PDF be opened in an independent Okular window. Therefore, I have enabled `Open new files in tabs` under Settings > Configure Okular > General. However, at some times I would rather have one par...
I usually want my PDFs to be opened in a single instance of Okular in separate tabs instead of having each PDF be opened in an independent Okular window. Therefore, I have enabled Open new files in tabs under Settings > Configure Okular > General. However, at some times I would rather have one particular tab to be its own window instead. Is there a way to convert a tab to its own window in Okular or open a PDF as a separate Okular instance, even though Open new files in tabs is activated?
Raven (813 rep)
Jun 15, 2022, 06:55 AM • Last activity: Apr 20, 2023, 04:46 PM
28 votes
4 answers
17464 views
How to restore Okular default (toolbar) settings
I've somehow managed to remove the toolbar and menu-bar from Okular. After I've found no way to reactivate them from "outside" – sice I can't click on Options anymore – I've tried to reinstall a clean version after removing it with `apt-get remove --purge okular`. However, it didn't work, the tool-...
I've somehow managed to remove the toolbar and menu-bar from Okular. After I've found no way to reactivate them from "outside" – sice I can't click on Options anymore – I've tried to reinstall a clean version after removing it with apt-get remove --purge okular. However, it didn't work, the tool- and menu-bars were still unavailable. I also looked for any configuration files in the home directory, without success. How should I proceed now in order to restore a clean Okular.
alex (1023 rep)
Nov 7, 2018, 07:06 PM • Last activity: Apr 9, 2023, 05:41 AM
0 votes
1 answers
59 views
Open tex file corresponding to an opened pdf file
Suppose I have opened a pdf file (say `/path/to/my/file.pdf` generated from LaTeX) in evince and want to open the corresponding LaTeX source file (`/path/to/my/file.tex`) in my emacs editor, I click on properties in evince and copy the path to the file to the clipboard, paste it to the minibuffer fr...
Suppose I have opened a pdf file (say /path/to/my/file.pdf generated from LaTeX) in evince and want to open the corresponding LaTeX source file (/path/to/my/file.tex) in my emacs editor, I click on properties in evince and copy the path to the file to the clipboard, paste it to the minibuffer from emacs find-file dialogue, manually change the file ending pdf to tex and open the file. Now I want to ask if there is a significantly faster way to do the same thing (maybe using another pdf-viewer), for example by configuring a keyboard shortcut (for example in the pdf-viewer itself or on wm level, in my case xmonad) or configuring a custom button in the pdf viewer. **Edit** I should add that the situation where I need it is, that I have 20 pdf documents opened at the same time. **Edit 2** Following @meuh suggestion I tried the following
cat get_tex_name.sh

#!/bin/sh
pid=xprop _NET_WM_PID
filename=ls -l /proc/'$pid'/fd/ | grep pdf |  sed 's/.*\(\/.*home.*\).pdf/\1tex/'
#emacsclient -c $filename
urxvt -hold -e sh -c "echo $filename"
and in my .xmonad file:
[...]
-- find corresponding tex file
    , ((modm,               xK_p     ), spawn "get_tex_name.sh")
Now if I have a focused evince instance and run the stript via Windows-p, it doesn't seem to get the filename (I think because xprop doesn't seem to return the pid of the focused window but only after clicking on it). So how to make it work?
student (18865 rep)
Aug 30, 2022, 08:47 AM • Last activity: Dec 1, 2022, 03:37 PM
1 votes
1 answers
555 views
How to force onboard stay on top of full screen Okular in LXDE?
Whenever Okular is full screen, the on screen keyboard Onboard goes behind it. How to pin onboard on top of full screen apps like Okular? I am using Debian LXDE.
Whenever Okular is full screen, the on screen keyboard Onboard goes behind it. How to pin onboard on top of full screen apps like Okular? I am using Debian LXDE.
Archisman Panigrahi (471 rep)
Sep 12, 2022, 04:18 AM • Last activity: Sep 17, 2022, 04:42 AM
7 votes
2 answers
4124 views
If I open the same file twice in Okular, switch to the existing window
I have always been confused why the file manager in Linux cannot stop applications from opening a single file twice at the same time? Specifically, I want to stop the PDF file reader Okular from opening the file `A.pdf` again when I have already opened it. I need to get an warning or just show me th...
I have always been confused why the file manager in Linux cannot stop applications from opening a single file twice at the same time? Specifically, I want to stop the PDF file reader Okular from opening the file A.pdf again when I have already opened it. I need to get an warning or just show me the opened copy of the file A.pdf. More generally, I would like this to happen with any application, not just Okular. I want to make the document management behavior in Linux the same as in Windows.
lovelyzlf (113 rep)
Nov 20, 2013, 04:22 AM • Last activity: May 23, 2022, 05:38 PM
0 votes
0 answers
402 views
PDF reader with thumbnail preview in the opening dialog
Situation: I download lots of PDFs which have unhelpful file names, such as arXiv papers (thanks, `1807.03042.pdf`). I'm often reading one of them in Okular and want to switch to another, say just to look up a reference, but the file open dialog lists only the names so it takes some effort to find t...
Situation: I download lots of PDFs which have unhelpful file names, such as arXiv papers (thanks, 1807.03042.pdf). I'm often reading one of them in Okular and want to switch to another, say just to look up a reference, but the file open dialog lists only the names so it takes some effort to find the right file. I'd love to have a preview pane there or just the first page thumbnail for each file. **Is there any PDF reader for Linux that has such a preview feature?** (I am on Arch if that changes things.) I'm aware that various file managers do that, but I was hoping to avoid running another app given that I just want to open the PDFs. I am happy to tinker with Okular's code as well (it uses Qt for the UI), but from my googling so far it doesn't seem like Qt has a magic "thumbnails on" switch, and would require actually writing the full previewer...
juod (131 rep)
May 18, 2022, 09:30 AM
3 votes
0 answers
260 views
open with ... causes one program to appear multiple times
I have a: fresh installation of Linux mint 20 cinnamon a week ago (luv it) and i have 3d ays ago installed okular for pdfs. *My Problem:* when i want to open a file, that is unknown to the system with `open with...` then i get the weird behavior of many okular's to choose from. Please see picture be...
I have a: fresh installation of Linux mint 20 cinnamon a week ago (luv it) and i have 3d ays ago installed okular for pdfs. *My Problem:* when i want to open a file, that is unknown to the system with open with... then i get the weird behavior of many okular's to choose from. Please see picture below: Many Okulars popping up I installed okular from the standard 'Software Manager' it is version 4:19.12.3-2ubuntu1. Found out it is a KDE Graphic Module. And I looked up odd behavior of open with... *My question*: How can I only show one okular in the choose Program tray of open with... ? *I want*: > Okular to appear only once in the "Open with..."- list. I think the okular options are getting more (kind of funny).
Thanks in advance
kamino (46 rep)
Nov 26, 2020, 10:29 AM • Last activity: May 3, 2022, 07:55 PM
5 votes
0 answers
670 views
Maximum number of clients reachedqt.qpa.xcb: could not connect to display :0
I am using Linux Mint 20.1 Cinnamon with kernel version 5.4.0-97-generic. I am facing recent issue when try to open okular from terminal or start-menu.. ``` Maximum number of clients reachedqt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" e...
I am using Linux Mint 20.1 Cinnamon with kernel version 5.4.0-97-generic. I am facing recent issue when try to open okular from terminal or start-menu..
Maximum number of clients reachedqt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)
There are many issues regarding this, but no particular solution were provided. Any help?
Pro (202 rep)
Feb 11, 2022, 09:25 AM
0 votes
1 answers
390 views
How does an app get or find toolbar icons?
On Manjaro Linux, I installed the Okular PDF viewer. On its toolbars are various icons (e.g. the "hand" icon used for scrolling with the mouse). My questions are: - Are these icons part of the Okular installation, or are they already present on my system? And if they are already present, how does Ok...
On Manjaro Linux, I installed the Okular PDF viewer. On its toolbars are various icons (e.g. the "hand" icon used for scrolling with the mouse). My questions are: - Are these icons part of the Okular installation, or are they already present on my system? And if they are already present, how does Okular know where to find them? - If I want to modify the appearance of these icons (for Okular only), what options do I have and where can I find them?
locx (3 rep)
Jan 23, 2022, 05:41 PM • Last activity: Jan 23, 2022, 11:51 PM
1 votes
1 answers
492 views
Disable "speak text" in Okular
I have personally no need for this feature and have never activated it except by error. [![enter image description here][1]][1] Sometimes I click that instead of copy and that unpleasing voice starts without any obvious way to make it stop. (I know I can add a button or shortcut, but I prefer to sav...
I have personally no need for this feature and have never activated it except by error. enter image description here Sometimes I click that instead of copy and that unpleasing voice starts without any obvious way to make it stop. (I know I can add a button or shortcut, but I prefer to save my memory as well as toolbar space for features that I need and use.) Under *Configure Okular - Accessibility* there is an option to select the voice but there is none to disable it. enter image description here Is it possible to de-activate this feature?
cipricus (1779 rep)
Nov 2, 2021, 09:03 AM • Last activity: Nov 2, 2021, 11:38 AM
6 votes
4 answers
2918 views
How do I open files with flatpak okular from command line?
I have an alias for okular installed with flatpak that is set up like this: `alias okular="org.kde.okular"` It opens up okular from the terminal. However if I try to open a file from the terminal with that alias e.g: `okular document.pdf` Then it doesn't work. What am I doing wrong? Is there a way t...
I have an alias for okular installed with flatpak that is set up like this: alias okular="org.kde.okular" It opens up okular from the terminal. However if I try to open a file from the terminal with that alias e.g: okular document.pdf Then it doesn't work. What am I doing wrong? Is there a way to open a file in the terminal using okular flatpak, rather than using the GUI? ## update: So I found this [link](https://www.mankier.com/1/flatpak-run) : >--file-forwarding If this option is specified, the remaining arguments are scanned, and all arguments that are enclosed between a pair of '@@' arguments are interpreted as file paths, exported in the document store, and passed to the command in the form of the resulting document path. Arguments between '@@u' and '@@' are considered uris, and any file: uris are exported. The exports are non-persistent and with read and write permissions for the application. Surely this doesn't mean the only way to open files in the terminal using okular flatpak is to do something like this: flatpak run okular.kde.org --file-forwarding @/home/user/documents/document.pdf@ I can't do this for every pdf I want to open. How can I add this as an alias so that I dont't need to type very long commands when opening different pdfs?
bit (1176 rep)
Jun 21, 2018, 01:49 PM • Last activity: Oct 8, 2021, 09:00 PM
3 votes
1 answers
244 views
Way to search pdf for annotations, edits and other review markings?
**Problem:** When I get a proof-read pdf back, sometimes there is only one mark every ten pages or so - and that mark can be so small (missed comma, etc.) that I might miss it when scanning through for markings and notes. **Question:** Is there a way to search for or jump through the list of in-line...
**Problem:** When I get a proof-read pdf back, sometimes there is only one mark every ten pages or so - and that mark can be so small (missed comma, etc.) that I might miss it when scanning through for markings and notes. **Question:** Is there a way to search for or jump through the list of in-line notes, edits, markings etc. that can be added to a pdf with the review tools (e.g. in okular and acrobat)? I use okular, but am fine using a different viewer (evince, etc.) for this purpose.
argentum2f (303 rep)
May 21, 2019, 07:58 PM • Last activity: Aug 5, 2021, 06:32 AM
1 votes
1 answers
663 views
Annotations not working in Okular (missing characters)
Yesterday, I upgraded to Fedora 34 from a F33 install. Today, while using Okular (KDE's PDF reader), I noticed that special characters (áéíóúç etc...) doesn't appear in annotations made within the PDF. For example, in the image below, I should be getting 'xxx á&#23...
Yesterday, I upgraded to Fedora 34 from a F33 install. Today, while using Okular (KDE's PDF reader), I noticed that special characters (áéíóúç etc...) doesn't appear in annotations made within the PDF. For example, in the image below, I should be getting 'xxx áéíóú xxx' rather than 'xxx xxx'. enter image description here What can be causing this problem? I don't recall it happening in F33.
Renan (17338 rep)
Apr 27, 2021, 03:47 PM • Last activity: Jun 3, 2021, 05:03 PM
0 votes
1 answers
170 views
Cosmetic Glitches in Okular in Fedora 33 KDE
Okular shows "No Text" in place of "File" and other menu items in the top menu bar. See screenshot. I've tried removing and reinstalling the program to no success. What's causing this and how do I fix it? [![enter image description here][1]][1] Further system info: [![enter image description here][2...
Okular shows "No Text" in place of "File" and other menu items in the top menu bar. See screenshot. I've tried removing and reinstalling the program to no success. What's causing this and how do I fix it? enter image description here Further system info: enter image description here
John Smith (1 rep)
May 7, 2021, 01:03 AM • Last activity: May 7, 2021, 04:14 AM
Showing page 1 of 20 total questions