Apache OpenOffice (AOO) Bugzilla – Issue 67258
RTF: only last tab of paragraph imported on some docs
Last modified: 2017-05-20 11:15:17 UTC
Some RTF documents are losing their tab stops when imported to OOo. The same file looks fine in Word. In addition, if you open the file in Word and resave it again as RTF the formatting is now imported correctly by OOo. Sample document is below. {\rtf1\ansi \paperw12240\paperh15840\margl1080\margt360\margr360\margb360 {\fonttbl {\f0\fnil\fprq2\fcharset0 Arial;}{\f1\fnil\fprq2\fcharset0 Arial;}{\f2\fnil\fprq2\fcharset0 Arial;}{\f3\fnil\fprq2\fcharset0 Arial;}{\f4\fnil\fprq2\fcharset0 Arial;}{\f5\fnil\fprq2\fcharset0 Arial;}{\f6\fnil\fprq2\fcharset0 ;}{\f7\fnil\fprq2\fcharset0 ;}{\f8\fnil\fprq2\fcharset0 Arial;}{\f9\fnil\fprq2\fcharset0 Arial;}} {\colortbl ;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;\red0\green0\blue0;} \uc1 \pard\tx0\f1\fs20\cf2\b 01/15/99 - 06/05/06 ( Summary includes prior totals *Cabin Camp )\b0\tab\par\pard\tx0\f4\fs32\cf5\b\qc Scout Individual Participation Report\b0\tab\par\pard\tx0\f0\fs20\cf1 \tab\par\pard\tx0\f1\fs20\cf2\b Name:\b0\tab\tx1843\f0\fs20\cf1 Flintstone, Fred\tab\tx6336\f1\fs20\cf2\b Home Phone:\b0\tab\tx8294\f0\fs20\cf1 (714) 999-9999\tab\par\pard\tx0\f0\fs20\cf1 \tab\tx6336\f1\fs20\cf2\b Patrol:\b0\tab\tx7257\f0\fs20\cf1 Raven\tab\par\pard\tx0\f1\fs20\cf2\b Current Rank:\b0\tab\tx1843\f0\fs20\cf1 Life\tab\tx4032\f1\fs20\cf2\b Rank Date:\b0\tab\tx5299\f0\fs20\cf1 09/26/05\tab\tx6336\f1\fs20\cf2\b Date of Birth:\b0\tab\tx8294\f0\fs20\cf1 ********\tab\tx9331\f1\fs20\cf2\b Age:\b0\tab\tx9907\f0\fs20\cf1 13\tab\par\pard\tx0\f1\fs20\cf2\b Pos'n of Respons:\b0\tab\tx1843\f0\fs20\cf1 \tab\tx4032\f1\fs20\cf2\b Pos Date:\b0\tab\tx5299\f0\fs20\cf1 \tab\tx6336\f1\fs20\cf2\b Date Joined Unit:\b0\tab\tx8294\f0\fs20\cf1 10/03/05\tab\par\pard\tx0\f0\fs20\cf1 \tab\par\pard\tx0\f1\fs20\cf2\b \par}
Created attachment 37695 [details] Sample Document
See attached RTF document. Only the last of the user defined tab stops in the the paragraphs will be imported here. This heavily destroys the layout of the document.
changing target
-> HB
A similar symptom was resolved by insuring that the scope of the 1st tab sets does not include the 2nd tab sets. While pard should have limited the first scope, it does not.
RTF documents are losing their tabs when opened in Open Office 2.2.1 on Windows XP professional. Opening and saving in MS Word 2007 does not fix the problem.
The docx import filter consumed most of our resources in the "interop" area. Due to that we must retarget this issue. -> 3.x
Reset assigne to the default "issues@openoffice.apache.org".