# Get-OfficePdfCompliance

Gets a generated PDF document compliance readiness report.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Pdf.PdfDocument` `System.String[]`

**Outputs**

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

**Source**

[GetOfficePdfComplianceCommand.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/GetOfficePdfComplianceCommand.cs#L22) 

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]
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Path] <String[]>
[-Profile <PdfComplianceProfile>]
[-Proof]
[<CommonParameters>]
```

[#](#member-e51cde495af4150bc288a983)

Parameter set: `Path`

```
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]
-LiteralPath <String[]>
[-LoadOptions <PdfLoadOptions>]
[-Password <SecureString>]
[-Profile <PdfComplianceProfile>]
[-Proof]
[<CommonParameters>]
```

[#](#member-10d5f00e6c4eea1a535bcfb5)

Parameter set: `LiteralPath`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Inspect PDF Signatures and Compliance](/docs/pswriteoffice/pdf-signatures-compliance/) Guide
  
  Collect signature structure, compliance, diagnostics, and rewrite-preservation evidence before accepting or transforming a PDF.
- [Convert to PDF/A](/docs/pdf/pdfa/) Guide
  
  Convert existing PDFs to PDF/A-2, PDF/A-3 or PDF/A-4, check readiness, and create archival PDF/A documents with OfficeIMO.Pdf and the CLI.

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

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

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

**-LoadOptions PdfLoadOptions optionalsets: Path, LiteralPath**

Native input loading policy.

**-Password SecureString optionalsets: Path, LiteralPath**

Password used to inspect a Standard password-encrypted PDF.

**-Path String[] requiredposition: 0sets: Path**

Existing PDF file path to assess after generation.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Literal input files.

## 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).

<!-- PowerForge markdown artifact sha256:E96A9A50A83B241B6C949BCBE62B8BB153E4A61024BE20443D79368A3B5D8710 -->
