Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficePdfCompliance

Aliases: PdfCompliance
Namespace PSWriteOffice
Aliases
PdfCompliance
Inputs
OfficeIMO.Pdf.PdfDocument
Outputs
OfficeIMO.Pdf.PdfDocument

Sets generated PDF compliance profile and readiness groundwork.

Remarks

Sets generated PDF compliance profile and readiness groundwork.

Examples

Authored help example

Configure PDF/A groundwork before saving.

PS>


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

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.

Syntax

Set-OfficePdfCompliance [-Groundwork] [-Language <String>] [-PassThru] -Profile <PdfA2B> [<CommonParameters>]
#
Parameter set: Context

Parameters

Groundwork SwitchParameter optionalposition: namedpipeline: False
Configure common PDF/A or PDF/UA groundwork for the selected profile.
Language String optionalposition: namedpipeline: False
Catalog language used by compliance groundwork.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the updated document.
Profile PdfComplianceProfile requiredposition: namedpipeline: Falsevalues: 13
Requested generated PDF compliance profile.
Possible values: PdfA2B, PdfA2U, PdfA2A, PdfA3B, PdfA3U, PdfA3A, PdfUa1, FacturX, Zugferd, PdfA4, PdfA4E, PdfA4F, PdfUa2

Outputs

OfficeIMO.Pdf.PdfDocument

Set-OfficePdfCompliance -Document <PdfDocument> [-Groundwork] [-Language <String>] [-PassThru] -Profile <PdfA2B> [<CommonParameters>]
#
Parameter set: Document

Parameters

Document PdfDocument requiredposition: namedpipeline: True (ByValue)
Compatibility parameter. Compliance options must be declared inside New-OfficePdf with OfficeIMO 3.2.
Groundwork SwitchParameter optionalposition: namedpipeline: False
Configure common PDF/A or PDF/UA groundwork for the selected profile.
Language String optionalposition: namedpipeline: False
Catalog language used by compliance groundwork.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the updated document.
Profile PdfComplianceProfile requiredposition: namedpipeline: Falsevalues: 13
Requested generated PDF compliance profile.
Possible values: PdfA2B, PdfA2U, PdfA2A, PdfA3B, PdfA3U, PdfA3A, PdfUa1, FacturX, Zugferd, PdfA4, PdfA4E, PdfA4F, PdfUa2

Outputs

OfficeIMO.Pdf.PdfDocument