LogoLogo
ClausesDatafieldsSpecial FunctionsStylingQ&AAPI
  • Welcome!
  • Getting started
    • What is Clause9?
    • Structuring your clause library
    • Structuring your clauses
    • Drafting modes in Clause9
    • Creating a questionnaire
    • Sample clauses
    • Videos
      • Concepts and datafields
      • Conditions
      • Q&As
      • Binders
      • Styling
      • Enumerations
      • Tables
      • Definitions
      • Snippets
      • Cross-references
      • Special functions
      • Examples of common clauses
      • Import clauses from MS Word
      • Grammatical conjugations
      • Action buttons
      • Alternative clauses
  • Assemble document
    • Document toolbar
    • Clause hierarchies
    • Focus Mode
    • Bulk generation of documents
    • Exporting documents
    • Assemble Document - FAQ
    • How to: Assemble Document
      • Insert images
  • Assemble Document Operations Panel
    • Operations panel
    • File pane
    • Edit pane
    • Document pane
    • Binder pane in the operations panel
    • Search pane
    • Browse pane
    • Terms pane
    • Data dashboard
    • Advanced pane
    • Styling pane
    • Miscellaneous pane
    • Visibility settings & actions menu
  • Binders
    • Binders: general
    • Styling cross-references to subdocuments
    • Global and local definition lists
    • Document and binder properties
    • Styling of a Binder versus subdocuments
    • (Un)locking documents in a binder
    • Binders - FAQ
    • How to: binders
      • Make a subdocument in a binder conditional
  • Clauses
    • Introduction to clauses
    • Clause structure
    • Grammar sheet
    • Writing conditions
    • Examples of conditions
    • Using codes instead of text fragments
    • Bold, italic and underline
    • Special codes
    • Enabled?
    • Links
    • Cross-references
    • Introduction to tables
    • Deviating table styling
    • Shrinking clauses
    • Action buttons
    • Enumerations
    • File position
    • Snippets
    • Parameters
    • Conjugations
    • Mixing data types
    • For-loops
    • Clause versioning
    • Abstract article references
    • Advanced multi-language features
    • Clauses - FAQ
    • How to: clauses
      • Create an ad-hoc clause
      • Create a library clause
      • Make a clause repeat
      • Make a paragraph within a clause conditional
      • Use a shortcut to refer to a concept
      • Insert a line break or page break
      • Creating a list with both predefined options and free input
      • Defining alternative clauses
      • Creating cross-references
      • Creating signature blocks
      • Creating advanced party introduction clauses
      • Automatically numbered annexes or schedules
      • Reuse any clause in a different context
      • Setting MS Word document properties
      • Add action buttons to clauses
      • Electronically signing documents
  • concepts
    • Introduction to concepts
    • Creating concepts
    • Concept labels
    • Links
    • Organising concepts
    • Concepts - FAQ
    • How to: concepts
      • Add predefines to a datafield
  • Datafields
    • Introduction to datafields
    • Types of datafields
    • Rules of thumb for using datafields
    • Data-expressions
    • Datafield aliases
    • Datafield labels
    • Datafield special tags
    • Datafield descriptions
    • Repeating list datafields
    • Datafield predefines
    • Datafields - FAQ
    • How to: datafields
      • Change datafield type
      • Change the datafield's name or alias
  • Definitions
    • Introduction to definitions
    • How to: definitions
      • How do definitions work?
      • Create a definition
  • Files
    • How files are organised
    • Browse files
    • File types
    • Custom styling
    • Legal comments
    • File description
    • Attributes
    • Reporting
    • File name
    • File category
    • Access rights
    • How to: files
      • Creating advanced folders
      • Naming your files
      • Shortcuts to folders or files
  • Q&A
    • About cards
    • Cards pane
    • About changes
    • Changes pane
    • Types of changes
    • Adding conditions
    • Question options
    • Copying & pasting answers
    • Comments, notes & documentation
    • Interactive Q&A inspection
    • Embedding questions into a document
    • “Changes” button
    • Batch create pane
    • Identifiers pane
    • Import pane
    • Edit clauses pane
    • Q&A options
    • Q&A - FAQ
    • How to: Q&A
      • Create predefined answers to a question
      • Add disclaimers
      • Create categories of questions
      • Modify the exported filename
      • Create a question to change the language of a document
      • Send a questionnaire to someone without a ClauseBase account
      • Create questions for repeating list datafields
      • Selecting legal entities & addresses
      • Create a questionnaire using "batch create"
      • Launch other Q&As
    • Leveraging ClauseBuddy Smart Templates in Clause9
  • Import
    • Introduction to importing clauses
    • Uploading clauses
    • Defined terms in Import mode
    • Datafields in Import mode
    • Cross-references in Import mode
    • Assigning folders
    • Conversion process
    • Exporting
    • Stashing intermediate results
    • Tips, tricks & limitations
  • Styling
    • Styling overview
    • Base styling
    • Numbering
    • Definitions styling
    • Enumerations styling
    • Locale styling
    • References styling
    • Page styling
    • Styling of a Binder versus subdocuments
    • Styling: tips and tricks
    • Advanced styling topics
    • Copying headers and footers from an MS Word file
    • How to: styling
      • Using custom fonts
      • Change bullet styling
  • Special functions
    • Introduction
    • Calculations
    • Concepts
    • Conditions
    • Conjugations
    • Content Control Elements
    • Datafields
    • Dates & durations
    • Languages
    • Lists
    • Numbers
    • References
    • Repeating (looping)
    • Special items
    • Text structure
    • Text modification
    • User
    • Q&A
  • Settings
    • Account
    • Preferences
    • Access bundles
    • Favourites
    • Saved searches
    • Saved datafields
    • Styles
    • Default styles
  • Admin
    • General
    • Users
    • User rights
    • Profiles
    • Groups
    • Styles
    • Default styles
    • Attribute models
    • Usage page
    • Custom homepage
    • Global placeholders
    • Access rights
    • How to: admin
      • Adding a new user
      • Disabling a user
      • Managing group memberships
  • Miscellaneous
    • Advanced tips & tricks
    • Typing special symbols on your keyboard
    • Shortcuts
    • Grammar style guide
    • Inserting MS Word files
    • Globo-panel
    • Creating high-quality documents
    • Excel calculations and lookups
  • Integrations
    • Overview
    • Spreadbases
    • E-signing documents
    • Drag & drop integrations
  • For developers
    • Clause9 API
    • Custom functions
    • Example custom functions
