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
Syntaxpublic bool GenerateFromFirstPage { get; set; }Public Property GenerateFromFirstPage As Boolean
Get
Set
public:
property bool GenerateFromFirstPage {
bool get ();
void set (bool value);
}member GenerateFromFirstPage : bool with get, set
Property Value
Type:
Boolean
ExamplesShows how to update a document's thumbnail.
Document doc = new Document();
doc.UpdateThumbnail();
ThumbnailGeneratingOptions tgo = new ThumbnailGeneratingOptions();
Console.WriteLine("Thumbnail size: {0}", tgo.ThumbnailSize);
tgo.GenerateFromFirstPage = true;
doc.UpdateThumbnail(tgo);
See Also