Document Properties (DOP)

Each version of Word, the DOP gets a little bit larger. Shown below are three different versions of the DOP: for nFib values < 103, for nFib values between 103 and 105, and for nFib values > 105.. Winword 97 and later products write files with nFib > 105. Word 6.0 for the Macintosh writes files with nFib == 103 or 104. The compatibility options (copts) section was grown (to add more compatibility options in the Tools/Options/Compatibility dialog) and copied to the end of the DOP, so for files with nFib >= 103, the first copts section should be ignored (and the analogous fields in the new copts section used instead), whereas files with nFib < 103 will have DOP's without the new copts section. See below for the addition.

 
b10b16fieldtypesizebitfielddefault valuecomments
00fFacingPagesshort:1000101 when facing pages should be printed
  fWidowControlshort:1000211 when widow control is in effect. 0 when widow control disabled.
  fPMHMainDocshort:1000401 when doc is a main doc for Print Merge Helper, 0 when not; default=0
  grfSuppressionshort:200180Default line suppression storage; 0= form letter line suppression; 1= no line suppression; default=0. No longer used.
  fpcshort:200601footnote position code
0 print as endnotes
1 print at bottom of page
2 print immediately beneath text
   short:100800unused
11grpfIhdtshort:8FF000 No longer used.
22rncFtnshort:200030restart index for footnotes
0 don't restart note numbering
1 restart for each section
2 restart for each page
  nFtnshort:14FFFC1initial footnote number for document
44fOutlineDirtySaveshort:10001 when 1, indicates that information in the hplcpad should be refreshed since outline has been dirtied
   short:700FE reserved

5

 5fOnlyMacPicsshort:10100when 1, Word believes all pictures recorded in the document were created on a Macintosh
  fOnlyWinPicsshort:10200 when 1, Word believes all pictures recorded in the document were created in Windows
  fLabelDocshort:10400 when 1, document was created as a print merge labels document
  fHyphCapitalsshort:10800 when 1, Word is allowed to hyphenate words that are capitalized. When 0, capitalized may not be hyphenated
  fAutoHyphenshort:11000 when 1, Word will hyphenate newly typed text as a background task
  fFormNoFieldsshort:12000  
  fLinkStylesshort:14000 when 1, Word will merge styles from its template
  fRevMarkingshort:18000 when 1, Word will mark revisions as the document is edited
66fBackupshort:10001 always make backup when document saved when 1.
  fExactCWordsshort:10002 when 1, the results of the last Word Count execution (as recorded in several DOP fields) are still exactly correct.
  fPagHiddenshort:10004 when 1, hidden document contents are displayed.
  fPagResultsshort:10008 when 1, field results are displayed, when 0 field codes are displayed.
  fLockAtnshort:10010 when 1, annotations are locked for editing
  fMirrorMarginsshort:10020 swap margins on left/right pages when 1.
   short:1  reserved
  fDfltTrueTypeshort:10080 when 1, use TrueType fonts by default (flag obeyed only when doc was created by WinWord 2.x)
77fPagSuppressTopSpacingshort:10100 when 1, file created with SUPPRESSTOPSPACING=YES in win.ini. (flag obeyed only when doc was created by WinWord 2.x).
  fProtEnabledshort:10200 when 1, document is protected from edit operations
  fDispFormFldSelshort:10400 when 1, restrict selections to occur only within form fields
  fRMViewshort:10800 when 1, show revision markings on screen
  fRMPrintshort:11000 when 1, print revision marks when document is printed
   short:1  reserved
  fLockRevshort:14000 when 1, the current revision marking state is locked
  fEmbedFontsshort:18000 when 1, document contains embedded TrueType fonts
