API Reference
Cmdlet
Add-OfficePdfBookmark
Adds a named bookmark at the current generated PDF flow position.
Remarks
Adds a named bookmark at the current generated PDF flow position.
Examples
Add a bookmark target and link to it.
PS>
New-OfficePdf -Path .\Examples\Documents\PdfBookmarks.pdf {
Add-OfficePdfText -Run @(
@{ Text = 'Jump to details'; LinkDestinationName = 'details'; Color = '#2563EB'; Underline = $true }
)
Add-OfficePdfPageBreak
Add-OfficePdfBookmark -Name 'details'
Add-OfficePdfHeading -Text 'Details' -Level 2
}
Creates an internal link target inside the generated PDF.
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.
Syntax
Add-OfficePdfBookmark -Name <String> [-PassThru] [<CommonParameters>]#Parameter set:
ContextParameters
- Name String
- Bookmark name.
- PassThru SwitchParameter
- Emit the updated document.
Outputs
OfficeIMO.Pdf.PdfDocument
Add-OfficePdfBookmark -Document <PdfDocument> -Name <String> [-PassThru] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document PdfDocument
- PDF document to update outside the DSL context.
- Name String
- Bookmark name.
- PassThru SwitchParameter
- Emit the updated document.
Outputs
OfficeIMO.Pdf.PdfDocument