Table of Contents

Method ConvertToFile

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

ConvertToFile(IEnumerable<string>, string, PdfGenerationOptions)

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

public static void ConvertToFile(IEnumerable<string> imagePaths, string outputPath, PdfGenerationOptions options = null)

Parameters

imagePaths IEnumerable<string>

Paths to the source image files.

outputPath string

Path where the output PDF will be written.

options PdfGenerationOptions

Optional PDF generation options. Uses defaults if null.

ConvertToFile(IEnumerable<Attachment>, string, PdfGenerationOptions)

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

public static void ConvertToFile(IEnumerable<Attachment> images, string outputPath, PdfGenerationOptions options = null)

Parameters

images IEnumerable<Attachment>

The source image attachments.

outputPath string

Path where the output PDF will be written.

options PdfGenerationOptions

Optional PDF generation options. Uses defaults if null.

Share