How can I remove all headers in a document in LibreOffice Writer? I made a page style with no header but I can’t apply it to all pages. I selected all text using CTRL+A and in the Style menu on the right I chose page style and double clicked the style I made, but it only applied to one page.
If you click in a page with a header and then click Format > Page Style > Header and untick the box Header on, do all the headers disappear? If you have several page styles then you will need to modify each of those styles to untick the Header on.
Note: If the header is turned off all contents of the header are lost
What is your save format? .doc(x)? The fact that only one page is changed highly suggests your document has been heavily edited and saved in some foreign format which completely modified its structure. In the page style list, do you see many Converted x styles?
Please mention OS name, LO version and save format. Eventually attach your file if it is small.
The problem is that the document has 600 page styles
This seems to confirm it is a .docx. You have not described your configuration (OS, LO version and save format). Editing repetitively a document in a non-native format is the most reliable way to damage it beyond repair. And, since m£ Word has no notion of character and page styles, it ends up with tons of direct formatting.
I have a pdf which is a scanned book. But it wasn’t scanned well so whole document was in different spacings, fonts and font sizes. I converted the pdf into odt using online tool, and I was able to fix the spacings and font so the document doens’t look bad now, but there are headers. The online tool made different page style for every page, so I have 600 page styles.
Headers are attached to page styles. I guess the tool just translated PDF (which is a page description format, not a document encoder) by creating the pages (and the text too) with direct formatting. I hope that the tool really identified the headers as being headers. It could also have considered them as ordinary paragraphs within the text. In this case, applying a page style won’t delete the fake headers.
There is nothing you can do before restructuring (unfortunately manually) your document.
One of the quickest way is to copy whole text and paste it unformatted into a blank file. Think about the styles (paragraph, character and pages, list eventually) you need and create them (or modify the built-in ones). Then apply the styles to the unformatted text.
What is the online tool? Have you tested it on a sample document before submitting your real file?
I didn’t try it on a sample document, but I tried multiple tools like this one. After the conversion the documents ends up with different page styles for every page.
I made a test with a very simple .odt: single page with header enable, one word in header; a single text paragraph.
As I feared, the header is converted into ordinary text. The generated paragraph style Normal is just nonsense: indents send text overlapping the margins; font face is arbitrarily set to Calibri, not considering metadata in the PDF. Page style has nothing to do with the original one (margins are not the same), which could explain the negative indents in the paragraph style.
Not only does Convertio create nonsensical paragraph styles, but it feels the necessity to add systematically direct formatting over it. The same goes for characters: it applies Default Paragraph Font (which does not set any attribute!) before its target direct formatting.
Obviously, Convertio does not use the metadata present in the PDF file. It does little effort to discriminate header from main text. I didn’t insert any heading but I think they won’t be recognised as such either. I don’t expect any success in chapter or list numbering. I also bet that any page number will end up as “standard” text in a paragraph of its own.
Since PDF is a page description language, I think Convertio each page individually, as if they were independent from each other, and creates a description of the page (i.e. it does not reconstruct text) using Writer primitives to roughly position “graphical elements” (they are not converted into drawing objects of course, but the result is the same).
This is a really rudimentary example. So, forget it for large documents.
Similar thread with a “solution”:
But that method not work for me for the Page Styles what are applied in the document ( LO 7.4.7.)
It doesn’t work for me neither. (LO 7.5.4.2)
It recognized the headers when I used it. I also tried using Adobe’s pdf to docx online tool, which should work better, but it was the one that converted headers into ordinary text.
The only reliable method I know to convert a PDF to (any) document processing format is a manual and rather user-unfriendly one. I think it is not reasonable for a 600-page document:
- open your PDF file in a PDF reader
- open a blank text document
- in the PDF reader, select text and copy it
- paste as Unformatted Text in Writer, Word, FrameMaker, any app of your choice
- remove the extra paragraph marks at end of line to recreate the paragraph structure
- apply styles (after recreating them)
- take care of page structure
- remove literal chapter numbering so that the chapter numbering feature does it automatically and reliably
Could you upload a sample file of 5-10 pages? The page styles can probably be deleted by editing the content.xml. I’ll try to check that.
Nevertheless the residua of the headers will remain. Probably SEARCH&REPLACE could help there…
When a document is cluttered with so many styles, it is often simpler to restart from scratch by pasting unformatted text and styling it. But this assumes you have clear ideas about styles.
Even a very complex document (formatting-wise) rarely needs more than 10 additional custom paragraph styles, less than 10 character styles, ~10 page styles and perhaps 1 or 2 list styles. The issue for frame styles is more open and depends on your type of out-of-flow data: images, side-notes, formulas, … and whether or not it is captioned. Of course, built-in styles will be customised to your taste.
As-tu essayé le mode remplir ? le petit pot de peinture dans la liste des style ?