November, 2008

  • Eric White's Blog

    Detailed Description of PowerTools for Open XML cmdlets


    This post contains a detailed description of each of the PowerTools for Open XML cmdlets.  For an overview and screen cast of PowerTools for Open XML, see Automated Processing of Open XML Documents using PowerShell.  For more information on the cmdlets, see:

    This blog is inactive.
    New blog:

    Blog TOC

    The Accept-OpenXmlTextChange cmdlet processes documents with text revisions (change tracking elements), by accepting all the text changes performed on the document.


    The Add-OpenXmlContent cmdlet injects XML markup into a specified custom XML part from a Wordprocessing document


    The Add-OpenXmlDigitalSignature cmdlet uses a digital certificate to digitally sign a Wordprocessing document.


    The Add-OpenXmlDocumentIndex cmdlet creates an index based on the index references found in the document. The index will be created at the end of the document.


    The Add-OpenXmlDocumentTOC cmdlet creates a Table of Contents based on the headings found it in the document. The TOC will be created at the end of the document.


    The Add-OpenXmlPicture cmdlet inserts a picture at a specific location inside an OpenXML document. The picture will be stored inside the document as an embedded resource. Picture location is specified by an XPath query expression.


    The Add-OpenXmlDocumentTOA cmdlet creates a Table of Authorities based on the citations (references or authorities) found it in the document. The TOA will be created at the end of the document.


    The Add-OpenXmlDocumentTOF cmdlet creates a Table of Figures based on the figures found it in the document. The TOF will be created at the end of the document.


    The Export-OpenXmlSpreadsheet gets the public properties from any objects and generates a spreadsheet with columns showing for each property. Optionally, a chart can be created from a subset of those properties.


    The Export-OpenXmlToHtml cmdlet transforms the content of Wordprocessing documents into an html file by applying an XSLT transformation over the main content and extracting images from the package to a given location.


    The Export-OpenXmlWordprocessing uses plain text to create a Wordprocessing document.


    The Get-OpenXmlBackground cmdlet extracts the background (color or image) from a document according to the parameters Image or Color.


    The Get-OpenXmlComment extracts all the comments from a document, and return all of them in a XDocument


    The Get-OpenXmlCustomXmlData cmdlet gets the first customXml part that matches the given name and returns it as an XDocument object.


    The Get-OpenXmlDigitalSignature cmdlet returns a summary of digital signatures present in the Wordprocessing document


    The Get-OpenXmlDocument cmdlet returns an OpenXML document object for each document file. The actual object will depend on the type of document in the file. For example, if it is a spreadsheet, the object will be a SpreadsheetDocument, which is derived from OpenXMLDocument.


    The Get-OpenXmlFooter cmdlet retrieves all the specified footer parts from a document and returns an XDocument array of those footers. An object is returned for the specified footer in each Section of the document.


    The Get-OpenXmlHeader retrieves all the existing header parts from a document. The execution returns an XDocument array of all the header parts found in the document.


    The Get-OpenXmlStyle cmdlet retrieves the styles definition part from a WordprocessingML or SpreadsheetML document and returns an XDocument object containing the styles content.


    The Get-OpenXmlTheme cmdlet extracts the whole theme part from a Wordprocessing document as a thmx file (with media resources embedded). A Package object (System.IO.Packaging.Package) is returned that corresponds to the theme file.


    The Get-OpenXmlWatermark cmdlet retrieves the text of the document's watermark.


    The Lock-OpenXmlDocument cmdlet sets a lock inside one or more Wordprocessing documents to prevent them from being edited.


    The Merge-OpenXmlDocument cmdlet creates a new Open XML word processing document from ranges of paragraphs in one or more existing documents. 


    The Remove-OpenXmlComment cmdlet locates and removes comment contents and references from Wordprocessing documents.


    The Remove-OpenXmlDigitalSignature cmdlet removes digital signatures from a Wordprocessing document


    The Select-OpenXmlString cmdlet searchs for paragraphs in a word processing document.  You can search based on style name or on the contents of paragraphs.


    The Set-OpenXmlBackground cmdlet changes the background image or background color of a Wordprocessing document.


    The Set-OpenXmlContentFormat cmdlet inserts markup containing format to be applied on a given run or paragraph. Format location is specified as an xpath query.


    The Set-OpenXmlContentStyle cmdlet inserts inserts markup containing the style format to be applied on a given run or paragraph. Format location is specified as an xpath query.


    The Set-OpenXmlCustomXmlData cmdlet sets or replaces the specified custom XML part in the document.


    The Set-OpenXmlFooter cmdlet inserts footer parts into all sections of a Wordprocessing document.


    The Set-OpenXmlHeader cmdlet inserts header parts into all sections of a Wordprocessing document.


    The Set-OpenXmlStyle cmdlet replaces the style library in a WordprocessingML or SpreadsheetML document.


    The Set-OpenXmlTheme cmdlet sets the current theme in a Wordprocessing document to the specified theme.


    The Set-OpenXmlWatermark cmdlet adds watermark text to the background of a document.  If the DiagonalOrientation parameter is specified, then the text will be in a diagonal orientation rather than horizontal.

Page 4 of 10 (10 items) «23456»
Page 1 of 1 (10 items)