Giter Site home page Giter Site logo

shanehoey / worddoc Goto Github PK

View Code? Open in Web Editor NEW
9.0 6.0 2.0 3.96 MB

Create Documentation directly from PowerShell. Simple Installation from PowerShell Gallery, and as long as you have MS Word Installed you will be creating .docx, .pdf, .html files in minutes!

Home Page: https://shanehoey.github.io/worddoc/

License: MIT License

PowerShell 100.00%
powershell microsoft-word microsoft-office

worddoc's Introduction

This project is no longer under development, if you are wanting to create documentation from powershell, try using markdown instead, along with pandoc to convert to word documents.

WordDoc - Create Word Documents directly from PowerShell

This project's documentation is hosted on Git Pages https://worddoc.shanehoey.com/

The latest release is hosted on PowerShell Gallery https://www.powershellgallery.com/packages/WordDoc/

Distributed under the MIT License

This project is distrubuted under the MIT License. The license can be viewed here

Project Notes

This Project contains Powershell sample scripts that can be reused / adapted. Please do not just execute scripts without understanding what each and every line will do.

WordDoc PowerShell Module Word Doc is a PowerShell Module that helps you create documents directly from powershell. This simple module enables your to quickly and effortlessly create Word Documents directly from Powershell.

Please Note: This project is hosted on GitHib, and full documentation is available on GitPages.

Highlights include

  • Generate a Word Documents directly from PowerShell
  • Create Tables from PowerShell Objects
  • Update page title, author etc
  • Save as PDF, WordDoc, HTML and more

Installation (windows 10)

Installation instructions for other versions of windows available here

install-module -name worddoc -scope currentuser

Example Usage

A simple example to show you how to create a word document, create a cover page, Table of Contents, add some word text, and add some objects as a word table.

Import-Module Worddoc 
New-WordInstance 
New-WordDocument
Add-WordCoverPage -CoverPage Banded 
Add-WordText -text 'Table of Contents' -WDBuiltinStyle wdStyleTitle 
Add-WordTOC
Add-WordBreak -breaktype NewPage 
Add-WordText -text 'Heading1' -WDBuiltinStyle wdStyleHeading1 
$a = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' 
Add-WordText -text $a -WDBuiltinStyle wdStyleNormal
$s = get-service | select name,status
Add-WordTable -object $s
Save-WordDocument 
Close-WordDocument
Close-WordInstance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.