Powered by GitBook
On this page
  • Steps to take
  • Caveats
Export as PDF
  1. Styling

Copying headers and footers from an MS Word file

PreviousAdvanced styling topicsNextHow to: styling

Last updated 1 year ago

Clause9 allows you to create headers and footers with variable content. However, sometimes this is not enough — e.g., because you want to insert tables or graphics into a header or footer. In such situations it can be useful to copy headers and footers from an existing MS Word (.DOCX) file.

Steps to take

In the settings, you can refer to an uploaded .DOCX file. The name should refer to the filename of the uploaded .DOCX file.

Simply choose whether to copy the header and/or the footer from the source .DOCX file (the “other header” and “other footer” options refer to the situation where you use different headers/footers for the first page vs. the rest of the pages). If the source .DOCX file does not contain the requested header/footer, an error message will appear instead in the resulting document.

Caveats

  • Always store the source .DOCX file in a location that is accessible to all the users of your file — including anonymous users. At the moment the final .PDF/.DOCX file is being generated, the server will dynamically load that .DOCX file, which will only succeed if the file is accessible to the current user. You will therefore probably want to store the source .DOCX file containing the headers/footers in a (subfolder of) your company’s or department’s library within the Clause9 environment.

  • Clause9 has to merge the formatting & styles of the source headers/footers with the formatting/styles of the document that is being generated. Usually this goes well and no intervention on your part will be needed. However, sometimes layout shifts do occur — if so, please read on for the details on why this happens.

    The MS Word styles of the requested header/footer will be merged with the other MS Word styles that Clause9 creates during the creation of the resulting document. This can sometimes lead to layout shifting if the style settings in the source .DOCX file conflict with the styles being used by Clause9 internally.

    For example, if you specify “space after 9pt” in the Clause9 base settings, then this 9pt spacing will end up in the “Normal” style of MS Word. When your source .DOCX file has a paragraph with style Normal, and “space after 3pt” is set for the Normal style, then you may end up with a shifted header/footer. The exact reasons why this occurs are quite obscure, due an interplay between different versions of file formats and Clause9’s third party .DOCX/.PDF layout engine over which Clause9 only has limited control.

    If such layout shifting occurs, you should take care that:

    • the header/footer being copied uses a custom MS Word style that is not already present in the list of styles being used by Clause9

  • If you use images in the headers/footers (e.g., logos, watermaks, texts with special fonts rendered as images, etc.), then make sure you use “Absolute position” towards the page, both horizontally and vertically (in MS Word, you can right-click on an image and then choose Size and Position… to access the dialog box shown in the screensho below). Other types of positioning tend to shift around.

  • If you activated “header other pages” or “footer other pages” but only one header or footer shows up (instead of two different ones), then please check whether “different on first vs. the other pages” is active under the Header & footer variance setting of the Page Styling

that custom MS Word style is independent from any of the styles being used by Clause9, i.e. you should avoid that the style is being already used by Clause9 (e.g., “Normal” or “Heading 1”). Note that Word allows you to create an entire cascade of styles being based on each other, i.e. that Style X is based on Style Y, while Style Y on its turn is based on Style Z, and style Z is perhaps based on style Normal.

your source DOCX file . For example, in MS Word for Windows this is shown as follows in the tool bar:

directly or indirectly “based on” a style
actually has different header/footers
Page Styling