Table of Contents

Method Convert

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

Convert(IEnumerable<string>, PdfGenerationOptions)

Converts one or more image files into a single PDF attachment, with each image on its own page.

public static Attachment Convert(IEnumerable<string> imagePaths, PdfGenerationOptions options = null)

Parameters

imagePaths IEnumerable<string>

Paths to the source image files.

options PdfGenerationOptions

Optional PDF generation options. Uses defaults if null.

Returns

Attachment

A new Attachment containing the generated PDF.

Convert(IEnumerable<Attachment>, PdfGenerationOptions)

Converts one or more image attachments into a single PDF attachment, with each image on its own page.

public static Attachment Convert(IEnumerable<Attachment> images, PdfGenerationOptions options = null)

Parameters

images IEnumerable<Attachment>

The source image attachments.

options PdfGenerationOptions

Optional PDF generation options. Uses defaults if null.

Returns

Attachment

A new Attachment containing the generated PDF.

Share