# Set-OfficePdfCompliance

Sets generated PDF compliance profile and readiness groundwork.

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 

Aliases: PdfCompliance

**Module**

`PSWriteOffice`

**Aliases**

`PdfCompliance`

**Inputs**

`OfficeIMO.Pdf.PdfDocument`

**Outputs**

`OfficeIMO.Pdf.PdfDocument`

**Source**

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

Sets generated PDF compliance profile and readiness groundwork.

## Syntax

```
Set-OfficePdfCompliance
[-Groundwork]
[-Language <String>]
[-PassThru]
-Profile <PdfComplianceProfile>
[<CommonParameters>]
```

[#](#method-set-officepdfcompliance-switchparameter-string-switchparameter-pdfcomplianceprofile)

Parameter set: `Context`

```
Set-OfficePdfCompliance
-Document <PdfDocument>
[-Groundwork]
[-Language <String>]
[-PassThru]
-Profile <PdfComplianceProfile>
[<CommonParameters>]
```

[#](#method-set-officepdfcompliance-pdfdocument-switchparameter-string-switchparameter-pdfcomplianceprofile)

Parameter set: `Document`

## Examples

### Configure PDF/A groundwork before saving.

```powershell
$path = '.\Examples\Documents\PdfCompliance.pdf'
New-OfficePdf -Path $path {
    Set-OfficePdfCompliance -Profile PdfA3B -Groundwork -Language 'en-US'
    Add-OfficePdfHeading -Text 'Compliance-ready report'
}
Get-OfficePdfCompliance -Path $path -Profile PdfA3B
```

Applies OfficeIMO.Pdf compliance groundwork during composition, saves the PDF, then inspects the saved file.

## Parameters

**-Groundwork SwitchParameter optional**

Configure common PDF/A or PDF/UA groundwork for the selected profile.

**-Language String optional**

Catalog language used by compliance groundwork.

**-PassThru SwitchParameter optional**

Emit the updated document.

**-Profile PdfComplianceProfile required**

Requested generated PDF compliance profile.

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

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

Compatibility parameter. Compliance options must be declared inside New-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:EC79DD3B3D6DE96EAD214567FEC9DFA72F47C9CFFE5DA7BB534B50B9A78F7F2D -->