88copts.fNoTabForInd short:10001  compatibility option: when 1, don't add automatic tab stops for hanging indent
  copts.fNoSpaceRaiseLower:10002  compatibility option: when 1, don't add extra space for raised or lowered characters
  copts.fSuppressSpbfAfterPageBreak: :10004  compatibility option: when 1, suppress the paragraph Space Before and Space After options after a page break
  copts.fWrapTrailSpaces:10008  compatibility option: when 1, wrap trailing spaces at the end of a line to the next line
  copts.fMapPrintTextColor:10010  compatibility option: when 1, print colors as black on non-color printers
  copts.fNoColumnBalance:10020  compatibility option: when 1, don't balance columns for Continuous Section starts
  copts.fConvMailMergeEsc:10040  
  copts.fSupressTopSpacing:10080  compatibility option: when 1, suppress extra line spacing at top of page
  copts.fOrigWordTableRules:10100  compatibility option: when 1, combine table borders like Word 5.x for the Macintosh
  copts.fTransparentMetafiles :10200  compatibility option: when 1, don't blank area between metafile pictures
  copts.fShowBreaksInFrames:10400  compatibility option: when 1, show hard page or column breaks in frames
  copts.fSwapBordersFacingPgs :10800  compatibility option: when 1, swap left and right pages on odd facing pages
     F000 reserved
10AdxaTabuns short  720 twipsdefault tab width
12CwSpareuns short
14EdxaHotZuns short   width of hyphenation hot zone measured in twips
1610cConsecHypLimuns short   number of lines allowed to have consecutive hyphens
1812wSpare2uns short  reserved
2014dttmCreatedDTTM   date and time document was created
2418dttmRevisedDTTM   date and time document was last revised
281CdttmLastPrintDTTM   date and time document was last printed
3220nRevisionint   number of times document has been revised since its creation
3422tmEditedlong   time document was last edited
3826cWordslong   count of words tallied by last Word Count execution
422AcChlong   count of characters tallied by last Word Count execution
462EcPgint   count of pages tallied by last Word Count execution
4830cParaslong   count of paragraphs tallied by last Word Count execution
5234rncEdnshort:20003 restart endnote number code
0
don't restart endnote numbering
1
restart for each section
2
restart for each page
  nEdnshort:14FFFC beginning endnote number
5436epcshort:20003 endnote position code
0
display endnotes at end of section
3
display endnotes at end of
document
  nfcFtnRefshort:4003C number format code for auto footnotes
0
Arabic
1
Upper case Roman
2
Lower case Roman
3
Upper case Letter
4
Lower case Letter
  nfcEdnRefshort:403C0 number format code for auto endnotes
0
Arabic
1
Upper case Roman
2
Lower case Roman
3
Upper case Letter
4
Lower case Letter
  fPrintFormDatashort:10400 only print data inside of form fields
  fSaveFormDatashort:10800 only save document data that is inside of a form field.
  fShadeFormDatashort: 11000 shade form fields
    :26000 reserved
  fWCFtnEdnshort:18000 when 1, include footnotes and endnotes in word count
5638cLineslong   count of lines tallied by last Word Count operation
603CcWordsFtnEndlong   count of words in footnotes and endnotes tallied by last Word Count operation
6440cChFtnEdnlong   count of characters in footnotes and endnotes tallied by last Word Count operation
6844cPgFtnEdnshort   count of pages in footnotes and endnotes tallied by last Word Count operation

70

 46cParasFtnEdnlong   count of paragraphs in footnotes and endnotes tallied by last Word Count operation

74

 4AcLinesFtnEdnlong   count of paragraphs in footnotes and endnotes tallied by last Word Count operation
784ElKeyProtDoclong   document protection password key, only valid if dop.fProtEnabled, dop.fLockAtn or dop.fLockRev are 1.
8252wvkSavedshort:30007 document view kind
0
Normal view
1
Outline view
2
Page View
  wScaleSavedshort:90FF8 zoom percentage
  zkSavedshort:23000 zoom type
0
None
1
Full page
2
Page width
  fRotateFontW6short:14000 This is a vertical document (Word 6/95 only)
  iGutterPosshort:18000 Gutter position for this doc: 0 => side; 1 => top

In a file with nFib < 103—for example, documents created with Word 6.0 for Windows—the DOP would end here. This DOP would have a cbDOP of 84, and a cwDOP of 42.

Files with nFib >= 103, the compatibility options (copts) section at offset 8 was copied here and expanded. Options marked "(see above)" hold the same value that the same-named field in the old copts section above had in files with nFib < 103.

