Bug 40270 - Header border showing on PDF export
Summary: Header border showing on PDF export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.2 release
Hardware: x86-64 (AMD64) All
: lowest minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2011-08-21 07:24 UTC by Jonathan
Modified: 2019-01-07 18:23 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Differences between Writer initial view and PDF viewed in a PDF software (here Adobe Acrobat) (114.86 KB, image/png)
2011-08-21 07:24 UTC, Jonathan
Details
ODT file containing the header. You can see no border at the bottom of the header, but if you try to save it in PDF format (whatever the way you save it) it will show a bottom border for the header. (11.81 KB, application/vnd.oasis.opendocument.text)
2011-08-24 01:02 UTC, Jonathan
Details
No Header problem in PDF (55.03 KB, image/png)
2011-08-25 19:13 UTC, Jeffrey
Details
PDF file to test in different viewers. (24.43 KB, application/pdf)
2011-08-28 13:15 UTC, Jonathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan 2011-08-21 07:24:57 UTC
Created attachment 50425 [details]
Differences between Writer initial view and PDF viewed in a PDF software (here Adobe Acrobat)

Hi there !

I did a "fancy" header, writing in white on a gray background and noticed that when I'm exporting the document in a PDF format (composite using the export to PDF option or using the Mac OS X built-in print to PDF ability) a thin gray line is visible where nothing is visible in LibreOffice Writer.

Take a look at the attachments for a better understanding.

I used "Format > page > header" tab to style the grey background, and to specify no border. I even tried to put a white border instead, no luck.
Comment 1 Jeffrey 2011-08-23 19:33:42 UTC
Not sure if this is a problem. Perhaps that in your header, the text does not reach to the bottom, so when you insert grey background, a grey line appears. Have you tried using another color background and see that colored line appear as well? Also it would be great if you provided your header image for us all to try. Thanks.
Comment 2 Jonathan 2011-08-24 01:02:23 UTC
Created attachment 50526 [details]
ODT file containing the header. You can see no border at the bottom of the header, but if you try to save it in PDF format (whatever the way you save it) it will show a bottom border for the header.

Jeffrey, thanks for your reply. 
Just to be a little more clear : the header is not an image but is made directly in Writer.
I had the same idea as you first about some space between the text and the header, but as you can see on the image I attached, the border does not appear in Writer but only when it is exported in the PDF format. 

I attach here another file that you might find interesting for testing purposes : a simple ODT file with the header. I tried with another background color (black) and it appears that the line which is visible in the exported PDF is black, so it is indeed related to the background color of the header.

I hope this helps ! You'll see that the header is not an image as well
Comment 3 Jeffrey 2011-08-25 19:13:27 UTC
Created attachment 50581 [details]
No Header problem in PDF

Thanks for the attachment. Yes I can see now that there is no border whitespace on the header. Nevertheless, when I export to PDF and view via Okular, the display is fine (ie there is no gray line). So I am not sure what is the cause of your problem. Have you tried other exporting with another system/software instead of the Mac OS X built-in print to PDF ability? That might help isolate the problem.
Comment 4 Jonathan 2011-08-28 13:15:32 UTC
Created attachment 50638 [details]
PDF file to test in different viewers.

This is an hybrid file you can try to view with your PDF viewers and edit in Libreoffice if necessary. The border appears between the white letters and the white background of the page.
Comment 5 Jonathan 2011-08-28 13:16:21 UTC
I'm not sure how to try that. It's weird that you cannot reproduce the "bug" I'm facing. How can I export in PDF using something else than the built-in PDF export ? Isn't it the library used in Libreoffice on Mac ? 

There is something new though : I made an hybrid file so you can check it in LibreOffice. In Preview (Lion 10.7.1) the line is visible whatever the zoom is, but on Adobe Reader (10.10) it's visible only if you zoom in at least 800%. I printed this test page from Adobe Reader and Preview, and it seems that the line is *not* visible ! The previous test I did was maybe a mistake... But it's still visible in the viewers, making it a trivial bug :)

BTW looking at your screen capture, you cannot see the bug I'm facing, I'm making the header smaller so that the white letters are touching the white background of the rest of the page. It's cosmetics, I know, but it's here I can see the border :)

