FileType class

FileType class

Represents file type.

The FileType type exposes the following members:

Properties

Property Description
file_format File type name e.g. “Microsoft Word Document”.
extension Filename suffix (including the period “.”) e.g. “.doc”.
UNKNOWN Represents unknown file type.
TIF Tagged Image File (.tif) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces.
Learn more about this file format here.
TIFF Tagged Image File Format (.tiff) represents raster images that are meant for usage on a variety of devices that comply with this file format standard. It is capable of describing bilevel, grayscale, palette-color and full-color image data in several color spaces.
Learn more about this file format here.
JPG JPEG Image (.jpg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality.
Learn more about this file format here.
JPEG JPEG Image (.jpeg) is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality.
Learn more about this file format here.
PNG Portable Network Graphic (.png) is a type of raster image file format that use lossless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations.
Learn more about this file format here.
GIF Graphical Interchange Format File (.gif) is a type of highly compressed image. For each image GIF typically allow up to 8 bits per pixel and up to 256 colours are allowed across the image.
Learn more about this file format here.
BMP Bitmap Image File (.bmp) is used to store bitmap digital images. These images are independent of graphics adapter and are also called device independent bitmap (DIB) file format.
Learn more about this file format here.
WMF Windows Metafile (.wmf) represents Microsoft Windows Metafile (WMF) for storing vector as well as bitmap-format images data.
Learn more about this file format here.
EMF Enhanced Windows Metafile (.emf) represents graphical images device-independently. Meta-files of EMF comprises of variable-length records in chronological order that can render the stored image after parsing on any output device.
Learn more about this file format here.
WEBP WebP Image (.webp) is a modern raster web image file format that is based on lossless and lossy compression. It provides same image quality while considerably reducing the image size.
Learn more about this file format here.
DJVU DjVu Image (.djvu) is a graphics file format intended for scanned documents and books especially those which contain the combination of text, drawings, images and photographs.
Learn more about this file format here.
CGM Computer Graphics Metafile (.cgm) is a free, platform-independent, international standard metafile format for storing and exchanging of vector graphics (2D), raster graphics, and text. CGM uses object-oriented approach and many function provisions for image production.
Learn more about this file format here.
CDR CorelDraw Vector Graphic Drawing (.cdr) is a vector drawing image file that is natively created with CorelDRAW for storing digital image encoded and compressed. Such a drawing file contains text, lines, shapes, images, colours and effects for vector representation of image contents.
Learn more about this file format here.
CMX CorelDRAW Metafile Exchange Image File (.cmx)
PCL Printer Command Language Document (.pcl)
PSD Adobe Photoshop Document (.psd) represents Adobe Photoshop’s native file format used for graphics designing and development.
Learn more about this file format here.
DCM DICOM Image (.dcm) represents digital image which stores medical information of patients such as MRIs, CT scans and ultrasound images.
Learn more about this file format here.
PS PostScript File (.ps)
EPS Encapsulated PostScript File (.eps) describes an Encapsulated PostScript language program that describes the appearance of a single page.
Learn more about this file format here.
ODG OpenDocument Graphic File (.odg) is used by Apache OpenOffice’s Draw application to store drawing elements as a vector image.
Learn more about this file format here.
SVG Scalable Vector Graphics File (.svg) is a Scalar Vector Graphics file that uses XML based text format for describing the appearance of an image.
Learn more about this file format here.
PDF Portable Document Format File (.pdf) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System.
Learn more about this file format here.
PPT PowerPoint Presentation (.ppt) represents PowerPoint file that consists of a collection of slides for displaying as SlideShow. It specifies the Binary File Format used by Microsoft PowerPoint 97-2003.
Learn more about this file format here.
PPTX PowerPoint Open XML Presentation (.pptx) are presentation files created with popular Microsoft PowerPoint application. Unlike the previous version of presentation file format PPT which was binary, the PPTX format is based on the Microsoft PowerPoint open XML presentation file format.
Learn more about this file format here.
PPS PowerPoint Slide Show (.pps) are created using Microsoft PowerPoint for Slide Show purpose. PPS file reading and creation is supported by Microsoft PowerPoint 97-2003.
Learn more about this file format here.
PPSX PowerPoint Open XML Slide Show (.ppsx) files are created using Microsoft PowerPoint 2007 and above for Slide Show purpose.
Learn more about this file format here.
ODP OpenDocument Presentation (.odp) represents presentation file format used by OpenOffice.org in the OASISOpen standard.
Learn more about this file format here.
POT PowerPoint Template (.pot) represents Microsoft PowerPoint template files created by PowerPoint 97-2003 versions.
Learn more about this file format here.
PPTM PowerPoint Open XML Macro-Enabled Presentation are Macro-enabled Presentation files that are created with Microsoft PowerPoint 2007 or higher versions.
Learn more about this file format here.
POTX PowerPoint Open XML Presentation Template (.potx) represents Microsoft PowerPoint template presentations that are created with Microsoft PowerPoint 2007 and above.
Learn more about this file format here.
POTM PowerPoint Open XML Macro-Enabled Presentation Template (.potm) are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files.
Learn more about this file format here.
PPSM PowerPoint Open XML Macro-Enabled Slide (.ppsm) represents Macro-enabled Slide Show file format created with Microsoft PowerPoint 2007 or higher.
Learn more about this file format here.
OTP OpenDocument Presentation Template (.otp) represents presentation template files created by applications in OASIS OpenDocument standard format.
Learn more about this file format here.
XLS Excel Spreadsheet (.xls) represents Excel Binary File Format. Such files can be created by Microsoft Excel as well as other similar spreadsheet programs such as OpenOffice Calc or Apple Numbers.
Learn more about this file format here.
XLSX Microsoft Excel Open XML Spreadsheet (.xlsx) is a well-known format for Microsoft Excel documents that was introduced by Microsoft with the release of Microsoft Office 2007.
Learn more about this file format here.
XLSM Excel Open XML Macro-Enabled Spreadsheet (.xlsm) is a type of Spreadsheet files that support macros.
Learn more about this file format here.
XLT Excel binary Template (.xlt) represents Excel Template File Format.
Learn more about this file format here.
XLTM Excel Office OpenXML file Template (.xltm) represents Excel Template File Format.
Learn more about this file format here.
XLSB Excel Binary Spreadsheet (.xlsb) specifies the Excel Binary File Format, which is a collection of records and structures that specify Excel workbook content.
Learn more about this file format here.
CSV Comma Separated Values File (.csv) represents plain text files that contain records of data with comma separated values.
Learn more about this file format here.
TSV Tab Separated Values File (.tsv) represents data separated with tabs in plain text format.
Learn more about this file format here.
ODS OpenDocument Spreadsheet (.ods) stands for OpenDocument Spreadsheet Document format that are editable by user. Data is stored inside ODF file into rows and columns.
Learn more about this file format here.
OTS OpenDocument Spreadsheet Template (.ots)
DOC Microsoft Word Document (.doc) represents documents generated by Microsoft Word or other word processing documents in binary file format.
Learn more about this file format here.
DOCX Microsoft Word Open XML Document (.docx) is a well-known format for Microsoft Word documents. Introduced from 2007 with the release of Microsoft Office 2007, the structure of this new Document format was changed from plain binary to a combination of XML and binary files.
Learn more about this file format here.
DOCM Word Open XML Macro-Enabled Document (.docm) is a Microsoft Word 2007 or higher generated documents with the ability to run macros.
Learn more about this file format here.
DOT Word Document Template (.dot) are template files created by Microsoft Word to have preformatted settings for generation of further DOC or DOCX files.
Learn more about this file format here.
DOTX Word Open XML Document Template (.dotx) are template files created by Microsoft Word to have preformatted settings for generation of further DOCX files.
Learn more about this file format here.
DOTM Word Open XML Macro-Enabled Document Template (.dotm) represents template file created with Microsoft Word 2007 or higher.
Learn more about this file format here.
RTF Rich Text Format File (.rtf) represents a method of encoding formatted text and graphics for use within applications.
Learn more about this file format here.
TXT Plain Text File (.txt) represents a text document that contains plain text in the form of lines.
Learn more about this file format here.
ODT OpenDocument Text Document (.odt) are type of documents created with word processing applications that are based on OpenDocument Text File format.
Learn more about this file format here.
OTT OpenDocument Document Template (.ott) represents template documents generated by applications in compliance with the OASIS’ OpenDocument standard format.
Learn more about this file format here.
VCF vCard File (.vcf) is a digital file format for storing contact information. The format is widely used for data interchange among popular information exchange applications.
Learn more about this file format here.
WPD WordPerfect Document (.wpd)
AZW3 WordPerfect Document (.wpd)
PFX Personal Information Exchange (.pfx) file password protected file certificate commonly used for code signing your application.
Learn more about this file format here.
ZIP Document ZIP archive (.zip) is an archive file format that supports lossless data compression.
Can hold one or more files or directories.
Learn more about this file format here.
TAR Unix-based utility for collecting one or more files (.tar) is a archive that can hold one or more files or directories.
Learn more about this file format here.
SEVEN_ZIP High compressed archive (.7z) compressing files and folders with a high compression ratio.
Learn more about this file format here.
G_ZIP GZip compressed archive (.gz) compressing files with a high compression ratio.
Learn more about this file format here.
L_ZIP LZip compressed archive (.lz) compressing files with a high compression ratio.
Learn more about this file format here.

Methods

Method Description
from_extension Maps file extension to file type.
get_supported_file_types Retrieves supported file types
equals Determines whether the current FileType is the same as specified FileType object.

Remarks

Learn more | | | |

See Also