Method AllFromBytes

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

AllFromBytes(byte[])

Loads every page of a multi-page TIFF, or the single image of any other format, from memory.

public static IReadOnlyList<PdfImage> AllFromBytes(byte[] data)

Parameters

data byte[]

The image file's bytes. They are copied, so the array may be reused afterwards.

Returns

IReadOnlyList<PdfImage>

The pages, in file order.

Exceptions

NotSupportedException

The format, or a variant of it, is not supported.

InvalidDataException

The image data is corrupt.