kpdf does not show some fonts #48

Ανοιχτό
ανοίχτηκε 2 έτη πριν από Dr_Nikolaus_Klepp · 19 σχόλια

Basic information

kpdf-trinity 4:14.1.0~s218-0debian12.0.0+13~b1 running devuan daedalus and trinity-testing, amd64

Description

kpdf does not show some fonts of PDFs. It's quite random which PDFs are affected. Since an update about the beginning of september I knoticedthat I cannot read old and new invoices of my internet provider any more. Same goes with a great number of papers.

xpdf shows the pdfs without problem. PDFs printed with xpdf to a file are rendered kpdf correctly.

Also TDE file previewer for pdfs show the pdfs with all fonts readable, even those kpdf cannot render correctly.

Thread in mailing list:
https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydesktop.org/thread/CA2IMFZN75NBX3Y2R7LEPBQ7BMXYKNRW/

Steps to reproduce

Open the attached PDF in kpdf.

Screenshots

The attached PDF as shown by kpdf.

## Basic information kpdf-trinity 4:14.1.0~s218-0debian12.0.0+13~b1 running devuan daedalus and trinity-testing, amd64 ## Description kpdf does not show some fonts of PDFs. It's quite random which PDFs are affected. Since an update about the beginning of september I knoticedthat I cannot read old and new invoices of my internet provider any more. Same goes with a great number of papers. xpdf shows the pdfs without problem. PDFs printed with xpdf to a file are rendered kpdf correctly. Also TDE file previewer for pdfs show the pdfs with all fonts readable, even those kpdf cannot render correctly. Thread in mailing list: https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydesktop.org/thread/CA2IMFZN75NBX3Y2R7LEPBQ7BMXYKNRW/ ## Steps to reproduce Open the attached PDF in kpdf. ## Screenshots The attached PDF as shown by kpdf.
Συντάκτης

I found that after the las update yesterday virtually all older PDF are affected. In the screenshots you see the preview (which works fine) and kpdf (which does not work). Selecting invisible text works.

I found that after the las update yesterday virtually all older PDF are affected. In the screenshots you see the preview (which works fine) and kpdf (which does not work). Selecting invisible text works.
210 KiB
312 KiB
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

The patch proposed in bug 3204 fixes this issues for me.
Due to R14.1.0 being already soft frozen, we will add the patch for R14.1.1.

The patch proposed in [bug 3204](https://bugs.pearsoncomputing.net/show_bug.cgi?id=3204) fixes this issues for me. Due to R14.1.0 being already soft frozen, we will add the patch for R14.1.1.
MicheleC το πρόσθεσε στο R14.1.x ορόσημο 1 έτος πριν
Συντάκτης

Great relieve that it's soved :)

Isn't there a chance to include it in 14.1.0? When the release will be published there will definitly come in a lot of reports to this issue.

Great relieve that it's soved :) Isn't there a chance to include it in 14.1.0? When the release will be published there will definitly come in a lot of reports to this issue.
SlavekB αναφορά σε αυτό το ζήτημα από την παραπομπή 1 έτος πριν
SlavekB αναφορά σε αυτό το ζήτημα από την παραπομπή 1 έτος πριν
SlavekB τροποποίησε το ορόσημο από R14.1.x σε R14.1.0 release 1 έτος πριν
SlavekB σχολίασε 1 έτος πριν
Ιδιοκτήτης

The patch is clear and it fixes an important problem. Therefore, we decided to merge it into R14.1.0.

The patch is clear and it fixes an important problem. Therefore, we decided to merge it into R14.1.0.
SlavekB αυτό το ζήτημα έκλεισε 1 έτος πριν
Συντάκτης

Looks like the bug is back in 4.2.0~pre1-0debian12.0.0+0~a - Please test with the attached PDF.

Looks like the bug is back in 4.2.0~pre1-0debian12.0.0+0~a - Please test with the attached PDF.
Dr_Nikolaus_Klepp ξανά άνοιξε αυτό το ζήτημα 1 έτος πριν
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Nope, I have opened the document with both kpdf and qpdf and the text is the same.

Nope, I have opened the document with both kpdf and qpdf and the text is the same.
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

What does File -> Properties -> Font shows on your computer @Dr_Nikolaus_Klepp?

What does File -> Properties -> Font shows on your computer @Dr_Nikolaus_Klepp?
Συντάκτης

Hm ... when I run strace on kpdf, it gives a lot of "<unfinished ...> :

$ strace -f kpdf /tmp/muttern-tiso_4032.pdf 2>&1 | grep '[.]tt[fc]'
openat(AT_FDCWD, "/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf", O_RDONLY) = 13
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 15
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 15
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 15
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 15
[pid 14248] openat(AT_FDCWD, "/usr/share/fonts/truetype/noto/NotoSans-Bold.ttf", O_RDONLY) = 15
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY) = 15
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY <unfinished ...>
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY <unfinished ...>
[pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY <unfinished ...>

But xpdf works as it should:

$ strace -f xpdf /tmp/muttern-tiso_4032.pdf 2>&1 | grep '[.]tt[fc]'
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY|O_CLOEXEC) = 5
openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY) = 5

