Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePdfAnnotation

Module
PSWriteOffice
Inputs
OfficeIMO.Pdf.PdfDocument System.String[]
Outputs
OfficeIMO.Pdf.PdfAnnotation

Gets page annotations and action evidence from a PDF.

Syntax

Get-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
[-LoadOptions <PdfLoadOptions>]
[-Page <Int32>]
[-Password <SecureString>]
[-Path] <String[]>
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
#
Parameter set: Path
Get-OfficePdfAnnotation
[-IgnorePermissionRestrictions]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Page <Int32>]
[-Password <SecureString>]
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
#
Parameter set: LiteralPath
Get-OfficePdfAnnotation
-Document <PdfDocument>
[-Page <Int32>]
[-Subtype <String>]
[-WithAction]
[<CommonParameters>]
#
Parameter set: Document

Examples

Example 1

Get-OfficePdfAnnotation -Path @('C:\Path')

Example 2

Get-OfficePdfAnnotation -Document 'Value'

Example 3

Get-OfficePdfAnnotation -LiteralPath @('C:\Path')

Parameters

-IgnorePermissionRestrictions SwitchParameter optionalsets: Path, LiteralPath
After successful password authentication, explicitly ignore owner-imposed usage restrictions.
-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath
Bounded input load settings.
-Page Int32 optional
Optional one-based page number filter.
-Password SecureString optionalsets: Path, LiteralPath
Password used to inspect a Standard password-encrypted PDF.
-Path String[] requiredposition: 0pipeline: True (ByValue)sets: Path
PDF input paths; supports wildcards.
-Subtype String optional
Optional annotation subtype filter such as Text, Link, Widget, or FreeText.
-WithAction SwitchParameter optional
Return only annotations with actions, additional actions, or chained actions.
-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Exact PDF paths, including literal brackets.
-Document PdfDocument requiredpipeline: True (ByValue)sets: Document
Caller-owned live PDF; inspection never disposes it.

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.