(In reply to comment #3)
> Created an attachment (id=50581) [details]
> No Header problem in PDF
> 
> Thanks for the attachment. Yes I can see now that there is no border whitespace
> on the header. Nevertheless, when I export to PDF and view via Okular, the
> display is fine (ie there is no gray line). So I am not sure what is the cause
> of your problem. Have you tried other exporting with another system/software
> instead of the Mac OS X built-in print to PDF ability? That might help isolate
> the problem.
Comment 6 Rainer Bielefeld Retired 2011-11-07 00:37:00 UTC
[Reproducible] with reporter's "testfile.odt" and "LibreOffice 3.4.4RC2  - WIN7 Home Premium (64bit) German UI [OOO340m1 (Build:402)]" 

With ARX I see a black line below black header block with white letters, what separate the letters from the white empty document area below the text. With all documents I observe that increasing zoom in AR X step by step the border line is visible for several zooms, disappears, reappears, ...

I see the problems with PDF export settings
- A1
- A1 lossless
- A1 lossless hybrid. With this 
- lossless
- normal export
(or shortened: in all exported documents)

As Jeffrey recognized. the sample document has very special page heading settings, so that the bottom of the heading exactly truncates the complete character height so that nothing of the characters below the bottom of the capital letter will be visible. insert a "g", change fonc color to green, and you will see that the bottom of the letter will be truncated. But unexpectedly also that "g" will be cut by the complained border line between heading and rest of document, and THAT is really strange.

I can simply create a sample document showing the problem.
1. New document
2. Menu 'Format -> Page -> Header -> Activate'
3. Type some text °QWERTZUasdfghj" into the header
4. font size 36, color white
5. Paragraph background black
6. reduce Header height so that bottom ends at bottom of capital letters.
7. Export to PDF
   Expected: "g", "j" without horizontal line, bottom end white, invisigle
   Acctual: bottom of "g", "j" truncated by black horizontal line

@Jonathan:
Please submit bugs with default status UNCONFIRMED!
Please contribute information concerning all PDF export related LibO settings
Do you also observe that behavior with standard text?
Comment 7 Jonathan 2011-11-09 13:29:19 UTC
Hi !

Sorry for the late reply, and for the bug status issue, I'm new to this, and I'm not sure how to turn it to UNCONFIRMED, any help about this is appreciated.

About the bug, thank you Rainer for all the explanations I was unable to produce properly. I'm not sure what you mean with your last statement : 
"Please contribute information concerning all PDF export related LibO settings
Do you also observe that behavior with standard text?"

As you said, I have the problem with the default "export to pdf" settings :
JPEG Compression to 90%
PDF/A-1a selected
Tagged PDF
Export bookmarks
Embed standard fonts
Create hybrid file

I noticed that the thin line I can see where the letters are truncated is not always gray, it has in fact the background color, and shows in Preview on Mac as well as in Adobe Reader 10.1.1 (at some zoom sizes, 1600% for me).
Comment 8 Rainer Bielefeld Retired 2011-11-12 05:44:46 UTC
@Jonathan:
Thank you for your additional information. I believe we here have 2 observations:
1. it's difficult to adjust heading height so that it is exactly shown at the 
   place below the bottom of capital letters; that was your original report, it
   has been reproduced.
2. An additional, may be other line parts the descenders of some letters 
  ("g", "j", "y") at the baseline from the x-height part 
  (see <http://en.wikipedia.org/wiki/X-height> and 
   <http://en.wikipedia.org/wiki/Descender>), See my comment 6

Can you confirm 2.?
Comment 9 Björn Michaelsen 2011-12-23 13:26:17 UTC Comment hidden (obsolete)
Comment 10 ign_christian 2013-09-18 04:59:29 UTC Comment hidden (obsolete)
Comment 11 Jonathan 2013-09-18 06:31:53 UTC
Hi,

In the last release of LibreOffice (4.1.1), I tried to reproduce the bug on my Windows 7 system and the line between header and the rest of the document is still visible in the exported PDF and the printed document.

I changed the status to Unconfirmed as requested.
Comment 12 ign_christian 2013-09-19 03:05:24 UTC
Hello.. I can also reproduce that in LO 4.0.5.2 (Win7 32bit).

But your file in comment 4 looks fine (without lower border) while I open that with PDF Xchange, looks fine either in Google Chrome.
Strange..what LO version did you use to produce that PDF?
Comment 13 bfoman (inactive) 2013-11-16 19:16:37 UTC
Confirmed with:
Version: 4.1.3.2
Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a
Windows 8.1 Enterprise Preview 64 bit

Confirmed with original attachment. If header is expanded there is no horizontal line in exported PDF with default settings.
Marking as NEW.
Comment 14 QA Administrators 2015-04-19 03:23:18 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2016-09-20 09:24:46 UTC Comment hidden (obsolete)
Comment 16 Timur 2019-01-07 18:23:53 UTC
I guess repro. 6.3+.