incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shzh zhao <>
Subject Re: Does MS Word Binary Document Contain the Page Count Info?
Date Mon, 18 Jun 2012 12:44:48 GMT

you can refer to
Page Table

Page table information is optional data which is not always stored in a
Word binary file. It may be stored for the main text, footnote text and
endnote text. The fib contains three FCPGD structures (fcpgdMother,
fcpgdFtn, fcpgdEdn) which point to where the data is stored. Each fcpgd
points to a PLF of PGD structures and a PLCF of BKD structures. The PLF of
PGD descriptors contains n entries where n is the number of pages in the
associated text stream. The PLC of BKDs contains >= n entries where each
entry describes a single break (page break or otherwise) within the text
stream. Each BKD is associated with a PGD and contains an ipgd which is an
index into the PLF of PGDs. To find the CP range of a given page, traverse
the BKDs searching for the first and last BKD which refer to the given
page. The CP range of these BKDs is the CP range of the page.

Third-party creators of Word files should not attempt to create fcpgd
structures. They can only be created properly using Word's page layout
routines. If a Word document is edited in any way, the fcpgds in the fib
should be filled with 0s.

2012/6/18 Fan Zheng <>

> Hi,
> Please take a look on Dop(Document Properties)::DopBase::cPg, which maybe
> is what you want.
> 2012/6/18 chengjh <>
> > I want to get the exact page count info during loading a MS Word binary
> > document,not from AOO after layout formatting.I have studied the
> > specification of MS Word binary format,but I didn't find the
> description..I
> > am afraid that I missed something..Anyone can give me a hand?Thanks.
> >
> > --
> >
> > Best Regards,Jianhong Cheng
> >


mailto: * <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message