1+ # VMware Default Document Style
2+
3+ # Configure document options
4+ DocumentOption - EnableSectionNumbering - PageSize A4 - DefaultFont ' Arial' - MarginLeftAndRight 71 - MarginTopAndBottom 71 - Orientation $Orientation
5+
6+ # Configure Heading and Font Styles
7+ Style - Name ' Title' - Size 24 - Color ' 485969' - Align Center
8+ Style - Name ' Title 2' - Size 18 - Color ' 006A91' - Align Center
9+ Style - Name ' Title 3' - Size 12 - Color ' 006A91' - Align Left
10+ Style - Name ' Heading 1' - Size 16 - Color ' 006A91'
11+ Style - Name ' Heading 2' - Size 14 - Color ' 006A91'
12+ Style - Name ' Heading 3' - Size 12 - Color ' 006A91'
13+ Style - Name ' Heading 4' - Size 11 - Color ' 006A91'
14+ Style - Name ' Heading 5' - Size 10 - Color ' 006A91'
15+ Style - Name ' Normal' - Size 10 - Color ' 565656' - Default
16+ Style - Name ' TOC' - Size 16 - Color ' 006A91'
17+ Style - Name ' TableDefaultHeading' - Size 10 - Color ' FAFAFA' - BackgroundColor ' 485969'
18+ Style - Name ' TableDefaultRow' - Size 10 - Color ' 565656'
19+ Style - Name ' Critical' - Size 10 - BackgroundColor ' F5DBD9'
20+ Style - Name ' Warning' - Size 10 - BackgroundColor ' FEF3B5'
21+ Style - Name ' Info' - Size 10 - BackgroundColor ' E1F1F6'
22+ Style - Name ' OK' - Size 10 - BackgroundColor ' DFF0D0'
23+
24+ # Configure Table Styles
25+ $TableDefaultProperties = @ {
26+ Id = ' TableDefault'
27+ HeaderStyle = ' TableDefaultHeading'
28+ RowStyle = ' TableDefaultRow'
29+ BorderColor = ' 485969'
30+ Align = ' Left'
31+ BorderWidth = 0.25
32+ PaddingTop = 1
33+ PaddingBottom = 1.5
34+ PaddingLeft = 2
35+ PaddingRight = 2
36+ }
37+
38+ TableStyle @TableDefaultProperties - Default
39+ TableStyle - Id ' Borderless' - BorderWidth 0
40+
41+ # VMware Cover Page Layout
42+ # Set position of report titles and information based on page orientation
43+ if ($Orientation -eq ' Portrait' ) {
44+ BlankLine - Count 11
45+ $LineCount = 30
46+ } else {
47+ BlankLine - Count 7
48+ $LineCount = 20
49+ }
50+
51+ # Add Report Name
52+ Paragraph - Style Title $ReportConfig.Report.Name
53+
54+ if ($AsBuiltConfig.Company.FullName ) {
55+ # Add Company Name if specified
56+ Paragraph - Style Title2 $AsBuiltConfig.Company.FullName
57+ BlankLine - Count $LineCount
58+ } else {
59+ BlankLine - Count ($LineCount + 1 )
60+ }
61+ Table - Name ' Cover Page' - List - Style Borderless - Width 0 - Hashtable ([Ordered ] @ {
62+ ' Author:' = $AsBuiltConfig.Report.Author
63+ ' Date:' = (Get-Date ).ToLongDateString()
64+ ' Version:' = $ReportConfig.Report.Version
65+ })
66+ PageBreak
67+
68+ # Add Table of Contents
69+ TOC - Name ' Table of Contents'
70+ PageBreak
0 commit comments