ThumbnailGeneratingOptionsGenerateFromFirstPage Property

Specifies whether to generate thumbnail from first page of the document or first image.
Remarks
Default is true, which means thumbnail will be generated from first page of the document. If value is false and there is no image in the document, thumbnail will be generated from first page of the document.

Namespace:  Aspose.Words.Rendering
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool GenerateFromFirstPage { get; set; }

Property Value

Type: Boolean
Examples
Shows how to update a document's thumbnail.
Document doc = new Document();

// Update document's thumbnail the default way
doc.UpdateThumbnail();

// Review/change thumbnail options and then update document's thumbnail
ThumbnailGeneratingOptions tgo = new ThumbnailGeneratingOptions();

Console.WriteLine("Thumbnail size: {0}", tgo.ThumbnailSize);
tgo.GenerateFromFirstPage = true;

doc.UpdateThumbnail(tgo);
See Also