Cmdlet
Add-OfficePdfSpacer
Adds invisible vertical spacing to a generated PDF document.
Syntax
Examples
Add vertical rhythm between sections.
New-OfficePdf -Path .\Examples\Documents\PdfSpacer.pdf {
Add-OfficePdfHeading -Text 'Summary'
Add-OfficePdfParagraph -Text 'First block.'
Add-OfficePdfSpacer -Height 18
Add-OfficePdfParagraph -Text 'Second block after additional spacing.'
}Adds whitespace without adding visible content.
Parameters
- -Height Double
- Vertical space height in PDF points.
- -PassThru SwitchParameter
- Emit the updated document.
- -Document PdfDocument
- PDF document to update outside the DSL context.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.