Insert-PageBreak.ps1


posted by Niklas Goude
03-15-2009

Downloads: 233
File size: 1.8kB
Views: 1,548
Insert-PageBreak.ps1

DESCRIPTION

NAME: Insert-PageBreak.ps1
Inserts a PageBreak after Paragraphs or
defined Heading types.

PARAMETERS:
-Document              Path to Word Document (Required)
-Heading                 Heading to add PageBreak before (Optional)
-help                       Prints the HelpFile (Optional)

SYNTAX:

Insert-PageBreak.ps1 -Document C:\Documents\Word.doc

Inserts a PageBreak for each Paragraph in the Document.


Insert-PageBreak.ps1 -Document C:\Documents\Word.doc -Heading "Heading 1"

Inserts a PageBreak for each "Heading 1" in the Word Document


Insert-PageBreak.ps1 -Document C:\Documents\Word.doc -Heading "Heading 2"

Inserts a PageBreak for each "Heading 2" in the Word Document


Insert-PageBreak.ps1 -help

Displays the help topic for the script

Read more about the Script Here

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.