https://bugs.documentfoundation.org/show_bug.cgi?id=162342

            Bug ID: 162342
           Summary: RTF input fails to honor \marg[lrtb]N commands when a
                    \page command is added. Same for unoconv.
           Product: LibreOffice
           Version: 7.6.7.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
When LibreOffice writer opens and reads RTF files,
the \marg left, right, top, bottom commands are ignored when a subsequent \page
command is added.  The result is that default margins are used instead of the
specified margins.  If the subsequent \page command is omitted, the specified
margins are used.

The \page command causing the problem is NOT the first \page command but if it
is omitted from the .rtf file, the margins are correctly rendered.

I have attached files showing the problem:  

margin-failure.rtf
margin-failure-Screenshot.png
showing the RTF input and output failure with a \page command

margin-ok.rtf
margin-ok-Screenshot.png
showing the RTF input and output correctly without the \page command.

The two .rtf files are identical except for the \page command which causes the
failure.

Processing RTF files with unoconv has the same problem!

My system is as follows:

ads@ADS4:~$ uname -a
Linux ADS4 6.9.9-100.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 11 19:26:10 UTC
2024 x86_64 GNU/Linux
ads@ADS4:~$ 

ads@ADS4:~$ soffice --version
LibreOffice 7.6.7.2 60(Build:2)

ads@ADS4:~$ unoconv --version
unoconv 0.9.0
Written by Dag Wieers <[email protected]>
Homepage at http://dag.wieers.com/home-made/unoconv/

platform posix/linux
python 3.12.4 (main, Jun  7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat
13.3.1-1)]
LibreOffice 7.6.7.2
ads@ADS4:~$ 


Steps to Reproduce:
1. generate RTF file with \page command
2. open .rtf file with LibreWriter (soffice) or unoconv
3.
2.
3.

Actual Results:
\marg[lrtb]N commands are ignored and margins are incorrectly set to some
default.

Expected Results:
\marg[lrtb]N commands are honored and margins are correctly set as specified.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.7.2 (X86_64)
Build ID: 60(Build:2)
CPU threads: 6; OS: Linux 6.9; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

If you open the .rtf files with a text editor, you will see they differ only in
the \page command.
The \page command that causes the problem is NOT the first \page command in the
.rtf file.

If you open the .rtf files with LibreWriter (soffice) you will see the
difference in the margins.

I should add that the failing file 'margin-failure.rtf' displays margins
correctly using LibreOffice on Windows 10.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to