Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Export-OfficeInvoicePdf

Module PSWriteOffice
Inputs
OfficeIMO.Invoicing.Invoice
Outputs
System.IO.FileInfo

Creates a visible PDF and embedded invoice XML from the same captured model.

Syntax

Export-OfficeInvoicePdf [-Force] -Invoice <Invoice> [-PassThru] [-Path] <String> [-PdfOptions <PdfOptions>] [-Profile <InvoiceProfile>] [-SpecificationRelease <InvoiceSpecificationRelease>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Creates a visible PDF and embedded invoice XML from the same captured model.

$invoice | Export-OfficeInvoicePdf -Path ./invoice.pdf

Parameters

-Force SwitchParameter optional
Replace an existing destination.
-Invoice Invoice requiredpipeline: True (ByValue)
Editable invoice.
-PassThru SwitchParameter optional
Return the saved file.
-Path String requiredposition: 0
Destination PDF filename.
-PdfOptions PdfOptions optional
Optional existing PDF rendering options.
-Profile InvoiceProfile optional
Embedded invoice profile.
Possible values: Minimum, BasicWithoutLines, Basic, En16931, Extended, XRechnung, PeppolBis, ExtendedCtcFr
-SpecificationRelease InvoiceSpecificationRelease optional
Exact supported CII specification for the embedded invoice.
Possible values: En16931_1_3_16, FacturX_1_09_2_Zugferd_2_5_2, XRechnung_3_0_2_2026_08_31, PeppolBis_3_0_21

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.