Issue 99346 - OOo opens files as "Page 1/2" before correcting itself to "Page 1/1"
Summary: OOo opens files as "Page 1/2" before correcting itself to "Page 1/1"
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.0.1
Hardware: PC All
: P4 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2009-02-17 23:04 UTC by groverblue
Modified: 2013-01-29 21:38 UTC (History)
2 users (show)

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


Attachments
Example Document that loads at 2 pages before re-adjust to a single page (.ott) (10.69 KB, application/vnd.oasis.opendocument.text-template)
2009-02-17 23:08 UTC, groverblue
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description groverblue 2009-02-17 23:04:32 UTC
On some documents, OOo will open a Writer file (in my case a template) with an
extra page before it correctly adjust to a single page document (ie, "Page 1/2"
then an immediate "Page 1/1").  This is causing a problem when processing
documents rapidly through automation, because the template file doesn't alway
re-adjust in time before updates on that file begin (my assumption). The result
is an opened document with a second (and invalid) page.

This behavior is reproducible both manually opening the files, and through UNO
automation. 

Additionally, I testing this out on both Windows and Linux.

I will attach a sample document for which this occurs.
Comment 1 groverblue 2009-02-17 23:08:50 UTC
Created attachment 60267 [details]
Example Document that loads at 2 pages before re-adjust to a single page (.ott)
Comment 2 lohmaier 2009-09-27 22:09:51 UTC
reproducible, but you can force a refresh using the api and then start
processing, can't you?
Comment 3 groverblue 2009-11-03 17:13:02 UTC
An apparent workaround has been found, but this has only been tested on ~200
instances of processing a document.  Therefore, this might not be a temporary
solution at all, but instead a case of me just getting lucky with my testing.  

From the View menu, choose Zoom.  I set "Zoom Factor" to "Fit width and height",
and "View layout" I kept as "Automatic".

Now, opening a problem document correctly loads it as page 1/1, without any page
count re-adjustment.

I will follow up if this "workaround" proves false.