Skip to content

Class FacturXDocumentBuilderFileExtensions

Extension methods related to using files with the FacturXDotNet.Generation.FacturX.FacturXDocumentBuilder.

Assembly: FacturXDotNet.dll
csharp
public static class FacturXDocumentBuilderFileExtensions

Methods

WithBasePdfFile(FacturXDocumentBuilder, string, string?)

Reads the base PDF file from the specified path.

csharp
public static FacturXDocumentBuilder WithBasePdfFile(this FacturXDocumentBuilder builder, string path, string? password = null)
Returns

FacturXDotNet.Generation.FacturX.FacturXDocumentBuilder: The builder itself, for chaining.

Parameters
TypeNameDescription
FacturXDotNet.Generation.FacturX.FacturXDocumentBuilderbuilderThe builder.
System.StringpathThe path to the PDF document.
System.StringpasswordThe password to open the PDF document.

WithXmpMetadataFile(FacturXDocumentBuilder, string)

Reads the XMP metadata file from the specified path.

csharp
public static FacturXDocumentBuilder WithXmpMetadataFile(this FacturXDocumentBuilder builder, string path)
Returns

FacturXDotNet.Generation.FacturX.FacturXDocumentBuilder: The builder itself, for chaining.

Parameters
TypeNameDescription
FacturXDotNet.Generation.FacturX.FacturXDocumentBuilderbuilderThe builder.
System.StringpathThe path to the XMP metadata file.

WithCrossIndustryInvoiceFile(FacturXDocumentBuilder, string, string?)

Reads the Cross-Industry Invoice file from the specified path.

csharp
public static FacturXDocumentBuilder WithCrossIndustryInvoiceFile(this FacturXDocumentBuilder builder, string path, string? ciiAttachmentName = null)
Returns

FacturXDotNet.Generation.FacturX.FacturXDocumentBuilder: The builder itself, for chaining.

Parameters
TypeNameDescription
FacturXDotNet.Generation.FacturX.FacturXDocumentBuilderbuilderThe builder.
System.StringpathThe path to the Cross-Industry Invoice XML file.
System.StringciiAttachmentNameThe name of the attachment containing the Cross-Industry Invoice XML file. If not specified, the default name 'factur-x.xml' will be used.

The tools are open source and released under the MIT License, feel free to use, modify, and share.