Method FromFile
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
FromFile(string)
Loads an image file (the first page of a TIFF); the format is detected from the content, not the extension.
public static PdfImage FromFile(string path)
Parameters
pathstringThe image file.
Returns
Exceptions
- NotSupportedException
The format, or a variant of it, is not supported.
- InvalidDataException
The image data is corrupt.