GeneratePreview

GeneratePreview(string, PreviewOptions)

Generates previews of pages of the document loaded from the specified file.

public void GeneratePreview(string documentPath, PreviewOptions previewOptions)
Parameter Type Description
documentPath String The path to a document to preview.
previewOptions PreviewOptions Options for generating previews.

Remarks

A document of any file format supported by GroupDocs.Assembly can be previewed, for example, a template document or a document assembled by this class. Every page is rendered to an image written to a stream created by CreatePageStream.

No external resources (such as remote images) are loaded while generating previews.

See Also


GeneratePreview(Stream, PreviewOptions)

Generates previews of pages of the document loaded from the specified stream.

public void GeneratePreview(Stream documentStream, PreviewOptions previewOptions)
Parameter Type Description
documentStream Stream The stream to read a document to preview from.
previewOptions PreviewOptions Options for generating previews.

Remarks

See remarks of GeneratePreview.

See Also