GeneratePreview
Leave feedback
On this page
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. |
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.
- class PreviewOptions
- class DocumentAssembler
- namespace GroupDocs.Assembly
- assembly GroupDocs.Assembly
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. |
See remarks of GeneratePreview.
- class PreviewOptions
- class DocumentAssembler
- namespace GroupDocs.Assembly
- assembly GroupDocs.Assembly
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.