com.aspose.words

Class ThumbnailGeneratingOptions

  • java.lang.Object
    • com.aspose.words.ThumbnailGeneratingOptions
public class ThumbnailGeneratingOptions 
extends java.lang.Object

Can be used to specify additional options when generating thumbnail for a document. User can call method Document.updateThumbnail(com.aspose.words.ThumbnailGeneratingOptions) to generate BuiltInDocumentProperties.Thumbnail for a document.

Constructor Summary
 
Property Getters/Setters Summary
booleangetGenerateFromFirstPage()
void
           Specifies whether to generate thumbnail from first page of the document or first image. 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.
java.awt.DimensiongetThumbnailSize()
void
setThumbnailSize(java.awt.Dimensionvalue)
           Size of generated thumbnail in pixels. Default is 600x900.
 

    • Constructor Detail

      • ThumbnailGeneratingOptions

        public ThumbnailGeneratingOptions()
    • Property Getters/Setters Detail

      • getGenerateFromFirstPage/setGenerateFromFirstPage

        public boolean getGenerateFromFirstPage() / public void setGenerateFromFirstPage(boolean value)
        
        Specifies whether to generate thumbnail from first page of the document or first image. 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.
      • getThumbnailSize/setThumbnailSize

        public java.awt.Dimension getThumbnailSize() / public void setThumbnailSize(java.awt.Dimension value)
        
        Size of generated thumbnail in pixels. Default is 600x900.