<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>54605</bug_id>
          
          <creation_ts>2025-06-02 16:43:37 +0300</creation_ts>
          <short_desc>Ошибка при конвертации txt в pdf</short_desc>
          <delta_ts>2025-06-02 16:43:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>podofo</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Богдан Богуславский">boguslavskijbj</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>266287</commentid>
    <comment_count>0</comment_count>
    <who name="Богдан Богуславский">boguslavskijbj</who>
    <bug_when>2025-06-02 16:43:37 +0300</bug_when>
    <thetext>Стенды:
ALT Workstation 11.0 (Обновленный до Sisyphus)
ALT Workstation K 11.0 (Обновленный до Sisyphus)
ALT Server 11.0 (Обновленный до Sisyphus)

Версия пакета: 
podofo-0.10.4-alt1.x86_64

Шаги воспроизведения:
1. Создать файл text.txt с произвольным содержимым, например:
$ cat &gt; text.txt &lt;&lt; EOF
text
EOF
2. Преобразовать text.txt в pdf:
$ podofotxt2pdf text.txt text.pdf

Ожидаемый результат: успешное преобразование текстового файла в pdf

Реальный результат:
ERROR: An error ocurred during processing the pdf file
PdfErrorCode::InvalidFontData, The font data is invalid.
Callstack:t#0 Error Source: main/PdfEncoding.cpp(82), Information: The provided string can&apos;t be converted to CID encoding
также создается файл text.pdf, который невозможно открыть

Дополнительно: при указании шрифта и кодировки текст ошибки немного отличается:
$ podofotxt2pdf -utf8 -fontname &quot;Noto Sans&quot; text.txt text.pdf
ERROR: An error ocurred during processing the pdf file
PdfErrorCode::InvalidHandle, An invalid handle was passed or returned, but initialized data was expected.
Callstack:t#0 Error Source: otxt2pdf/podofotxt2pdf.cpp(85)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>