Table of Contents

Method AddTextOverlays

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

AddTextOverlays(Attachment, IEnumerable<PageTextOverlay>, PdfSaveOptions)

Adds invisible text overlays to multiple pages of a PDF attachment in a single operation using precomputed PageElement instances. No OCR is performed.

public static Attachment AddTextOverlays(Attachment source, IEnumerable<PageTextOverlay> overlays, PdfSaveOptions saveOptions = PdfSaveOptions.None)

Parameters

source Attachment

The source PDF attachment to modify.

overlays IEnumerable<PageTextOverlay>

A collection of PageTextOverlay entries, each associating a page index with its text layout.

saveOptions PdfSaveOptions

Options controlling how the modified PDF is written. Default: full rewrite.

Returns

Attachment

A new Attachment containing the modified PDF.

Exceptions

ArgumentNullException

source or overlays is null.

Share