ExportOptionsTIFF
ExportOptionsTIFF
Section titled “ExportOptionsTIFF”exportOptionsTIFF
Description
Section titled “Description”Options for exporting a document as a TIFF file, used with the Document.exportFile() method. All properties are optional.
When you export a document, the appropriate file extension is appended automatically. You should not include any file extension in the file specification.
Properties
Section titled “Properties”ExportOptionsTIFF.antiAliasing
Section titled “ExportOptionsTIFF.antiAliasing”exportOptionsTIFF.antiAliasing
Description
Section titled “Description”If true
, the exported image should be anti-aliased.
Default: true
.
Boolean.
ExportOptionsTIFF.artboardRange
Section titled “ExportOptionsTIFF.artboardRange”exportOptionsTIFF.artboardRange
Description
Section titled “Description”If saveMultipleArtboards
is true
, this is considered for multi-asset extraction, which specifies the artboard range. An empty string extracts all the artboards.
Default: empty String.
String.
ExportOptionsTIFF.byteOrder
Section titled “ExportOptionsTIFF.byteOrder”exportOptionsTIFF.byteOrder
Description
Section titled “Description”The byte order to use in the new file.
ExportOptionsTIFF.imageColorSpace
Section titled “ExportOptionsTIFF.imageColorSpace”exportOptionsTIFF.imageColorSpace
Description
Section titled “Description”The color space of the exported file.
Default: ImageColorSpace.RGB
.
ExportOptionsTIFF.lZWCompression
Section titled “ExportOptionsTIFF.lZWCompression”exportOptionsTIFF.lZWCompression
Description
Section titled “Description”If true
, use IZW compression in the new file.
Boolean.
ExportOptionsTIFF.resolution
Section titled “ExportOptionsTIFF.resolution”exportOptionsTIFF.resolution
Description
Section titled “Description”Resolution of the exported file in dots per inch (dpi).
Range: 72.0 to 2400.0.
Default: 150.0.
Number (double).
ExportOptionsTIFF.saveMultipleArtboards
Section titled “ExportOptionsTIFF.saveMultipleArtboards”exportOptionsTIFF.saveMultipleArtboards
Description
Section titled “Description”If true
, all artboards or range of artboards are saved.
Default: false
.
Number (double).
Example
Section titled “Example”Exporting to TIFF format
Section titled “Exporting to TIFF format”// Exports current document to dest as a TIFF file with specified options,// dest contains the full path including the file name
function exportFileToPSD(dest) { if (app.documents.length > 0) { var exportOptions = new ExportOptionsTIFF(); exportOptions.resolution = 150; exportOptions.byteOrder = TIFFByteOrder.IBMPC; exportOptions.lZWCompression = false;
var type = ExportType.TIFF; var fileSpec = new File(dest);
app.activeDocument.exportFile(fileSpec, type, exportOptions); }}