Bug 60205 - Multi-column 1-page RTF(not doc) with text box (absolute position to margin with "Layout in table cell") opens with wrong frame position
Summary: Multi-column 1-page RTF(not doc) with text box (absolute position to margin w...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.6.5.2 release
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Page-Layout-Columns layoutInCell
  Show dependency treegraph
 
Reported: 2013-02-02 23:14 UTC by rj_libreoffice
Modified: 2024-08-24 19:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Multi-column 1-page .doc file which doesn't display correctly in LibreOffice (70.34 KB, application/msword)
2013-02-02 23:14 UTC, rj_libreoffice
Details
Multi-column doc viewed with MS Word Viewer (607.80 KB, image/jpeg)
2015-06-08 18:09 UTC, rj_libreoffice
Details
Multi-column doc viewed with LibreOffice (464.13 KB, image/jpeg)
2015-06-08 18:11 UTC, rj_libreoffice
Details
Multi-column doc viewed with OpenOffice (500.61 KB, image/jpeg)
2015-06-08 18:13 UTC, rj_libreoffice
Details
Essentially the same problem seen with LO v7.3.2.2 (x64), Win 10 Home (309.07 KB, image/png)
2022-04-25 21:50 UTC, rj_libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rj_libreoffice 2013-02-02 23:14:09 UTC
Created attachment 74107 [details]
Multi-column 1-page .doc file which doesn't display correctly in LibreOffice

LibreOffice 3.6.5.2 generally works quite well for me.

However, it doesn't correctly display a certain .doc file (BWDoc1.doc) I have created.

This specific .doc file was created using Foxit PhantomPDF's OCR on 1 page I scanned from an old 
(1905, so in the public domain) reference/study Bible we have.
The top of the page has 4 columns -- with the 2 outermost columns of the same size and the 2
innermost columns of the same size, but the outermost/innermost columns of differing sizes.
(Column1Width = Column4Width and Column2Width = Column3Width, but Column1Width != Column2Width).
and the bottom of the page has 3 equal-width columns.

I realize that this is quite a complex document, but

    MS Office Word Viewer 11.8169.8172 SP3 opens and displays this file correctly.
	
and

    Lotus Symphony 3.01 opens it and displays it fairly well, but not perfectly.

I am running 64-bit Microsoft Windows 7 Home Premium (SP1).

Thank you.

    RJ
    USA
Comment 1 Jorendc 2013-02-03 22:30:16 UTC
I can confirm this 'behavior'/rendering issues.

I also see that this .doc is 'rtf-based' (I don't know what the exact words are, but I see rtf code in it). So I'm not sure this is just a renamed extension (from .rtf to .doc) or it's just saved that way.

@Miklos: do you mind have a look at this rtf(/doc)?

Thanks in advance,
Joren
Comment 2 rj_libreoffice 2013-02-07 22:46:03 UTC Comment hidden (obsolete)
Comment 3 Jorendc 2013-02-07 23:13:58 UTC Comment hidden (obsolete)
Comment 4 rj_libreoffice 2014-04-12 18:00:26 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2015-06-08 14:42:06 UTC Comment hidden (obsolete)
Comment 6 rj_libreoffice 2015-06-08 18:09:58 UTC
Created attachment 116378 [details]
Multi-column doc viewed with MS Word Viewer
Comment 7 rj_libreoffice 2015-06-08 18:11:45 UTC
Created attachment 116379 [details]
Multi-column doc viewed with LibreOffice
Comment 8 rj_libreoffice 2015-06-08 18:13:44 UTC
Created attachment 116380 [details]
Multi-column doc viewed with OpenOffice
Comment 9 rj_libreoffice 2015-06-08 18:29:16 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2016-09-20 10:01:09 UTC Comment hidden (obsolete)
Comment 11 rj_libreoffice 2016-09-26 16:22:23 UTC Comment hidden (obsolete)
Comment 12 Xisco Faulí 2017-09-29 08:49:15 UTC Comment hidden (obsolete, spam)
Comment 13 Timur 2018-04-19 11:01:21 UTC Comment hidden (obsolete)
Comment 14 QA Administrators 2019-04-20 02:58:14 UTC Comment hidden (obsolete, spam)
Comment 15 QA Administrators 2022-04-25 03:26:56 UTC Comment hidden (obsolete)
Comment 16 Timur 2022-04-25 10:47:58 UTC
Repro 7.4+.
Comment 17 rj_libreoffice 2022-04-25 21:49:21 UTC
I see essentially the same problem with the current LibreOffice Fresh, v7.3.2.2. (x64), using Windows 10 Home. See new screenshot.
Comment 18 rj_libreoffice 2022-04-25 21:50:45 UTC
Created attachment 179768 [details]
Essentially the same problem seen with LO v7.3.2.2 (x64), Win 10 Home
Comment 19 QA Administrators 2024-04-25 03:16:20 UTC Comment hidden (obsolete)
Comment 20 rj_libreoffice 2024-04-27 17:57:08 UTC
Although I think it does look somewhat better than in LibreOffice 3.6.5.2, the problem's still there in LibreOffice:

Version: 7.6.5.2 (X86_64) / LibreOffice Community
Build ID: 38d5f62f85355c192ef5f1dd47c5c0c0c6d6598b
CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 21 Justin L 2024-08-20 13:32:18 UTC
Focusing on the "Romans 1" textbox, we get
{\sp{\sn fBehindDocument}{\sv 1}}
\shpz1
{\sp{\sn shapeType}{\sv 202}}
{\sp{\sn dxTextLeft}{\sv 0}}
{\sp{\sn dyTextTop}{\sv 0}}
{\sp{\sn dxTextRight}{\sv 0}}
{\sp{\sn dyTextBottom}{\sv 0}}
{\sp{\sn fFitShapeToText}{\sv 1}}
{\sp{\sn fFilled}{\sv 0}}
{\sp{\sn fLine}{\sv 0}}
{\sp{\sn dxWrapDistLeft}{\sv 63500}}
{\sp{\sn dyWrapDistTop}{\sv 63500}}
{\sp{\sn dxWrapDistRight}{\sv 63500}}
{\sp{\sn dyWrapDistBottom}{\sv 63500}}
{\sp{\sn fLayoutInCell}{\sv 1}}

Note that these name/value pairs are not part of the RTF specification, so it is an application-specific extensions to the standard where fLayoutInCell is defined. layoutInCell is a key factor in proper placement of in-table shapes.

The vertical anchor is not specified, so it should be treated as the page margin  \pvmrg (or in this case cell margin since it is fLayoutInCell) (but LO is using its default of paragraph - see bug 48442 where this was deal with for frames).