Table of Contents

Method GetEmbeddedFiles

Namespace
LMKit.Document.Pdf
Assembly
LM-Kit.NET.dll

GetEmbeddedFiles(Attachment, CancellationToken)

Returns the files embedded in a PDF's attachment / associated-files tree, each with its file name, guessed MIME type, and decoded bytes (any compression is already inflated). This is how a hybrid e-invoice's structured payload is retrieved: a Factur-X / ZUGFeRD PDF/A-3 carries its CII XML as an embedded file (commonly named factur-x.xml or zugferd-invoice.xml). Empty when the PDF carries no attachments.

public static IReadOnlyList<EmbeddedPdfFile> GetEmbeddedFiles(Attachment source, CancellationToken cancellationToken = default)

Parameters

source Attachment

The source PDF attachment.

cancellationToken CancellationToken

Cancels the operation.

Returns

IReadOnlyList<EmbeddedPdfFile>
Share