[Solved] Spontaneous reformatting of a .doc file

Discuss the word processor

[Solved] Spontaneous reformatting of a .doc file

Postby donnolo » Sun May 24, 2020 1:43 am

I created a Word (.doc) file using OpenOffice Writer that contained nonstandard formatting (numerous changes in font size and color, irregular indentations). When I printed a pdf version it spontaneously reformatted. The same thing happened when I tried to attach it to an e-mail message.

I am attaching three files: Test.doc, Test1.pdf, and Test2.pdf. Test.doc is the original Word document. Since this isn't my usual e-mail application, I don't know how it will look to others at this site. Test1 shows how it is supposed to look. Test2 shows what happens when it reformats.

The same thing happens when I start from an .odt version.

I can work around the problem by *exporting* the file in pdf format instead of printing it. (That's how I created Test1.) But it seems to be a bug and should be fixed.
Attachments
Test2.pdf
Printed as pdf file.
(9.83 KiB) Downloaded 37 times
Test1.pdf
Exported as pdf file.
(38.89 KiB) Downloaded 38 times
Test.doc
Original file.
(17.5 KiB) Downloaded 39 times
Last edited by robleyd on Sun May 24, 2020 9:47 am, edited 3 times in total.
Reason: Add green tick
OpenOffice 4.1.3

Windows 7 Home premium (Windows 7 PC)
donnolo
 
Posts: 2
Joined: Sun May 24, 2020 1:12 am

Re: Spontaneous reformatting of a .doc file

Postby Zizi64 » Sun May 24, 2020 6:13 am

I created a Word (.doc) file using OpenOffice Writer that contained nonstandard formatting (numerous changes in font size and color, irregular indentations).


Always work in the International Standard ODF file formats with the Apache OpenOffice and the LibreOffice. And the end of the editing export a copy of your document in the foreign, obsolete, never standarsized file formats - if it is necessary. (And only re-edit the native file format (original) version of the document.)

Note: There is not (never was ansd never will be 100% compatibility between the different file formats. You always will lost some formatting property when you save a document into a foreign (non-native) file format.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9702
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Spontaneous reformatting of a .doc file

Postby Zizi64 » Sun May 24, 2020 6:49 am

I just opened the .doc version of your document. There are missing fonts in it, because I have not such fonts on my PC. The TestFonts extension can examine a document for the applied/missing fonts. The relevant part of the report of the TestFonts extension:

Code: Select all   Expand viewCollapse view
Missing fonts - found:  3 times
    Helvetica;Arial                 Bold
    Times;Times New Roman           Regular
    Times;Times New Roman           Bold

https://extensions.openoffice.org/en/project/testfonts


The missing fonts will be substituted when a recipient open your document. And the other font - even if it is very similar - have not same properties as the applied font have.

Maybe the one of the .pdf version contains the applied fonts embedded into the pdf file, and the other one have not. (the file size of the two .pdf files are basicly different...)
Last edited by Zizi64 on Sun May 24, 2020 7:06 am, edited 1 time in total.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9702
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Spontaneous reformatting of a .doc file

Postby Zizi64 » Sun May 24, 2020 7:04 am

Othervise you are using a bad formatting method for in your document. The text looks like as a centered position text. But you are using a narrow space between the margins; and the text will be rearranged, when the missing font will be substituted wit an another one. Use a wider space, and force the line feeds (Shift-Enter) or the paragraph breaks (Enter), if you want not to rearrange the text.

You can use different Paragraph Styles with
- different font size, and
- with different font color, and
- with different spacing between the lines
instead of the manual formatting method. It will give you a better (more comfortable and easilier modificable) result.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9702
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Spontaneous reformatting of a .doc file

Postby donnolo » Sun May 24, 2020 9:05 am

Yes, I did some of the editing when the file was in .doc format.

I could re-create it working entirely in .odt format, then convert to .doc in order to share it. (Not everyone uses OpenOffice, so sending it in .odt format might make it unreadable.) It would be interesting to find out if I that makes the problem disappear. But that's a lot of work merely to satisfy my curiosity.

Thanks for the tips.
OpenOffice 4.1.3

Windows 7 Home premium (Windows 7 PC)
donnolo
 
Posts: 2
Joined: Sun May 24, 2020 1:12 am

Re: Spontaneous reformatting of a .doc file

Postby RoryOF » Sun May 24, 2020 9:16 am

All versions of Ms Office from 2007 and later will open .odt files.
Apache OpenOffice 4.1.8 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31992
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Spontaneous reformatting of a .doc file

Postby Zizi64 » Sun May 24, 2020 9:17 am

(Not everyone uses OpenOffice, so sending it in .odt format might make it unreadable.)


...Do you think it: not everyone installs and uses a free PDF reader software when they want to read a PDF format document??
Yes, the AOO and the LO are free softwares for everyone - as the PDF reader softvares are free too. Everyone can install and use them (even near the other Office Suites).
And the newer versions of the MS Office software (what you at all can install on a recent Windows version ) can read the ODF file formats.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9702
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Solved] Spontaneous reformatting of a .doc file

Postby John_Ha » Sun May 24, 2020 10:46 am

See [Tutorial] Differences between Writer and MS Word files for a description of differences and for why you should always work in, and save Writer files as .odt, Calc files as .ods, Impress files as .odp etc.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 8062
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Writer

Who is online

Users browsing this forum: No registered users and 15 guests