addBookmark
- addBibliography
- addBookmark
- addBreak
- addCaption
- addChart
- addCitation
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addIndex
- addLink
- addList
- addMathEquation
- addMergeField
- addOLE
- addOnlineVideo
- addPageNumber
- addRuby
- addShape
- addSimpleField
- addSource
- addStructuredDocumentTag
- addSVG
- addTab
- addTable
- addTableAuthorities
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordFragment
- addWordML
- embedHTML
- markEntry
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createDocx
- createDocxAndDownload
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- importChartStyle
- importHeadersAndFooters
- importListStyle
- importStyles
- importStylesWordDefault
- importTheme
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDecimalSymbol
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- setRTL
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- removeTemplateVariableImage
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
addBookmark
 TRIAL / ADVANCED / PREMIUM
TRIAL / ADVANCED / PREMIUM
                Inserts a bookmark into a Word document.
                            
                            Description
                        
                    
                            public addBookmark ( array $options )
                        
                    This method allows to insert bookmarks into a Word document.
This method must be called at least twice within a PHP script: one to open the bookmark tag (type start) and the other one to close it (type end).
One may link the generated bookmark with addLink or addCrossReference methods to facilitate the internal navigation through the Word document contents.
                            
                            Parameters
                        
                    options
The options array includes the following keys and values (required options are shown with yellow background):
| Key | Type | Description | 
|---|---|---|
| type | string | The bookmark type. Possible values are 'start' and 'end'. | 
| name | string | The name that you want to give to the corresponding bookmark. This is the parameter that should be used within the addLink method to link to the bookmarked content. | 
                            
                            Exceptions
                        
                    Lack of required parameters.
Missing start bookmark.
Incorrect type.
 
                 Log in
                                    Log in
                                 Contact
                                Contact
                             Forum
                                Forum
                            
 
         
                                