威信棋牌官网下载

XMLAPI documentation

XMLAPI documentation

To generate a Word document, you must activate the support for ZipArchive and XSLT in PHP 5

You will find in this section a complete list of the methods included in the latest version of the phpdocx library.

威信棋牌官网下载Here we include a brief description of each method for your convenience:

Layout and general
  • addBackgroundImage

    Inserts a background image into the Word document

  • addFooter

    威信棋牌官网下载Inserts footers into the Word document

  • addHeader

    威信棋牌官网下载Inserts headers into the Word document

  • addLineNumbering

    威信棋牌官网下载Sets the line numbering configuration of the current Word document

  • addMacroFromDoc

    Imports a macro from an existing Word document into the current document

  • addPageBorders

    威信棋牌官网下载Inserts page borders into the Word document

  • addProperties

    威信棋牌官网下载Modifies the properties of the Word document

  • addSection

    威信棋牌官网下载Adds a new section to the Word document

  • createCharacterStyle

    Creates a character style to be used in combination with the addText method

  • createListStyle

    Creates a custom list style to use it in combination with the addList and embedHTML methods

  • createParagraphStyle

    威信棋牌官网下载Creates a paragraph style to be used in combination with the addText method

  • docxSettings

    Overwrites the general settings of the current Word document

  • importHeadersAndFooters

    Imports headers and footers from an external Word document

  • importListStyle

    威信棋牌官网下载Imports a list style from an external Word document

  • importStyles

    Imports Word styles from an external Word document

  • modifyPageLayout

    Modifies the layout properties of the Word document

  • parseStyles

    Generates a Word document with all the available Word styles

  • removeFooters

    Removes footers into the Word document

  • removeHeaders

    威信棋牌官网下载Removes headers into the Word document

  • setBackgroundColor

    威信棋牌官网下载Sets background color of the Word document

  • setDefaultFont

    Sets the default font for the whole Word document

  • setDocumentDefaultStyles

    威信棋牌官网下载Sets the default styles for the whole Word document

  • setEncodeUTF8

    Enforces UTF-8 encoding of the Word document contents

  • setLanguage

    Sets the default language of the Word document

  • setMarkAsFinal

    Marks the resulting Word document as final

Word content
  • addBookmark

    Inserts a bookmarks into the Word document

  • addBreak

    Inserts a line/column/page break into the Word document

  • addChart

    Inserts a chart into the Word document

  • addComment

    Adds a Word comment to the current Word document

  • addCrossReference

    威信棋牌官网下载Inserts a cross-reference into the Word document

  • addDateAndHour

    Allows to insert the current date and/or hour in different formats

  • addEndnote

    Inserts an endnote into the Word document

  • addExternalFile

    Adds an external DOCX, HTML, MHT, RTF or TXT file

  • addFootnote

    威信棋牌官网下载Inserts a footnote into the Word document

  • addFormElement

    Inserts form elements into the Word document

  • addHeading

    Inserts a heading into the Word document

  • addImage

    威信棋牌官网下载Inserts an image into the Word document

  • addLink

    Inserts a link into the Word document

  • addList

    Inserts (nested) lists into the Word document

  • addMathEquation

    威信棋牌官网下载Imports a math equation from another Word document or inserrts a math equation in OMML or MathML format

  • addMergeField

    Adds a merge field to the Word document

  • addOnlineVideo

    Adds an online video to the Word document

  • addPageNumber

    Inserts the current page number into the Word document

  • addShape

    威信棋牌官网下载Inserts different types of shapes into a Word document

  • addSimpleField

    Adds a simple field to your Word document

  • addStructuredDocumentTag

    Inserts different types of Structured Document Tags into the Word document

  • addTable

    Inserts a table into a Word document

  • addTableContents

    威信棋牌官网下载Inserts a Table of Contents (TOC) into the Word document

  • addTableFigures

    威信棋牌官网下载Inserts a Table of Figures into the Word document

  • addText

    Inserts a paragraph into a Word document

  • addTextBox

    Inserts a Text Box in the Word document

  • addWordML

    威信棋牌官网下载Inserts raw WordML code into the Word document

  • embedHTML

    Inserts HTML content into the Word document

Templates
Format conversion
  • enableRepairMode

    威信棋牌官网下载Enables repair features to fix common issues when working with LibreOffice

  • transformDocument

    Transforms DOCX documents into another formats (PDF, HTML, XHTML, DOC, RTF, PNG, TXT)

DOCXPath
DOCXUtilities
  • mergeDocx

    Merges two or more Word documents

  • parseCheckboxes

    Parses and ticks or unticks the checboxes included in a Word document

  • rawSearchAndReplace

    Searches and replaces texts in any XML file of the document

  • removeChapter

    威信棋牌官网下载Removes a whole chapter from a Word document

  • replaceChartData

    威信棋牌官网下载Replaces the data associated with a given chart

  • searchAndHighlight

    Searches for keywords within a Word document and highlights them

  • searchAndRemove

    Removes the paragraphs containing a given string of text

  • searchAndReplace

    威信棋牌官网下载Searches and replaces a given string of text in a Word document

  • setLineNumbering

    Modifies the line numbering properties of an existing Word document

  • watermarkDocx

    威信棋牌官网下载Inserts a watermark into a Word document

  • watermarkRemove

    Removes watermarks from a Word document

DOCXPathUtilities
PDFUtilities
  • mergePdf

    威信棋牌官网下载Merges two or more PDF documents

  • splitPdf

    Splits PDF documents

  • watermarkPdf

    威信棋牌官网下载Inserts a watermark into a PDF document

DOCXCustomizer
  • customizeWordContent

    威信棋牌官网下载Changes DOCX styles on the fly of new documents and templates

Cryptophpdocx
  • addPermProtection

    威信棋牌官网下载Adds editable regions of contents into the Word document

  • encryptDocx

    Encrypts (AES128) a Word document

  • encryptPDF

    威信棋牌官网下载Encrypts a PDF file

  • protectDocx

    威信棋牌官网下载Password protects the contents of a Word document

  • protectPDF

    Password protects the contents of a PDF document

  • removeProtection

    威信棋牌官网下载Removes the password protection from a Word document

Digital signature package