download_type Property
The download type to use for file resources.
Syntax
def get_download_type() -> int: ... def set_download_type(value: int) -> None: ...
download_type = property(get_download_type, set_download_type)
Default Value
0
Remarks
This property controls what the class will download when download_file is called for a file resource. Possible values are:
0 (ddtFileContent - default) | download_file will download the file's contents. |
1 (ddtFileThumbnail) | download_file will download a thumbnail of the file. |
2 (ddtFilePreview) | download_file will download a PDF- or HTML-based preview of the file. |
File thumbnails may be customized using the ThumbnailFormat, ThumbnailMode, and ThumbnailSize configuration settings; and are supported for the following file types: .bmp, .gif, .jpeg, .jpg, .png, .tif, and .tiff.
File previews are supported for the following file types:
- PDF-based: .ai, .doc, .docm, .docx, .eps, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, and .rtf.
- HTML-based: .csv, .ods, .xls, .xlsm, and .xlsx