# Get-OfficePdfCompliance

Gets a generated PDF document compliance readiness report.

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

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

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

**Outputs**

`OfficeIMO.Pdf.PdfComplianceReadinessReport` `OfficeIMO.Pdf.PdfComplianceProofReport`

**Source**

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

Gets a generated PDF document compliance readiness report.

## Syntax

```
Get-OfficePdfCompliance
[-Document <PdfDocument>]
[-ExternalArguments <String>]
[-ExternalDiagnostic <String>]
[-ExternalExecutablePath <String>]
[-ExternalExitCode <Int32>]
[-ExternalProfile <String>]
[-ExternalStatus <NotRun|Passed|Failed|Error>]
[-ExternalSuccessExitCode <Int32>]
[-ExternalValidation <PdfExternalValidationResult[]>]
[-ExternalValidator <VeraPdf|PdfUaValidator|Mustang|Custom|PdfXValidator>]
[-ExternalValidatorName <String>]
[-ExternalValidatorVersion <String>]
[-Profile <PdfComplianceProfile>]
[-Proof]
[<CommonParameters>]
```

[#](#member-b8ac4309feb1789a5dc8137a)

Parameter set: `Document`

```
Get-OfficePdfCompliance
[-ExternalArguments <String>]
[-ExternalDiagnostic <String>]
[-ExternalExecutablePath <String>]
[-ExternalExitCode <Int32>]
[-ExternalProfile <String>]
[-ExternalStatus <NotRun|Passed|Failed|Error>]
[-ExternalSuccessExitCode <Int32>]
[-ExternalValidation <PdfExternalValidationResult[]>]
[-ExternalValidator <VeraPdf|PdfUaValidator|Mustang|Custom|PdfXValidator>]
[-ExternalValidatorName <String>]
[-ExternalValidatorVersion <String>]
[-IgnorePermissionRestrictions]
[-Password <String>]
[-Path] <String>
-Profile <PdfComplianceProfile>
[-Proof]
[<CommonParameters>]
```

[#](#member-15f034813a8473107163ee48)

Parameter set: `Path`

## Examples

### Check generated PDF compliance readiness.

```powershell
$pdf = New-OfficePdf {
    Set-OfficePdfCompliance -Profile PdfA3B -Groundwork
    Add-OfficePdfHeading -Text 'Compliance readiness'
} -NoSave
$pdf | Get-OfficePdfCompliance -Profile PdfA3B
```

Returns the OfficeIMO.Pdf readiness report before saving.

## Parameters

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

Generated PDF document to assess outside the DSL context.

**-ExternalArguments String optional**

External validator command-line arguments recorded in the proof evidence.

**-ExternalDiagnostic String optional**

Human-readable external validation diagnostic.

**-ExternalExecutablePath String optional**

External validator executable path recorded in the proof evidence.

**-ExternalExitCode Int32 optional**

External validator process exit code. When provided, status is inferred from -ExternalSuccessExitCode.

**-ExternalProfile String optional**

Profile string reported by the external validator, for example PDF/A-3b.

**-ExternalStatus PdfExternalValidationStatus optional**

Unbound external validator status to attach when -ExternalValidator is provided.

Possible values: `NotRun`, `Passed`, `Failed`, `Error`

**-ExternalSuccessExitCode Int32 optional**

External validator process exit code that means success.

**-ExternalValidation PdfExternalValidationResult[] optional**

Artifact-bound results produced by the external validation lane. Use PdfExternalValidationResult.PassedForArtifact or FromExitCodeForArtifact with the exact validated bytes.

**-ExternalValidator PdfExternalValidatorKind[] optional**

External validator families whose result should be attached to the proof report.

Possible values: `VeraPdf`, `PdfUaValidator`, `Mustang`, `Custom`, `PdfXValidator`

**-ExternalValidatorName String optional**

Human-readable external validator name.

**-ExternalValidatorVersion String optional**

External validator version recorded in the artifact-bound proof evidence.

**-Profile PdfComplianceProfile required in Path**

Compliance profile to assess. When omitted, the document's configured profile is used.

Possible values: `PdfA2B`, `PdfA2U`, `PdfA2A`, `PdfA3B`, `PdfA3U`, `PdfA3A`, `PdfUa1`, `FacturX`, `Zugferd`, `PdfA4`, `PdfA4E`, `PdfA4F`, `PdfUa2`, `PdfX1A2003`, `PdfX4`

**-Proof SwitchParameter optional**

Return a proof report that combines readiness with required external validator evidence placeholders.

**-IgnorePermissionRestrictions SwitchParameter optionalsets: Path**

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

**-Password String optionalsets: Path**

Password used to inspect a Standard password-encrypted PDF.

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

Existing PDF file path to assess after generation.

## 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:082DFD95114E828249AD9B3073E756F49EC38B271DC51AB2236FD20954A993B2 -->
