Doc is huge, PDF is tiny

I have a ODT, turned into an OTT template, and they are 42 MB, while there is not a lot in it. The PDF is just 80 KB. 42 MB is huge for the data it holds.

I copied the text, the header, and the footer, into a new document and saving that results in a file of 22 KB.

When creating the file, I tested with images but ended up with text-only. I now suspect the image is still in the ODT and OTT. How can I check this? The navigator does not show any images at all (it shows nothing except for the three tables).

I know I can use the copy, but I would like to understand.

Thanks!

It is possible that some page style contain images as page background.
(or have been used at some point).
These images are not seen in the browser but sometimes they remain in the document
As @fpy says to check if there are images it is best to open the document with a decompressor program
If you want to us to examine the file, you can upload a sample here.

Embedded fonts?

1 Like

It appeared to be two huge fonts (26 - 27 MB). Now to find a way to remove them, as they are not in use by any text I typed.

Menu / File / Properties, tab Font.

1 Like

Ah! Removed Asian and Complex sections, that saves 41 MB. Thanks!

The “embed only fonts in use” option was already checked, but still there fonts I don’t use. There must be a space somewhere or an EOL. Is there any way to check where a certain font is used?

Not directly, especially if you suspect empty paragraphs could be the culprits.

Try to enable Spotlight, all three options from the Format menu. This will paint your text. You need some time to understand colours and their references to the side style pane (open it). Colours tell you which styles (paragraph and character) are active. Hatching on the highlighting flags the presence of direct formatting (mainly for paragraph styling). Grey highlighting in text is direct-formatting warning.

Used styles will be decorated with their colour. Check their configuration, notably Font tab to see if a spurious font is requested. Once you have verified the styles, switch off the corresponding Spotlight (keeping only direct formatting active).

Switch the side pane to Style Inspector view. Move the cursor into grayed highlighted sequences and read which direct formatting has been added in the side pane.

Generally speaking, direct formatting (DF) is your worst enemy in a document. Newbies and Word aficionados tend to consider it as “intuitive” but this is not true. DF will cause endless problems, such as the one you experience. Educate yourself to using styles. Contrary to common belief, once you are accustomed to them, you work much faster than with DF and much more reliably.

Spotlight and Style Inspector — great tools, thanks!

I have been using styles ever since I learned about them, and hate it when young Angular developers use too much component-specific styles instead of global styles.

I only found one instance of character styling and that didn’t do anything. But I think I have found something. On one section I see this:

image

The Noto Serif there, those are the culprits. They are part of the Default Paragraph Style. I only use Liberation Serif, there are no Asian or Complex characters. How do I switch these off? I can’t find anything. Is that related to the font? I can switch to a different one for this style, no problem. But I’d like to understand.

Thanks!!

These Noto fonts are more or less part of default configuration. They really don’t matter as long as the style is not used.

You say they are part of Default Paragraph Style (DFS). You have then two options:

  • check DFS is not used in your document
    DFS is the ultimate ancestor of all styles. It is not intended for formatting text directly. Its main role is to set defaults which are used by all other styles (unless the attribute is overridden, of course). Formatting text with DFS is a “logical” error.
  • force these attributes to Liberation Serif in DFS
    The needed parameters won’t show until you enable Asian and Complex text layout in Tools>Languages & Locales, General. Once this done, Font tab will display more choices for font according to language family.
1 Like

Never realised it ws just a ZIP file. It was a font, so @mikekaganski 's answer counts as well. Damn, two fonts of 27 MB each!

Excellent tip to find out what is actually included, thanks!!