Search Results for

    Show / Hide Table of Contents

    Class EmbedFileType

    Supported file types for embedding in PDF/A-3 compliant documents. Essential for creating invoice PDFs with structured data attachments.

    // Embed invoice XML (ZUGFeRD/Factur-X):
    var xmlConfig = new EmbedFileConfiguration(EmbedFileType.xml) {
        EmbedFileName = "invoice_2024.xml"
    };
    var embedPath = new EmbedFilePath("invoice.xml", xmlConfig);
    
    // Attach source PDF:
    var pdfConfig = new EmbedFileConfiguration(EmbedFileType.pdf);
    
    // Include logo image:
    var pngConfig = new EmbedFileConfiguration(EmbedFileType.png);

    XML for structured invoice data (ZUGFeRD/Factur-X)

    Only PDF/A-3 and PDF/A-4F support embedded files

    See: https://ironpdf.com/how-to/pdfa/

    Inheritance
    System.Object
    EmbedFileType
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public sealed class EmbedFileType : Enum

    The EmbedFileType enumeration in IronPDF declares the MIME class of a payload attached to a PDF/A-3 document.

    Part of the IronPdf namespace, members are pdf, png, and xml (3 total). EmbedFileConfiguration reads the value to tag each attachment correctly, which matters for ZUGFeRD invoices where the embedded XML must be discoverable by archival readers.

    See add and remove attachments for the embedding workflow.

    Fields

    pdf

    PDF file attachment. For including source documents, terms, or related PDFs.

    var config = new EmbedFileConfiguration(EmbedFileType.pdf) {
        AFDesc = "Original invoice"
    };
    Declaration
    public const EmbedFileType pdf
    Field Value
    Type Description
    EmbedFileType

    png

    PNG image file. For logos, signatures, or visual elements.

    var config = new EmbedFileConfiguration(EmbedFileType.png) {
        EmbedFileName = "company_logo.png"
    };
    Declaration
    public const EmbedFileType png
    Field Value
    Type Description
    EmbedFileType

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    xml

    XML file for structured invoice data (ZUGFeRD/Factur-X). Machine-readable invoice information for automated processing.

    var config = new EmbedFileConfiguration(EmbedFileType.xml) {
        ConformanceLevel = ConformanceLevel.EN16931
    };
    Declaration
    public const EmbedFileType xml
    Field Value
    Type Description
    EmbedFileType
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget