Cmdlet
Set-OfficePdfElectronicInvoice
Configures Factur-X/ZUGFeRD e-invoice groundwork on a generated PDF document.
Syntax
Set-OfficePdfElectronicInvoice [-ConformanceLevel <String>] [-Description <String>] [-PassThru] [-Path] <String> [-Profile <PdfComplianceProfile>] [-Relationship <PdfAssociatedFileRelationship>] [-Version <String>] [<CommonParameters>]#Parameter set:
ContextSet-OfficePdfElectronicInvoice [-ConformanceLevel <String>] [-Description <String>] -Document <PdfDocument> [-PassThru] [-Path] <String> [-Profile <PdfComplianceProfile>] [-Relationship <PdfAssociatedFileRelationship>] [-Version <String>] [<CommonParameters>]#Parameter set:
DocumentExamples
Attach CII XML as a Factur-X payload.
New-OfficePdf -Path .\Examples\Documents\Invoice.pdf {
Set-OfficePdfElectronicInvoice -Path .\Examples\Documents\factur-x.xml -Profile FacturX
Add-OfficePdfHeading -Text 'Invoice'
}Embeds the XML as canonical factur-x.xml, emits matching XMP metadata, and configures PDF/A-3 groundwork.
Parameters
- -ConformanceLevel String
- Factur-X/ZUGFeRD conformance level written to XMP metadata.
- -Description String
- Optional human-readable attachment description.
- -PassThru SwitchParameter
- Emit the updated document.
- -Path String
- CrossIndustryInvoice XML file path to embed as canonical factur-x.xml.
- -Profile PdfComplianceProfile
- E-invoice profile to prepare.
- Possible values:
PdfA2B,PdfA2U,PdfA2A,PdfA3B,PdfA3U,PdfA3A,PdfUa1,FacturX,Zugferd,PdfA4,PdfA4E,PdfA4F,PdfUa2,PdfX1A2003,PdfX4 - -Relationship PdfAssociatedFileRelationship
- Associated-file relationship for the embedded XML payload.
- Possible values:
Unspecified,Source,Data,Alternative,Supplement,C2paManifest - -Version String
- Factur-X/ZUGFeRD schema version written to XMP metadata.
- -Document PdfDocument
- Compatibility parameter. Electronic-invoice 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.