Could you try the same on your system?

Hm ... when I run strace on kpdf, it gives a lot of `"<unfinished ...>` : ``` $ strace -f kpdf /tmp/muttern-tiso_4032.pdf 2>&1 | grep '[.]tt[fc]' openat(AT_FDCWD, "/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf", O_RDONLY) = 13 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 15 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 15 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 15 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 15 [pid 14248] openat(AT_FDCWD, "/usr/share/fonts/truetype/noto/NotoSans-Bold.ttf", O_RDONLY) = 15 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY) = 15 [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY <unfinished ...> [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY <unfinished ...> [pid 14249] openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY <unfinished ...> ``` But xpdf works as it should: ``` $ strace -f xpdf /tmp/muttern-tiso_4032.pdf 2>&1 | grep '[.]tt[fc]' openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf", O_RDONLY) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Verdana.ttf", O_RDONLY) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial.ttf", O_RDONLY) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf", O_RDONLY) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf", O_RDONLY) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY|O_CLOEXEC) = 5 openat(AT_FDCWD, "/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf", O_RDONLY) = 5 ``` Could you try the same on your system?
Συντάκτης

File -> Properties -> Font

File -> Properties -> Font
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Yes, I see similar "unfinished" stuff. Also "File -> Properties -> Font" gives the same result. But this is what it looks like, so I don't see any missing text (left kpdf, right qpdf)

Yes, I see similar "unfinished" stuff. Also "File -> Properties -> Font" gives the same result. But this is what it looks like, so I don't see any missing text (left kpdf, right qpdf)
Συντάκτης

I see this, no text in most parts besides the embedded font.

I see this, no text in most parts besides the embedded font.
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

I have the same .deb package that you also have (4:14.2.0~pre1-0debian12.0.0+0~a) so it must be something to do with the fonts in my system and your system.
These are the ones that show up for that document.
Maybe try and see if using the same fonts the characters are all display

I have the same .deb package that you also have (4:14.2.0~pre1-0debian12.0.0+0~a) so it must be something to do with the fonts in my system and your system. These are the ones that show up for that document. Maybe try and see if using the same fonts the characters are all display
SlavekB σχολίασε 1 έτος πριν
Ιδιοκτήτης

I noticed that on my machine, like Michele, there are used fonts DejaVu and we both see the content without any problems. While the Noto fonts are used for you. Although I have packages with Noto fonts also installed, there it still prefers DejaVu fonts. You have DejaVu fonts installed?

I noticed that on my machine, like Michele, there are used fonts DejaVu and we both see the content without any problems. While the Noto fonts are used for you. Although I have packages with Noto fonts also installed, there it still prefers DejaVu fonts. You have DejaVu fonts installed?
Συντάκτης

Ok, I have removed all Noto.. fonts from my .local/share/fonts and also uninstalled all fonts...noto... After that I get the same fons table as MicheleC (kpdf2.png), but the text is still not visible :/

Ok, I have removed all Noto.. fonts from my .local/share/fonts and also uninstalled all fonts...noto... After that I get the same fons table as MicheleC (kpdf2.png), but the text is still not visible :/
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης
  1. Do all the font files in the dialog have extension .ttf like in my screenshot? Or some of them have different extension?
  2. Do all the font flies in the dialog exist in your system?
  3. can you post the output of pdffonts <path to the file.pdf>
1. Do all the font files in the dialog have extension .ttf like in my screenshot? Or some of them have different extension? 2. Do all the font flies in the dialog exist in your system? 3. can you post the output of `pdffonts <path to the file.pdf>`
Συντάκτης

@1: Yes, it's exactly the same as in your screenshot (when Noto is not installed, but DejaVu is)

@2: Yes, they do (otherwise the path has a replacement to another existing font file)

@3:

