XML API - pdx:importStyles
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- addBookmark
- addBreak
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addStructuredDocumentTag
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteBlock
- modifyInputFields
- processTemplate
- rawSearchAndReplace
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
pdx:importStyles
Imports Word styles from an external Word document.
Note
You are reading the XML API documentation. For the PHP API method please go to importStyles.
Description
Element definition
This element allows to import Word styles from an external Word document.
You may replace the whole stylesheet or just import a certain list of predefined styles.
If you need to know which styles are available for importation from an external Word document you may use the parseStyles element.
Attributes and sub-elements
src
The path to the Word document from which you want to import the styles.
type
The available options are:
- ‘replace’ if you wish to overwrite the whole stylesheet
- ‘merge’ if you only want to import the styles listed in the $myStyles array
name
The name of the style that you wish to import.
styleIdentifier
The possible values are:
- ’styleName’ (default value) if you wish to identify the styles included in $myStyles array by their name.
- ’styleID’ if you want to use their id.