Bug 74693 - PRINTING: Footnotes text appearing above footnote separator line
Summary: PRINTING: Footnotes text appearing above footnote separator line
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: high major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 20:08 UTC by Rodrigo Nuno Bragança da Cunha
Modified: 2014-07-10 17:59 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
page 39 footnotes (260.45 KB, image/png)
2014-02-10 23:09 UTC, Jacques Guilleron
Details

Description Rodrigo Nuno Bragança da Cunha 2014-02-07 20:08:20 UTC
In some pages some footnotes get skipped when printing, including PDF exporting.

For example, in the following document at page 39 and 40 footnote 104 gets discarded and footnote 105 gets the separator over it.

You can get the PDF here:

http://rnbc.dyndns.org/pub/Negociantes,_Mercadores_e_Traficantes_-_160x230v2.pdf

I can send the ODF by email if needed.

If I change widow/orphan control in footnotes, or any other style that changes pagination the problem gets sorted out in some pages, but appears in others (more or less randomly).

This occurs both in Linux and Windows with the latest version of LibreOffice (4.2, but also 4.1 and 4.0), albeit not in the same pages, because the pagination is slightly different between those 2 OSes.
Comment 1 Rodrigo Nuno Bragança da Cunha 2014-02-07 20:36:01 UTC
I used these fonts:

http://numbertext.org/linux/

The ODT file is online at the same address.
Comment 2 Rodrigo Nuno Bragança da Cunha 2014-02-08 00:01:48 UTC
I mean the ODT is at the same address as the PDF...
Comment 3 Jacques Guilleron 2014-02-10 23:09:36 UTC
Created attachment 93812 [details]
page 39 footnotes
Comment 4 Jacques Guilleron 2014-02-10 23:11:33 UTC
Hello Rodrigo Nuno Bragança da Cunha,

At this step, there's another way, perhaps, than using widow and orphan to get the correct behavior. This is to slightly reduce the space between caracters, as I show it for page 39 in attachment:
To see where to win some space, left align the paragraph.
Select "agora da Casa de Negocio desta Cidade, que existia debaixo da firma de Trumpy e Companhia, ", including coma and space behind Companhia,
right click and in context menu select Character, next > Position tab > Spacing > Choose Condensed and 0.2 pt.
Justify again your paragraph.
Footnote 102 is reduced the same way. 

Pagination is kept and this can save a big amount of work.
Does this help?

Kind regards,

Jacques
Comment 5 Rodrigo Nuno Bragança da Cunha 2014-02-11 00:43:33 UTC
Yes, thanks!

Actually I had already solved the issue by playing a bit with margins, footnote separator, widow/orphan... Pagination changes a bit, et voilà! Problem goes away... sometimes, for some combinations! Change them a bit and it reappears, in another page, sometimes in 2 or 3 pages.

Worst: if the problem is solved in Windows, for example, and I open the document in Linux, a new tweaking is needed because the pages change a bit (the font rendering changes a bit).

I understood this happened in difficult situations, when the footnotes and the text clash with each other at the end of pages. In normal documents it's probably never an issue. But this one has many footnotes, and the page size is relatively small. It's difficult to format correctly, I know.

But isn't this a bug? I mean: the document is correctly formatted on screen, so the algorithms are already there, operating well. Perhaps it's a good test case for improving LibreOffice :)

PS: Disabling widow and orphan control alone in footnotes doesn't solve the issue.
Comment 6 Rodrigo Nuno Bragança da Cunha 2014-02-11 01:17:05 UTC
Please check...

http://rnbc.dyndns.org/pub/Negociantes,_Mercadores_e_Traficantes_-_160x230v2problem_in_footnotes.pdf

...where the problem is apparent at page 39 and 40.

I just changed the footnote separator margin a bit (0.05cm below and 0.10cm above).

As usual the ODT is at the same place.
Comment 7 Rodrigo Nuno Bragança da Cunha 2014-02-11 01:56:07 UTC
PS: Sorry, in my first example the problem was invisible by my mistake. Now in this latest example it's clearly visible.

By formatting the document in slightly different ways I've seen problems in pages 40, 47, 75, 82. It depends on luck...
Comment 8 Rodrigo Nuno Bragança da Cunha 2014-04-07 18:47:05 UTC
Just to change the file URL, which is now:

http://rnbc.dynip.sapo.pt/pub/Negociantes,_Mercadores_e_Traficantes_-_160x230v2problem_in_footnotes.pdf
Comment 9 Jay Philips 2014-07-10 02:37:47 UTC
Dear Rodrigo,

Can you please upload the original odt file as i'm unable to access it.
Comment 10 Jacques Guilleron 2014-07-10 10:45:21 UTC
Hi Jay,

Just change pdf estension by odt. This is enough I think.

Kind regards,

Jacques
Comment 11 Jay Philips 2014-07-10 16:50:42 UTC
Hello Rodrigo,

I can confirm its there on Linux Mint with 3.3.0, 3.6.7, 4.2.5 and master. It seems as if the repagination isnt doing a complete job, as when you go into print preview mode it repaginates all the pages, but still after going to a page that has the problem, it shows the error and then corrects its self a few seconds later.
Comment 12 Rodrigo Nuno Bragança da Cunha 2014-07-10 17:59:06 UTC
Jay Philips, I agree with your assessment. That's what I thought too... and that's what I saw.

There seems to be a two-pass algorithm doing the pagination job in preview mode and in print mode only the first pass runs, leaving footnotes badly formated, lost, etc...

PS: I have no knowledge of the internals of LibreOffice, so my opinion has little weight.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.