Class PdfToImage
- Namespace
- LMKit.Document.Conversion
- Assembly
- LM-Kit.NET.dll
Provides methods to render PDF pages as images.
public static class PdfToImage
- Inheritance
-
PdfToImage
- Inherited Members
Examples
Example: Render a PDF page to an image file
using LMKit.Document.Pdf;
// Render page 1 at 2x zoom as a PNG
PdfToImage.RenderToFile("report.pdf", 0, "page1.png");
Remarks
The PdfToImage class converts PDF pages into ImageBuffer instances or saves them directly as image files (PNG, BMP, or JPEG).
Methods
- RenderPage(Attachment, int, double)
Renders a single page from a PDF attachment as an image.
- RenderPage(string, int, double)
Renders a single page from a PDF file as an image.
- RenderPages(Attachment, string, double)
Renders multiple pages from a PDF attachment as images.
- RenderToFile(string, int, string, double)
Renders a single page from a PDF file and saves it as an image file.
- RenderToFiles(Attachment, string, string, double, string, string)
Renders multiple pages from a PDF attachment and saves them as image files.
- RenderToFiles(string, string, string, double, string, string)
Renders multiple pages from a PDF file and saves them as image files.