IPWorks Cloud 2020 Java Edition

Questions / Feedback?

DownloadType Property

The download type to use for file resources.

Syntax

public int getDownloadType();
public void setDownloadType(int downloadType);

Enumerated values: public final static int ddtFileContent = 0; public final static int ddtFileThumbnail = 1; public final static int ddtFilePreview = 2;

Default Value

0

Remarks

This property controls what the class will download when DownloadFile is called for a file resource. Possible values are:

0 (ddtFileContent - default) DownloadFile will download the file's contents.
1 (ddtFileThumbnail) DownloadFile will download a thumbnail of the file.
2 (ddtFilePreview) DownloadFile 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

This property is not available at design time.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Java Edition - Version 20.0 [Build 8265]