Declaration
property EditableTypes: TIEMetaTypes;
Description
Specifies which meta-data types can be edited. Only iemEXIF, iemIPTC, iemDicom and iemPDF support editing.
If a type is editable, the user can click the field to change its value.
Setting this property does not affect which meta-types are displayed. Use
AutoShowTypes or
AutoShowTypes for this.
If
iemoDirectEdit is specified for
Options and the control is
attached to an
TImageEnView, then any user editing will immediately update the relevant TImageEnView.IO.Params field. If not included, you will need to call
AssignTo to update the params.
If
iemoEasySave is specified for
Options then the user can save their editing by clicking outside the editor, scrolling or using a relevant key (cursor keys, tab, Return). If not included, only the "Return" key will save changes.
| Value | Description |
| iemGeneral | General file properties including: filename, folder, file size and date. Image properties including: image type, dimensions, color depth and resolution (See General Tag Constants) |
| iemEXIF | EXIF meta-data of JPEG, TIFF, PNG, PSD and Camera Raw images (See Constants for EXIF Properties) |
| iemIPTC | IPTC meta-data of JPEG, TIFF and PSD images (See PhotoShop IPTC Constants) |
| iemDicom | Medical tags of DICOM files (See Dicom Tags Supported by ImageEn) |
| iemXMP | XMP data of JPEG, TIFF, PNG and PSD images (See Constants for Common XMP Fields) |
| iemPDF | Properties of PDF documents (See Constants for PDF Properties) |
Meta data support by file type:
| File Type | General | EXIF | IPTC | XMP | DICOM | PDF Info |
| Adobe PhotoShop | | | | | | |
| Camera Raw Images | | | | | | |
| DICOM | | | | | | |
| JPEG | | | | | | |
| PNG | | | | | | |
| PDF Files | | | | | | |
| TIFF | | | | | | |
| Other Formats | | | | | | |
Note:
◼Some EXIF and DICOM tags cannot be edited (user will be prevented from editing them)
◼For iemPDF, only the Title, Author, Subject, Keywords, Creator and Producer can be edited (not the page size, dates or PDF version). When attached to a
TImageEnView with an active
TIEPdfViewer, edits to the params are written to the document when it is saved (e.g. using
SaveToFilePDF). Use
SaveMetaToFile to update a PDF file directly
◼You can control editing of specific fields using the
OnEditMetaData event
◼To modify the saving of a field item value, use
OnSaveMetaData
◼The
OnAfterEditMetaData event will occur after saving of any editing occurs
◼User can also click F2 to commence editing (if
iemoKeyboard is included in
Options)
Default: []
Example
// Enable editing of supported types
IEMetaListView1.EditableTypes := [iemEXIF, iemIPTC, iemDicom, iemPDF];
// Allow editing of the properties of a PDF document
ImageEnView1.PdfViewer.Enabled := True;
ImageEnView1.IO.LoadFromFile( 'D:\Adobe Document.pdf' );
IEMetaListView1.Options := IEMetaListView1.Options + [iemoDirectEdit];
IEMetaListView1.EditableTypes := [iemPDF];
IEMetaListView1.AttachedImageEn := ImageEnView1;
...
// Save the document with the changed properties
ImageEnView1.IO.SaveToFilePDF( 'D:\Adobe Document.pdf' );