# Set-OfficePdfCompliance

Sets generated PDF compliance profile and readiness groundwork.

Cmdlet 

Aliases: PdfCompliance

**Module**

`PSWriteOffice`

**Aliases**

`PdfCompliance`

**Inputs**

`None`

**Source**

[SetOfficePdfComplianceCommand.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Pdf/SetOfficePdfComplianceCommand.cs#L21) 

Sets generated PDF compliance profile and readiness groundwork.

## Syntax

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

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

Parameter set: `Context`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

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

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

**-Profile PdfComplianceProfile requiredposition: 0**

Requested generated PDF compliance profile.

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

## 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:973428222EEB57FB3DCAEEC453E840E4E1FACC958B3FD1EEA4FE62C15CF38CC4 -->
