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

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

    <bug>
          <bug_id>47475</bug_id>
          
          <creation_ts>2023-09-06 16:27:30 +0300</creation_ts>
          <short_desc>PoDoFo не шифрует PDF-файл (Error: 8 ePdfError_InternalLogic; Error initializing RC4 encryption engine)</short_desc>
          <delta_ts>2023-09-06 16:27:30 +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="Artem Varaksa">varaksaaa</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>232636</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2023-09-06 16:27:30 +0300</bug_when>
    <thetext>Описание ошибки
===============

1. $ for i in {a..z}{1..100}; do echo &quot;привет${i}&quot; &gt;&gt; text.txt; done
2. $ podofotxt2pdf -utf8 -fontname &quot;DejaVu Sans Mono&quot; text.txt text_custom.pdf
3. $ podofoencrypt --rc4v2 -u 123 -o 123 text_custom.pdf enc.pdf

Фактический результат
=====================

&gt; Error: An error 8 ocurred during encrypting the pdf file.
&gt; 
&gt; 
&gt; PoDoFo encountered an error. Error: 8 ePdfError_InternalLogic
&gt;         Error Description: An internal error occurred.
&gt;         Callstack:
&gt;         #0 Error Source: /usr/src/RPM/BUILD/podofo-0.9.8/src/podofo/base/PdfEncrypt.cpp:997
&gt;                 Information: Error initializing RC4 encryption engine

Ожидаемый результат
===================

Успешное шифрование pdf-файла.

Воспроизводимость
=================

Воспроизводится на виртуальной машине:

[sisyphus] podofo-0.9.8-alt1.x86_64
server-10.1-x86-64

Не воспроизводится на виртуальной машине:

[p10] podofo-0.9.8-alt1.x86_64
server-10.1-x86-64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>