# Get-OfficePdfInfo

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

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String`

**Outputs**

`OfficeIMO.Pdf.PdfDocumentInfo`

**Source**

[GetOfficePdfInfoCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfInfoCommand.cs#L22) 

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

## Syntax

```
Get-OfficePdfInfo
[-IgnorePermissionRestrictions]
[-Password <String>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officepdfinfo-switchparameter-string-string)

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

### Inspect a generated PDF.

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:2C149C1170D46D00907D38C673DC08322A30A80BEEE9B8249A63DA02F588330F -->