8454fNoTabForInd uns long:100000001 (see above)  fNoSpaceRaiseLower:100000002 (see above)  fSupressSpbfAfterPageBreak:100000004 (see above)  fWrapTrailSpaces :100000008 (see above)  fMapPrintTextColor :100000010 (see above)  fNoColumnBalance :100000020 (see above)  fConvMailMergeEsc :100000040 (see above)  fSupressTopSpacing:100000080 (see above)  fOrigWordTableRules:100000100 (see above)  fTransparentMetafiles :100000200 (see above)  fShowBreaksInFrames:100000400 (see above)  fSwapBordersFacingPgs :100000800 (see above)    :40000F000 (reserved)  fSuppressTopSpacingMac5 :100010000 Suppress extra line spacing at top of page like MacWord 5.x  fTruncDxaExpand  :100020000 Expand/Condense by whole number of points.  fPrintBodyBeforeHdr:100040000 Print body text before header/footer  fNoLeading :100080000 Don't add leading (extra space) between rows of text    :100100000 (reserved)  fMWSmallCaps  :100200000 Use larger small caps like MacWord 5.x    :10FFC00000 (reserved)  

For this expanded DOP, cbDOP = 88 and cwDOP = 44.

For files with nFib > 105, the DOP has a number of additional fields:8858adtshort   Autoformat Document Type: 0 for normal. 1 for letter, and 2 for email.905AdoptypographyDOPTYPOGRAPHY see DOPTYPOGRAPHY400190dogridDOGRID   see DOGRID41019Areservedshort:10001 Always set to zero when writing files  lvlshort:4001E Which outline levels are showing in outline view (0 => heading 1 only, 4 => headings 1 through 5, 9 => all levels showing)  fGramAllDoneshort:10020 Doc has been completely grammar checked  fGramAllCleanshort:10040 No grammer errors exist in doc  fSubsetFontsshort:10080 if you are doing font embedding, you should only embed the characters in the font that are used in the document  fHideLastVersionshort:10100 Hide the version created for autoversion  fHtmlDocshort:10200 This file is based upon an HTML file  reservedshort:10400 Always set to zero when writing files  fSnapBordershort:10800 Snap table and page borders to page border  fIncludeHeadershort:11000 Place header inside page border  fIncludeFootershort:12000 Place footer inside page border   fForcePageSizePagshort:14000 Are we in online view  fMinFontSizePagshort:18000 Are we auto-promoting fonts to >= hpsZoonFontPag?41219CfHaveVersionsshort:10001 versioning is turned on  fAutoVersionshort:10002 autoversioning is enabled  reservedshort:14FFFC Always set to zero when writing files41419EasumyiASUMYI   Autosummary info4261AAcChWSlong   Count of characters with spaces4301AEcChWSFtnEdnlong   Count of characters with spaces in footnotes and endnotes4341B2grfDocEventslong4381B6fVirusPromptedlong:10001 Have we prompted for virus protection on this doc?  fVirusLoadSafelong:10002 If prompted, load safely for this doc?  KeyVirusSession30long:30FFFC Random session key to sign above bits for a Word session.4421BASpare30 bytes   Spare4721D8reservedlong   Always set to zero when writing files4761DCreservedlong   Always set to zero when writing files4801E0cDBClong   Count of double byte characters4841E4cDBCFtnEdnlong   Count od double byte characters in footnotes and endnotes4881E8reservedlong   Always set to zero when writing files4921ECnfcFtnRefshort   number format code for auto footnote references
0Arabic
1Upper case Roman
2Lower case Roman
3Upper case Letter
4Lower case Letter4941EEnfcEdnRefshort   number format code for auto endnote references
0Arabic
1Upper case Roman
2Lower case Roman
3Upper case Letter
4Lower case Letter4961F0hpsZoonFontPagshort   minimum font size if fMinFontSizePag is true4981F2dywDispPagshort   height of the window in online view during last repag

For this expanded DOP, cbDOP = 500 and cwDOP = 250.