Class ImageExport
- Namespace
- Rustaveli.Pdf
- Assembly
- Rustaveli.Pdf.Raster.dll
Exports a document's pages as images, drawn by SkiaSharp.
public static class ImageExport
- Inheritance
-
ImageExport
- Inherited Members
Remarks
Pages are laid out exactly as for PDF: the same typefaces, the same glyphs at the same positions, the same page breaks. Links and anchors have no meaning in an image and are left out.
Methods
ExportImages(Document, ImageExportOptions?)
Exports every page as an image, in page order.
public static IReadOnlyList<byte[]> ExportImages(this Document document, ImageExportOptions? options = null)
Parameters
documentDocumentoptionsImageExportOptions
Returns
ExportImages(Document, Func<int, string>, ImageExportOptions?)
Exports every page as an image file, at the path pathOfPage gives for its page number,
counted from 1.
public static void ExportImages(this Document document, Func<int, string> pathOfPage, ImageExportOptions? options = null)
Parameters
documentDocumentpathOfPageFunc<int, string>optionsImageExportOptions