Issue 17282 - Extraneous blank page in Master Document with Manual Page Break
Summary: Extraneous blank page in Master Document with Manual Page Break
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC Linux, all
: P3 Trivial with 4 votes (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords: needmoreinfo
Depends on:
Blocks:
 
Reported: 2003-07-23 04:50 UTC by rblackeagle
Modified: 2005-01-24 22:28 UTC (History)
1 user (show)

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


Attachments
Illustration of MD layout (37.86 KB, image/png)
2003-07-23 04:53 UTC, rblackeagle
no flags Details
Page Preview of extraneous page - pages 1, 2, 3 and 4 (40.23 KB, image/png)
2003-07-23 04:58 UTC, rblackeagle
no flags Details
Template for Test Documents (7.80 KB, application/octet-stream)
2004-05-06 19:50 UTC, rblackeagle
no flags Details
MD Test Case (8.78 KB, application/vnd.sun.xml.writer)
2004-05-06 19:52 UTC, rblackeagle
no flags Details
Test Case File - Introduction (8.09 KB, application/vnd.sun.xml.writer)
2004-05-06 19:54 UTC, rblackeagle
no flags Details
Test Case File - Chapter 1 (8.08 KB, application/vnd.sun.xml.writer)
2004-05-06 19:55 UTC, rblackeagle
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rblackeagle 2003-07-23 04:50:50 UTC
Adding a Manual Page Break after a certain number of documents requires the
entry of blank "Text" before the new pagination occurs.

Start a Master Document using a template.

Write several test files each based on the same template.
Make sure that the Heading style for the first line of each of the test files
includes a "Break Before" with a specific page style.  Set up two groups -- one
with pagination as latin (i, ii, iii, ...) and the rest with Arabic numerals
(1,2,3, ...).

Write some text at the beginning (to force template styles to work in the MD).
"Create Master Document" from this document.

Now insert a file from the "Latin" group as a sub-doc.  Insert all of that
group.  Each should start with a new page.  There should be an extra blank page
where two odd numbered pages follow one another -- as expected -- and not when
an even page precedes an odd numbered page.

Now enter (using the Navigator)"Text" (Insert > Text).

Going to the "Text" of your test MD, Insert > Manual Break > with page style
(the "Arabic" page style) beginning with "1".

Now add the remaining sub-documents.

After the Latin text, you will find a blank page that has the style you
requested and "page 1" -- so that the first page of your text will be "page 3"
instead of "page 1".

EXPECTED BEHAVIOR: The Manual Break should insert no extraneous pages at all and
the first page of the new numbering sequence should be "1" and not "3".

Attached is an illustration of the page layout with a partial view of the last
page of the italics (footer is lost on reloading -- sorry) and the extraneous
blank page and another showing a Print Preview with the extra page.  The
attachments are added in two other submissions.
Comment 1 rblackeagle 2003-07-23 04:53:50 UTC
Created attachment 7952 [details]
Illustration of MD layout
Comment 2 rblackeagle 2003-07-23 04:58:55 UTC
Created attachment 7953 [details]
Page Preview of extraneous page - pages 1, 2, 3 and 4
Comment 3 rblackeagle 2003-08-15 22:41:20 UTC
This actually appears fixed in RC3.  I will do some more testing and
report back.
Comment 4 rblackeagle 2003-08-17 04:05:55 UTC
It IS fixed in RC3.  Thanks, guys!
Comment 5 h.ilter 2004-03-24 13:59:50 UTC
CLOSED
Comment 6 rblackeagle 2004-05-05 10:29:04 UTC
Dang!  This needs to be reopened.  It is NOT fixed in 1.1.2rc.  I am completely
unable to renumber beginning with a "1" when there is an intervening blank page
caused by having two odd page numbers back to back.

What I want is "Page xvii" followed the main text of the book and the first page
being "Page 1."  What I get is a blank page (which can neither be edited nor
changed in any manner) followed by my main text beginning with "Page 2."  If I
use the page offset, then the index and TOC will be wrong.

Please take another look at this.
Comment 7 h.ilter 2004-05-05 10:56:25 UTC
Reopened
Comment 8 h.ilter 2004-05-05 10:57:10 UTC
HI->ES: Please investigate.
Comment 9 eric.savary 2004-05-05 15:42:09 UTC
Please attach the document itself to issue.
Comment 10 rblackeagle 2004-05-05 19:21:52 UTC
No.  I will NOT attach the document I was working on.

I will, however, create a simpler example and attach it and the sub-documents. 
It will be awhile as I'm going into the hospital for tests.

To reproduce.

Open a text document based on any template.
Send -> Create Master Document
Create sub-doc based on template with some page style set in document.
In the MD, type in anything to get to page 3.
Insert the sub-doc anyway you want with a Manual Break with page style and new
number starting at "1".

Result: Blank page plus new numbering starts at "2".

If you don't want to do this, please wait until I can send examples.
Comment 11 eric.savary 2004-05-05 22:40:37 UTC
No problem, I will wait for a sample document.
Comment 12 rblackeagle 2004-05-06 19:50:06 UTC
Created attachment 15033 [details]
Template for Test Documents
Comment 13 rblackeagle 2004-05-06 19:52:48 UTC
Created attachment 15034 [details]
MD Test Case
Comment 14 rblackeagle 2004-05-06 19:54:29 UTC
Created attachment 15035 [details]
Test Case File - Introduction
Comment 15 rblackeagle 2004-05-06 19:55:25 UTC
Created attachment 15036 [details]
Test Case File - Chapter 1
Comment 16 rblackeagle 2004-05-06 19:58:56 UTC
The documents submitted should resolve to this MD:
Cover page (page 1, absolute)  Style: _IC_Cover
Title page (page 3, absolute) Style: _IC_Title
Introduction (page "1"; page 5, absolute) Style: _IC_FrontMatter_FP
Chapter 1 (page "3"; page 7, absolute) Style: _IC_FP

Notice that trying to set everything right causes styles to change almost at random.
Comment 17 eric.savary 2004-05-07 13:39:58 UTC
- Blank pages: you get blank pages because most of your page styles have a page
layout set to "only right" (Format - Page - [Page] - Page layout).
If you want to print on a on odd pages only, you probably won't like to see
blank even pages in your document on the screen, will you? So these pages are
hidden in edit mode.
Vevertheless, even pages always *exist* in the real world and the printer
(especially in duplex mode) has to know that you whish not to print on even page.

For this reason, blank pages are added automatically in the print preview and
when printing to reflect the reality of your document.

- Wrong page number on last page: due to the fact that you forced many times the
page number to a specific one in the page styles, the last page does not
automatically start at 1. You can easily correct this:
- set the cursor in the paragraph called "This is the First Document"
- Format - Paragraph - Text flow - Breaks - [X] Enable - [X] With page Style
- set the Page number to 1.

Hope this helps
Comment 18 rblackeagle 2004-05-07 16:08:31 UTC
I know and expect the even page breaks.  For example, if the last page of one
document is 13, the next one would be 15 with a blank between.  That is NOT an
EXTRANEOUS BLANK PAGE.  What I am talking about is that sometimes (I will have
to create an example with my next book), there will be three blank pages.

Your solution will not work as the styles in the MD override styles of the same
name in the sub-docs.  If there are several sub-docs, I do NOT want every single
document beginning with page 1.  That's why the need for a manual break within
the MD as setting the heading style to force a page 1 (if in the template or the
MD) will get every single sub-doc starting at a new page 1.  Considerations for
the TOC and indexes make that a completely useless choice.

What is supposed to happen (which MS Word does, clumsy as it is) is that I can
set the main text to page 1 and everything follows from there.  TOC's and
indexes are now useful.  Your suggestion works only because I have but one
sub-doc that is to begin with page one.  Suppose I now add a second sub-doc with
the same styles (which is, of course, the reason for templates).  Now what am I
to expect.  Say chapter I is 15 pages.  Chapter II should start with page 17. 
You solution would start Chapter II with page 1 again -- NOT what is wanted.

Trying to resolve this conundrum is what gave me an example of three blank
pages.  It ONLY works if the preceding front matter ends with an even number. 
It NEVER works right if the preceding front matter ends with an odd numbered
page.  And THAT's the problem.
Comment 19 ftack 2004-08-24 21:16:33 UTC
This entering of blank pages automatically is Writer wanting to be too smart for
users printing on a single side. I agree that it makes much sense in duplex
printing, but in single page printing, the current implementation can leads to
annoying blank pages being ejected and frustration for the user, who can't
control these extra blank pages. It would be nice if this feature could be
turned off for those wishing to.
Comment 20 eric.savary 2005-01-06 02:39:37 UTC
Can you please express yourself a little bit more precise and *concise* (so,
about 5 lines of facts...).
When loading your document (src680m69), I see (in print preview mode) 1 page
with text, 1 "Blank page all along your document. So, everything is fine for me.

Hints to report: please describe like this:
- "I expect page nb X to be numbered "y" " or "I want 1 blank page "there" and
"there" "
- "but I get "this" "

Comment 21 eric.savary 2005-01-24 22:27:34 UTC
no answer
Comment 22 eric.savary 2005-01-24 22:28:12 UTC
closed