# Read-OfficePdf

Reads a PDF into OfficeIMO.Pdf's canonical structured document model.

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**

`OfficeIMO.Pdf.PdfDocument` `System.String`

**Outputs**

`OfficeIMO.Pdf.PdfDocumentReadResult`

**Source**

[ReadOfficePdfCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Pdf/ReadOfficePdfCommand.cs#L20) 

Reads a PDF into OfficeIMO.Pdf's canonical structured document model.

## Syntax

```
Read-OfficePdf
[-IgnorePermissionRestrictions]
[-Options <PdfReadOptions>]
[-PageRange <String>]
[-Password <String>]
[-Path] <String>
[-Profile <Fast|Structured>]
[<CommonParameters>]
```

[#](#method-read-officepdf-switchparameter-pdfreadoptions-string-string-string-pdfreadprofile)

Parameter set: `Path`

```
Read-OfficePdf
-Document <PdfDocument>
[-Options <PdfReadOptions>]
[-PageRange <String>]
[-Profile <Fast|Structured>]
[<CommonParameters>]
```

[#](#method-read-officepdf-pdfdocument-pdfreadoptions-string-pdfreadprofile)

Parameter set: `Document`

## Examples

### Read paragraphs and tables from a PDF.

```powershell
$logical = Read-OfficePdf -Path .\Examples\Documents\Report.pdf -Profile Structured
foreach ($page in $logical.Pages) {
    $page.Paragraphs | ForEach-Object { $_.Text }
    $page.Tables | Select-Object @{ Name = 'Page'; Expression = { $page.PageNumber } }, @{ Name = 'Rows'; Expression = { $_.Rows.Count } }
}
```

Returns the canonical OfficeIMO.Pdf result, including typed pages, paragraphs, tables, images, and diagnostics.

## Parameters

**-IgnorePermissionRestrictions SwitchParameter optionalsets: Path**

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

**-Options PdfReadOptions optional**

Advanced structured-read settings. Friendly parameters override the corresponding setting when explicitly supplied.

**-PageRange String optional**

Optional page ranges such as 1-3,5.

**-Password String optionalsets: Path**

Password used to open a Standard password-encrypted PDF.

**-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePathsets: Path**

PDF file path.

**-Profile PdfReadProfile optional**

Semantic reconstruction profile. Structured is the default; Fast omits optional document-wide enrichment.

Possible values: `Fast`, `Structured`

**-Document PdfDocument requiredpipeline: True (ByValue)sets: Document**

An existing OfficeIMO.Pdf document, such as output from Get-OfficePdf.

## 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:D63959E9902B33FA4977231D95A5116BBB1CFEDFD2BEEF4499738462B2257550 -->
