Bug 130254 - First export of PDF contains only the title
Summary: First export of PDF contains only the title
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: Other macOS (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-29 10:21 UTC by miguel.barroso.morin
Modified: 2020-02-18 21:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
First export with user profile (7.54 KB, application/pdf)
2020-01-29 20:36 UTC, miguel.barroso.morin
Details
Second export with user profile (15.11 KB, application/pdf)
2020-01-29 20:37 UTC, miguel.barroso.morin
Details
First export in safe mode (7.54 KB, application/pdf)
2020-01-29 20:37 UTC, miguel.barroso.morin
Details
Second export in safe mode (14.80 KB, application/pdf)
2020-01-29 20:38 UTC, miguel.barroso.morin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description miguel.barroso.morin 2020-01-29 10:21:07 UTC
Description:
Start a new document in Writer. Add three lines of text. Make the first line a
title. Export PDF. Only the first line with the title is exported. Change the
title. Export again. Now all three lines appear.

Steps to Reproduce:
1. Start a new document in Writer.
2. Add three lines of text, e.g. "This is the first line", "This is the second line", "This is the third line"
3. Make the first line a title.
4. Export PDF (File > Export As > Export As PDF).
5. Accept the default settings in the next window
6. Open the resulting file in Preview. Only the first line with the title appears in the PDF.
7. Change the title, e.g. append a ", yes?"
8. Export again.
9. Open the file in Preview. Now all three lines appear.
3.

Actual Results:
The first export of the PDF contains only the title.

Expected Results:
I expected all the text in the Writer document to appear in the PDF.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.3.4.2
Build ID: 60da17e045e08f1793c57c00ba83cdfce946d0aa
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Julien Nabet 2020-01-29 11:03:52 UTC
On Win10 with LO 6.3.4, I don't reproduce this but not sure for step 6.

Here the steps I did:
1. Start a new document in Writer.
=> OK
2. Add three lines of text, e.g. "This is the first line", "This is the second 
line", "This is the third line"
=> OK
3. Make the first line a title.
=> OK
4. Export PDF (File > Export As > Export As PDF).
=> ok
5. Accept the default settings in the next window
=> OK
6. Open the resulting file in Preview. Only the first line with the title appears in the PDF.
What's "Preview"? I opened the file with Acrobat Reader, no pb.
Comment 2 Alex Thurgood 2020-01-29 11:14:46 UTC
(In reply to Julien Nabet from comment #1)


> What's "Preview"? I opened the file with Acrobat Reader, no pb.

This is Apple's default PDF viewer app, bundled with the OS.
Comment 3 Alex Thurgood 2020-01-29 11:24:14 UTC
No repro with LO6332 on macOS 10.14.6

Can't test on Catalina with LODev master build, currently because of bug 128233.
Comment 4 Roman Kuznetsov 2020-01-29 11:47:13 UTC
(In reply to miguel.barroso.morin from comment #0)
> Description:
> Start a new document in Writer. Add three lines of text. Make the first line
> a
> title. Export PDF. Only the first line with the title is exported. Change the
> title. Export again. Now all three lines appear.
> 
> Steps to Reproduce:
> 1. Start a new document in Writer.
> 2. Add three lines of text, e.g. "This is the first line", "This is the
> second line", "This is the third line"
> 3. Make the first line a title.
> 4. Export PDF (File > Export As > Export As PDF).
> 5. Accept the default settings in the next window
> 6. Open the resulting file in Preview. Only the first line with the title
> appears in the PDF.
> 7. Change the title, e.g. append a ", yes?"
> 8. Export again.
> 9. Open the file in Preview. Now all three lines appear.
> 3.

Can you attach a problem PDF here?
Comment 5 miguel.barroso.morin 2020-01-29 20:36:38 UTC
Created attachment 157508 [details]
First export with user profile
Comment 6 miguel.barroso.morin 2020-01-29 20:37:29 UTC
Created attachment 157509 [details]
Second export with user profile
Comment 7 miguel.barroso.morin 2020-01-29 20:37:50 UTC
Created attachment 157510 [details]
First export in safe mode
Comment 8 miguel.barroso.morin 2020-01-29 20:38:11 UTC
Created attachment 157511 [details]
Second export in safe mode
Comment 9 miguel.barroso.morin 2020-01-29 20:39:37 UTC
I attached four PDFs following the directions I described: first export with the three lines or second export after changing the first line, with user profile or in safe mode. I am on macOS Mojave 10.14.6, up to date.

The problematic PDF also has only the first line in another PDF viewer such as Adobe Illustrator.
Comment 10 miguel.barroso.morin 2020-01-29 20:45:42 UTC
After following steps 1-6 above, I get the same problem. If I save the document and export as PDF, I have the same problem. If I close the document (or if I quit LibreOffice) and open the document again, and then export, then I have no problem and I see a PDF that I expect.
Comment 11 miguel.barroso.morin 2020-01-29 21:11:01 UTC
I could provide a video of my screen showing the process if that's helpful?
Comment 12 QA Administrators 2020-01-30 03:38:27 UTC Comment hidden (obsolete)
Comment 13 eisa01 2020-02-15 22:25:22 UTC
I thought I could repro this, also on Windows, but what happens is that LO defaults to exporting the selected text, if you have text selected. So this would happen if you do it immediately after you change a style, and don't notice the PDF export selection

Export directly as PDF exports the full document irregardless of you selecting text or not

Version: 7.0.0.0.alpha0+
Build ID: 0cb4f304abf6f8dd6b40eb800788d2fe80581813
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 14 miguel.barroso.morin 2020-02-18 21:01:34 UTC
I confirm the diagnostic by elsa01. This is a feature of `Export As PDF > Range > Selection`, and not a bug. I'll use `Export directly`. It seems confusing at first but it's a feature I may use in the future and at least now it's documented.