Issue 125882 - wrong numbering with selection PDF
Summary: wrong numbering with selection PDF
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 4.1.1
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-20 17:41 UTC by TAB
Modified: 2016-10-16 11:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
file to convert to PDF (11.88 KB, application/vnd.oasis.opendocument.text)
2014-11-20 17:41 UTC, TAB
no flags Details
bad PDF, from selection (45.70 KB, application/pdf)
2014-11-20 17:43 UTC, TAB
no flags Details
good PDF from whole document (51.23 KB, application/pdf)
2014-11-20 17:45 UTC, TAB
no flags Details
source to convert (12.47 KB, application/vnd.oasis.opendocument.text)
2015-10-19 14:08 UTC, TAB
no flags Details
complete conversion --OK (48.59 KB, application/pdf)
2015-10-19 14:42 UTC, TAB
no flags Details
converted from selection: bad (35.46 KB, application/pdf)
2015-10-19 14:44 UTC, TAB
no flags Details
Example document as prepared with the listed steps (9.93 KB, application/vnd.oasis.opendocument.text)
2016-10-16 10:25 UTC, Kathrin Schellmann
no flags Details
New example document as prepared with new steps (9.65 KB, application/vnd.oasis.opendocument.text)
2016-10-16 11:03 UTC, Kathrin Schellmann
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description TAB 2014-11-20 17:41:37 UTC
Created attachment 84222 [details]
file to convert to PDF

Open tstPDF.odt,.then, perform one of:
	step_0: Select all (^a); Click File>ExportAsPDF>Selection to tstPDFsel.pdf. Open tstPDFsel.pdf with any PDF reader: 4 parag after 'b' have wrong styles.
	step_1: Click PDF to tstPDF.pdf. Open tstPDF.pdf: no error.
Comment 1 TAB 2014-11-20 17:43:08 UTC
Created attachment 84223 [details]
bad PDF, from selection
Comment 2 TAB 2014-11-20 17:45:10 UTC
Created attachment 84224 [details]
good PDF from whole document
Comment 3 neel 2014-11-24 05:30:30 UTC
I tested according to the directions and was unable to reproduce the issue.
Comment 4 oooforum (fr) 2014-11-24 11:16:51 UTC
Your document is malformed. You use numbering style instead of heading to set your titles.

This is an end-user problem and not a bug.

Thanks to post this kind of question on support forum.
Comment 5 TAB 2015-10-19 14:08:50 UTC
Created attachment 85051 [details]
source to convert
Comment 6 TAB 2015-10-19 14:42:37 UTC
Created attachment 85052 [details]
complete conversion --OK
Comment 7 TAB 2015-10-19 14:44:26 UTC
Created attachment 85053 [details]
converted from selection: bad
Comment 8 TAB 2015-10-19 14:50:42 UTC
(In reply to oooforum from comment #4)
'Your document is malformed.' 
	What is a 'malformed' document?
	If the document is 'malformed', why is it properly converted whole --TstPDFb.pdf?

'You use numbering style instead of heading to set your titles.'
	Huh? What 'titles'? Are some style sequences (from one paragraph to the next) illegal?

'This is an end-user problem and not a bug.'
	What is an 'end-user problem'? OO does not like my face?
	My computer is not at-fault. The same behaviour happens on another computer under Windows 10.

'post this kind of question on support forum'
	I did. Hagar Delest concluded:
	'I think that there is a bug with the export if a selection only is used. You should try to report it.'
	
The simpler file TstPDFb.odt (#85051) converts (whole) correctly to TstPDFb.pdf (#85052).
	But the selection does not: TstPDFbSel.pdf.
I tried
	* Default formatting on the whole selection;
	* Setting the style of BB to default, then copying the style of CC to BB;
	* Setting the style of CC to default, then copying the style of BB to CC;
... and always obtained the same result when converting the selection: TstPDFbSea.pdf, #85053 ; FL, Fa, Fb, Fc are incorrectly converted.
Comment 9 Tomislav Delalic 2016-04-09 18:44:05 UTC
(In reply to TAB from comment #0)
> Created attachment 84222 [details]
> file to convert to PDF
> 
> Open tstPDF.odt,.then, perform one of:
> 	step_0: Select all (^a); Click File>ExportAsPDF>Selection to tstPDFsel.pdf.
> Open tstPDFsel.pdf with any PDF reader: 4 parag after 'b' have wrong styles.
> 	step_1: Click PDF to tstPDF.pdf. Open tstPDF.pdf: no error.

I have been able to reproduce the described behaviour under:

OS: Windows 10
OO: 4.2.0

using the documents provided by the user that reported the issue. 

If the Export to PDF option is available in the program, it's functionality should be consistent, no matter the document, formatting or selection. It is significant to note that when the document is being exported as a whole, the formatting is being kept in the PDF document. Exporting should work consistently for all available options.
Comment 10 Kathrin Schellmann 2016-10-16 10:24:45 UTC
I can confirm the behaviour on Windows 10 Pro N 64bit, using the open office version 4.1.2 build 9782.

Not only with the documents provided by the user that reported that issue, but also by using my own prepared documents.

Steps on how to reproduce the error:
1. Create new document
2. Create a list of three with numbering on
3. Add another listitem (X) between two of the available ones
4. Delete the numbering in this new listitem (X) by using backspace
5. Afterwards add new listitems (Y, Z) after the initial new listitem (X) and use a different numbering symbol, for example bullet points. (Now the list should look similar to the one provided by the reporting user)
6. Export PDF with Range selection
7. Export PDF with Range All

Result:
In the PDF with range All the list fits with the one in the original .odt file. In the PDF with range Selection the list is missing the bullet points and the intendation of those.

Expected results:
Both PDF files look the same as the original .odt file.

Added my prepared .odt file as an attachment (Example.odt)
Comment 11 Kathrin Schellmann 2016-10-16 10:25:41 UTC
Created attachment 85735 [details]
Example document as prepared with the listed steps
Comment 12 Kathrin Schellmann 2016-10-16 11:01:57 UTC
By changing the steps a bit we get a slightly different outcome:

1. Create new document
2. Create a list of three with numbering on
3. Remove the numbering in the second listitem (X) by clicking 'Numbering on/off'
5. Afterwards add new listitems (Y, Z) after the listitem (X) and use a different numbering symbol, for example bullet points. 
6. Export PDF with Range selection
7. Export PDF with Range All

Result:
In the PDF with range All the list fits with the one in the original .odt file. In the PDF with range Selection the listitem (X) is shown with numbering on (although that was removed before) and the list is missing the bullet points and the intendation of those.

Expected results:
Both PDF files look the same as the original .odt file.

Added my prepared .odt file as an attachment (Example1.odt)
Comment 13 Kathrin Schellmann 2016-10-16 11:03:01 UTC
Created attachment 85736 [details]
New example document as prepared with new steps