XML API - pdx:transformDocument
- 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:transformDocument
Transforms documents into other formats (DOCX, PDF, HTML, XHTML, DOC, RTF, PNG, TXT).
Note
You are reading the XML API documentation. For the PHP API method please go to transformDocument.
Description
Element definition
This method allows to transform a DOCX document, generated or not with phpdocx, into PDF, HTML, DOC, RTF, PNG and TXT preserving, as much as possible, the original formatting options.
You may find more info regarding this element in the Conversion plugin help section and in our Tutorial.
Attributes and sub-elements
src
Path to the DOCX that you want to convert to a different format.
target
Path to the resulting transformed document (.pdf, .html, .xhtml, .docx, .doc, .odt, .rtf, .png or .txt).