# Get-OfficePdf

Opens an existing PDF as an OfficeIMO.Pdf document.

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.PdfDocument`

**Source**

[GetOfficePdfCommand.cs:17](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfCommand.cs#L17) 

Opens an existing PDF as an OfficeIMO.Pdf document.

## Syntax

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

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

Parameter set: `All Parameter Sets`

## Examples

### Open a PDF for OfficeIMO.Pdf operations.

```powershell
$pdf = Get-OfficePdf -Path .\Examples\Documents\Report.pdf
$pdf.Read().Text | Select-Object -First 1
```

Returns the OfficeIMO.Pdf document object for advanced readback or operations.

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optional**

After successful password authentication, explicitly ignore owner-imposed usage restrictions.

**-Password String optional**

Password used to open a Standard password-encrypted PDF for readback operations.

**-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:5D6E5E8EB3B3A2E5FDB3E25FCDFD39FFBC2D598EFD536691FFF2C8E4F2002D4A -->
