Friday, June 13, 2008

Powering into OpenXML with PowerShell

OpenXML Developer - Open XML Power Tools released

“The Open XML Power Tools, an open source project on Codeplex to create PowerShell cmdlets for automating Open XML document management tasks, has been released on Codeplex at http://www.codeplex.com/PowerTools. Non-developers can use these cmdlets to build PowerShell scripts that automate processes such as adding a digital signature or watermark to documents, removing metadata, or updating Custom XML parts. The first release includes these cmdlets:

  • Accept-OpenXmlChange
  • Add-OpenXmlContent
  • Add-OpenXmlDigitalSignature
  • Add-OpenXmlPicture
  • Export-OpenXmlSpreadsheet
  • Export-OpenXmlToHtml
  • Lock-OpenXmlDocument
  • Remove-OpenXmlComment
  • Set-OpenXmlFooter
  • Set-OpenXmlHeader

Open XML developers will find these cmdlets useful as source-code samples for all of the above topics, and also as samples of how to use Microsoft's Open XML Formats SDK (which was used for the development of the power tools). For detailed information about the Open XML Power Tools see Eric White's blog post "Processing Open XML documents server-side using PowerShell.”

A nice starting point for playing in your OpenXML with PowerShell

No comments: