from aspose.cells import SaveFormat, Workbook
from os import os, path

#  For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
#  The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
#  Create directory if it is not already present.
IsExists = path.isdir(dataDir)
if notIsExists:
    os.makedirs(dataDir)
#  Instantiating a Workbook object.
workbook = Workbook()
#  Setting ScaleCrop and LinksUpToDate BuiltIn Document Properties.
workbook.built_in_document_properties.scale_crop = True
workbook.built_in_document_properties.links_up_to_date = True
#  Saving the Excel file.
workbook.save(dataDir + "output.xls", SaveFormat.AUTO)