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
imagePathsIEnumerable<string>Paths to the source image files.
outputPathstringPath where the output PDF will be written.
optionsPdfGenerationOptionsOptional 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
imagesIEnumerable<Attachment>The source image attachments.
outputPathstringPath where the output PDF will be written.
optionsPdfGenerationOptionsOptional PDF generation options. Uses defaults if
null.