$ pdffonts muttern-tiso_4032.pdf
name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
Verdana-Bold                         TrueType          WinAnsi          no  no  no      11  0
Verdana                              TrueType          WinAnsi          no  no  no      12  0
ArialMT                              TrueType          WinAnsi          no  no  no      13  0
Arial-BoldMT                         TrueType          WinAnsi          no  no  no      22  0
TimesNewRomanPS-BoldMT               TrueType          WinAnsi          no  no  no      23  0
TimesNewRomanPSMT                    TrueType          WinAnsi          no  no  no      24  0
KPALIG+BookmanOldStyle-Bold          TrueType          WinAnsi          yes yes no      25  0
@1: Yes, it's exactly the same as in your screenshot (when Noto is not installed, but DejaVu is) @2: Yes, they do (otherwise the path has a replacement to another existing font file) @3: ``` $ pdffonts muttern-tiso_4032.pdf name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- Verdana-Bold TrueType WinAnsi no no no 11 0 Verdana TrueType WinAnsi no no no 12 0 ArialMT TrueType WinAnsi no no no 13 0 Arial-BoldMT TrueType WinAnsi no no no 22 0 TimesNewRomanPS-BoldMT TrueType WinAnsi no no no 23 0 TimesNewRomanPSMT TrueType WinAnsi no no no 24 0 KPALIG+BookmanOldStyle-Bold TrueType WinAnsi yes yes no 25 0 ```
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

Quite a mistery. The pdffonts output is exactly the same as here and everything else seems the same too, including the package version. Are you on Debian or Devuan, just for info? Does it do the same as a different user? and as root?
I guess the only way to troubleshoot this further is if you are able to build kpdf locally and then we try to trace down in the code why the text does not show up.

Quite a mistery. The pdffonts output is exactly the same as here and everything else seems the same too, including the package version. Are you on Debian or Devuan, just for info? Does it do the same as a different user? and as root? I guess the only way to troubleshoot this further is if you are able to build kpdf locally and then we try to trace down in the code why the text does not show up.
Συντάκτης

Devuan daedalus it is. The problem is the same for all users and for different intallations - including root. IMO the problems come from the unfinshed openat() calls - but that's just a wild guess.

Ok, what's the best way to proceed? Following https://www.debian.org/doc/manuals/maint-guide/build.en.html builds all packages including kpdf:

$ apt source kpdf-trinity
$ cd tdegraphics-trinity-14.2.0~pre1
$ dpkg-buildpackage -us -uc

I guess I'll have to dig into my not-so-favorite language then :)

Devuan daedalus it is. The problem is the same for all users and for different intallations - including root. IMO the problems come from the unfinshed openat() calls - but that's just a wild guess. Ok, what's the best way to proceed? Following https://www.debian.org/doc/manuals/maint-guide/build.en.html builds all packages including kpdf: $ apt source kpdf-trinity $ cd tdegraphics-trinity-14.2.0~pre1 $ dpkg-buildpackage -us -uc I guess I'll have to dig into my not-so-favorite language then :)
MicheleC σχολίασε 1 έτος πριν
Ιδιοκτήτης

IMO the problems come from the unfinshed openat() calls - but that's just a wild guess.

I have a lot of unfinished as well, so maybe that one is not the culprit of the problem, just guessing as well.

Ok, what's the best way to proceed?

I think the scripts at this link should work in devuan as well, as long as you set the config correctly. I recommend using prebuilt extra dependency and avoid git worktree (unless you are very familiar with git). Go through teh readme file and reach out if you run into problems.

https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging/src/branch/master/debian/_buildscripts/local

Devuan daedalus it is.

I am on Debian Bookworm. May be worth trying to do a quick Debian installation (VM is fine too) and see if you see the same issue with Debian or not. Slavek is also on Debian (although an older version than mine) and we both can't reproduce the issue.

> IMO the problems come from the unfinshed openat() calls - but that's just a wild guess. I have a lot of unfinished as well, so maybe that one is not the culprit of the problem, just guessing as well. > Ok, what's the best way to proceed? I think the scripts at this link should work in devuan as well, as long as you set the config correctly. I recommend using prebuilt extra dependency and avoid git worktree (unless you are very familiar with git). Go through teh readme file and reach out if you run into problems. https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging/src/branch/master/debian/_buildscripts/local > Devuan daedalus it is. I am on Debian Bookworm. May be worth trying to do a quick Debian installation (VM is fine too) and see if you see the same issue with Debian or not. Slavek is also on Debian (although an older version than mine) and we both can't reproduce the issue.
Συνδεθείτε για να συμμετάσχετε σε αυτή τη συνομιλία.
Χωρίς Ορόσημο
Χωρίς Αποδέκτη
3 Συμμετέχοντες
Ειδοποιήσεις
Ημερομηνία Παράδοσης

Δεν ορίστηκε ημερομηνία παράδοσης.

Εξαρτήσεις

Δεν έχουν οριστεί εξαρτήσεις.

Αναφορά: TDE/tdegraphics#48
Φόρτωση…
Δεν υπάρχει ακόμα περιεχόμενο.