Class ImageToPdf
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
Provides methods to convert images into PDF documents.
public static class ImageToPdf
- Inheritance
-
ImageToPdf
- Inherited Members
Examples
Example: Convert JPEG images to a single PDF
using LMKit.Document.Pdf;
ImageToPdf.ConvertToFile(
new[] { "scan1.jpg", "scan2.jpg", "scan3.jpg" },
"combined_scans.pdf");
Remarks
The ImageToPdf class creates a PDF where each image occupies a full page, sized to match the image dimensions. Supports JPEG, PNG, BMP, and other common image formats.
Methods
- Convert(IEnumerable<Attachment>)
Converts one or more image attachments into a single PDF attachment, with each image on its own page.
- Convert(IEnumerable<string>)
Converts one or more image files into a single PDF attachment, with each image on its own page.
- ConvertToFile(IEnumerable<Attachment>, string)
Converts one or more image attachments into a single PDF file, with each image on its own page.
- ConvertToFile(IEnumerable<string>, string)
Converts one or more image files into a single PDF file, with each image on its own page.