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
imagePathsIEnumerable<string>Paths to the source image files.
optionsPdfGenerationOptionsOptional 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
imagesIEnumerable<Attachment>The source image attachments.
optionsPdfGenerationOptionsOptional PDF generation options. Uses defaults if
null.
Returns
- Attachment
A new Attachment containing the generated PDF.