Bug 49066 - PDF файлы документации p10 не открываются как минимум в Atril и Okular
Summary: PDF файлы документации p10 не открываются как минимум в Atril и Okular
Status: NEW
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: docs.altlinux.org (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 major
Assignee: Artem Zolochevskiy
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 13:45 MSK by Nikolay Strelkov
Modified: 2024-01-14 13:45 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Strelkov 2024-01-14 13:45:33 MSK
Шаги для повторения:
1. Открыть сайт с документацией https://docs.altlinux.org/
2. Загрузить на компьютер любой pdf-файл с документацией по 10-й платформе (например, https://docs.altlinux.org/ru-RU/alt-education/10.2/pdf/alt-education/alt-education-10.2-alt-education-ru-RU.pdf )
3. Открыть папку с загруженным файлом и попробовать открыть файл с помощью Atril или Okular.

Ожидаемые результаты:
* все PDF-файлы с документацией по 10-й платформе открываются без проблем

Реальные результаты:
* открытие файлов alt-education-10.2-alt-education-ru-RU.pdf , alt-kworkstation-10.2-alt-kworkstation-ru-RU.pdf , alt-server-10.2-alt-server-ru-RU.pdf , alt-server-v-10.1-alt-server-v-ru-RU.pdf , alt-simply-10.2-alt-simply-ru-RU.pdf и alt-workstation-10.1-alt-workstation-ru-RU.pdf приводит к сообщениям
  - в Atril, Evince и Xreader
    Unable to open document
    PDF document is damaged

  - в Okular и qpdfview
    could not open ....pdf.

  - в LibreOffice Draw
    This PDF file is encrypted and can't be opened. 

  - в epdfview
    Error Loading File "....pdf"
    Failed to load document '....pdf'.
    The PDF file is damaged and can't be repaired.

* открываются 4 файла для Эльбруса - alt-education-e2k-10.2-alt-education-e2k-ru-RU.pdf , alt-simply-e2k-10.2-alt-simply-e2k-ru-RU.pdf , alt-workstation-e2k-10.1-alt-workstation-e2k-ru-RU.pdf и alt-server-e2k-10.2-alt-server-e2k-ru-RU.pdf .
* все файлы открываются без ошибок только в xpdf и mupdf-x11.

Дополнительная информация:

```
$ lsb_release -a
LSB Version:	n/a
Distributor ID:	ALT
Description:	Simply Linux 10.2  (Captain Finn)
Release:	10.2
Codename:	CaptainFinn

$ rpm -qa | grep -E "okular|poppler|atril|pdf"
libpoppler1-qt5-23.02.0-alt1.x86_64
atril-gtk-djvu-1.27.0-alt2.x86_64
libpoppler8-glib-23.02.0-alt1.x86_64
kde5-okular-common-23.08.4-alt1.noarch
xpdf-viewer-4.04-alt1.x86_64
qpdf-10.4.0-alt1.x86_64
kde5-okular-23.08.4-alt1.x86_64
xpdf-i18n-4.04-alt1.noarch
xpdf-utils-4.04-alt1.x86_64
atril-gtk-pixbuf-1.27.0-alt2.x86_64
poppler-data-0.4.11-alt1.noarch
qpdfview-0.5-alt1.x86_64
libokular5core11-23.08.4-alt1.x86_64
kde5-okular-core-23.08.4-alt1.x86_64
mupdf-1.18.0-alt1.x86_64
atril-gtk-xps-1.27.0-alt2.x86_64
libpoppler126-23.02.0-alt1.x86_64
cups-pdf-3.0.1-alt2.x86_64
xpdf-desktop-4.04-alt1.noarch
epdfview-0.1.8-alt7.x86_64
atril-gtk-1.27.0-alt2.x86_64
xpdf-common-4.04-alt1.noarch
xpdf-4.04-alt1.x86_64
poppler-23.02.0-alt1.x86_64
libqpdf28-10.4.0-alt1.x86_64
libpoppler0-cpp-23.02.0-alt1.x86_64

$ file alt-*.pdf
alt-education-10.2-alt-education-ru-RU.pdf:             PDF document, version 1.7
alt-education-e2k-10.2-alt-education-e2k-ru-RU.pdf:     PDF document, version 1.7
alt-kworkstation-10.2-alt-kworkstation-ru-RU.pdf:       PDF document, version 1.7
alt-server-10.2-alt-server-ru-RU.pdf:                   PDF document, version 1.7
alt-server-e2k-10.2-alt-server-e2k-ru-RU.pdf:           PDF document, version 1.7
alt-server-v-10.1-alt-server-v-ru-RU.pdf:               PDF document, version 1.7
alt-simply-10.2-alt-simply-ru-RU.pdf:                   PDF document, version 1.7
alt-simply-e2k-10.2-alt-simply-e2k-ru-RU.pdf:           PDF document, version 1.7
alt-workstation-10.1-alt-workstation-ru-RU.pdf:         PDF document, version 1.7
alt-workstation-e2k-10.1-alt-workstation-e2k-ru-RU.pdf: PDF document, version 1.7

$ find -name "alt-*.pdf" ! -name "alt-*e2k*.pdf" -print -exec pdfinfo {} \;
./alt-server-10.2-alt-server-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
./alt-kworkstation-10.2-alt-kworkstation-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
./alt-workstation-10.1-alt-workstation-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
./alt-simply-10.2-alt-simply-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
./alt-server-v-10.1-alt-server-v-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
./alt-education-10.2-alt-education-ru-RU.pdf
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
```

Похоже, что в проблемных файлах "битый" мета-заголовок.

Все epub-файлы открываются нормально. 
Пожалуйста, поправьте проблемные pdf-файлы.