Unable to search words in Okular

  Kernel: 5.18.7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.18-x86_64
    root=UUID=8d20ef1e-bc74-4bed-9905-3f71ef1058fa rw quiet apparmor=1
    security=apparmor resume=UUID=2a94a30f-9374-48f8-bed7-7499d32a5ee8
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
  Type: Desktop Mobo: ASRock model: A320M-HDV R4.0
    serial: <superuser required> UEFI: American Megatrends v: P4.00
    date: 07/16/2020
  Message: No system battery data found. Is one present?
  RAM: total: 3.27 GiB used: 2.7 GiB (82.7%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
  Info: model: AMD Ryzen 3 PRO 3200G with Radeon Vega Graphics bits: 64
    type: MCP arch: Zen/Zen+ note: check gen: 1 built: 2019 process: GF 12nm
    family: 0x17 (23) model-id: 0x18 (24) stepping: 1 microcode: 0x8108109
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 384 KiB
    desc: d-4x32 KiB; i-4x64 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
    desc: 1x4 MiB
  Speed (MHz): avg: 1326 high: 1423 min/max: 1400/3600 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1423 2: 1257
    3: 1282 4: 1344 bogomips: 28756
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid
    cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid
    fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm
    mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc
    nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse
    pse36 rapl rdrand rdseed rdtscp rep_good sep sev sev_es sha_ni skinit smap
    smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock
    syscall tce topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme
    vmmcall wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
    mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel arch: GCN 5 process: GF 14nm built: 2017-20 pcie:
    gen: 3 speed: 8 GT/s lanes: 16 ports: active: DP-1
    empty: HDMI-A-1,HDMI-A-2,HDMI-A-3 bus-ID: 07:00.0 chip-ID: 1002:15d8
    class-ID: 0300
  Device-2: Microdia Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-9:4 chip-ID: 0c45:64ab class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
    alternate: fbdev,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
    s-diag: 414mm (16.31")
  Monitor-1: DP-1 mapped: DisplayPort-0 model: GTW KX1563 serial: <filter>
    built: 2013 res: 1366x768 hz: 60 dpi: 101 gamma: 1.2
    size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes:
    max: 1366x768 min: 640x480
  OpenGL: renderer: AMD Radeon Vega 8 Graphics (raven LLVM 13.0.1 DRM 3.46
    v: 4.6 Mesa 22.1.2 direct render: Yes
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 07:00.1
    chip-ID: 1002:15de class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: ASRock driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 07:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.7-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.52 running: yes
  Device-1: Realtek RTL8812AE 802.11ac PCIe Wireless Network Adapter
    driver: rtl8821ae v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000
    bus-ID: 04:00.0 chip-ID: 10ec:8812 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASRock driver: r8168 v: 8.049.02-NAPI modules: r8169 pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 05:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp5s0 state: down mac: <filter>
  WAN IP: <filter>
  Message: No bluetooth data found.
  Message: No logical block device data found.
  Message: No RAID data found.
  Local Storage: total: 1.36 TiB used: 210.02 GiB (15.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Crucial model: CT500P2SSD8
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: P2CR033 temp: 33.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM049-2GH172
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: RPM2 scheme: GPT
  Message: No optical or floppy data found.
  ID-1: / raw-size: 461.27 GiB size: 452.96 GiB (98.20%)
    used: 16.23 GiB (3.6%) fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 8d20ef1e-bc74-4bed-9905-3f71ef1058fa
  ID-2: /boot/efi raw-size: 501 MiB size: 500 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p3 maj-min: 259:3
    label: NO_LABEL uuid: 206D-952F
  ID-3: /home raw-size: 931.51 GiB size: 915.82 GiB (98.31%)
    used: 192.71 GiB (21.0%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: e066edab-8f1d-404f-8de9-da3dddbb4222
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4 GiB used: 1.09 GiB (27.1%)
    priority: -2 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: 2a94a30f-9374-48f8-bed7-7499d32a5ee8
  Message: No unmounted partitions found.
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 9 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-4:2 info: Primax Dell N889 Optical Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s
    power: 98mA chip-ID: 0461:4d81 class-ID: 0301
  Device-2: 1-5:3 info: SiGma Micro Keyboard TRACER Gamma Ivory
    type: Keyboard,HID driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 1.5 Mb/s power: 98mA chip-ID: 1c4f:0002 class-ID: 0300
  Device-3: 1-9:4 info: Microdia Integrated Camera type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:64ab class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 3 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 4-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-5: 5-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 6-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 34.0 C
  Fan Speeds (RPM): N/A
  Processes: 228 Uptime: 3h 6m wakeups: 0 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.0 clang: 13.0.1
  Packages: pacman: 1341 lib: 345 flatpak: 0 Shell: Zsh v: 5.9 default: Bash
  v: 5.1.16 running-in: yakuake inxi: 3.3.19

Unable to search exact words( not case sensitive ) in pdf in Okular in both X11 as well as Wayland session. Please help

Works fine on my end. You sure the PDF is text and not images?

some pdf’s are not searchable - like a photograph
depends on how the pdf was created, with what program and from what source

… example:
you can make a screenshot
and export that .png or .jpeg as a .pdf
it’ll not contain anything that lets you search through what still appears to be text …

There is software which will (try to) scan the image - and extract the text and put it in a .pdf again.
That might work …


Well that maybe true but when I write in Word document and export it as pdf and again try to search the word via Okular - it is unable to do so

I tried with a scanned pdf as well as a pdf created from a Word document - In both cases I cannot search the particular Word

CTRL+F does not search words for you?

CTRL+F launches the search bar but when I put in my required word it is unable to do so and results in a red highlighted area within the search bar

That means the word was not found. This approach works for me with a pdf based on text.

Let me show you my screenshot - from the pdf I made from a word document - notice spelling is matched but Okular cannot highlight it in the pdf

… specificity :wink:
word document?
which program?
settings to produce/create the document?
from the name it looks like it is a print preview

If you save a word document (with whatever program you use)
as a pdf (or export it as such)
can you usually search through the content?

… you should be able to

OnlyOfficeDesktopEditors - default supplied from Manjaro KDE Stable.
It is printed as pdf

print - to a file
(which is usually what is sent to the printer)
might be different than
save as
export as

and then use that resulting file

as in:
the printer gets sent a picture of what to print
pixel by pixel
not the original pdf

It’s speculation on my part - but possible.

Save as pdf.
Can you search through the resulting file?

I do not know or use that program, btw.

1 Like

Now that is weird. Save as pdf works and word is highlighted on searching it.

But why on print as pdf doesn’t work for searching ?

… of course :wink:
a (saved) print preview is not the same as the content exported and saved as a pdf

it just looks the same

the printer doesn’t care whats in the document - it needs pixel values and where to put them …

I don’t understand. Can something be done about it so that search functionality is also enabled on printed pdf’s ?

I just added another sentence.

if that does not help - I can’t think of a way to make it any more clear.

a print preview is simply a different thing than the original document (pdf or other) which it is created from

So no way to work around it, I guess

work around what?

save as pdf
done - it’s searchable

print to file
it’s also labelled as pdf - but not searchable

no work around needed
just save as pdf and use that

that is not a work around - that is proper procedure :wink:

1 Like

Many many thanks @Nachlese . This was something new for me :slightly_smiling_face:

anytime :wink:

1 Like