Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficePdfInfo

Module PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Pdf.PdfDocumentInfo

Gets PDF metadata, page information, forms, links, and structural flags.

Syntax

Get-OfficePdfInfo [-IgnorePermissionRestrictions] [-Password <String>] [-Path] <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

The returned OfficeIMO.Pdf inspection object is useful for validating generated artifacts, migration scripts, and existing PDFs before follow-up operations such as splitting, stamping, or metadata updates.

Examples

Authored help example

Inspect a generated PDF.

$info = Get-OfficePdfInfo -Path .\Report.pdf
$info.PageCount
$info.LinkUris

Reads page count and link information from the PDF.

Parameters

-IgnorePermissionRestrictions SwitchParameter optional
After successful password authentication, explicitly ignore owner-imposed usage restrictions.
-Password String optional
Password used to inspect a Standard password-encrypted PDF.
-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath
PDF file path.

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.