Skip to main content

Files

viewer.open(file) picks an engine from the extension. The same session, the same toolbars, and the same capabilities describe every file. A format that cannot do an action returns unsupported. Save writes the format that was opened.

KindExtensions
FileDOM package.filedom
PDF.pdf
Word.doc, .docx, .docm, .dot, .dotx, .dotm
Excel.xls, .xlsx, .xlsm, .xlt, .xltx, .xltm, .xlsb
PowerPoint.ppt, .pptx, .pptm, .pot, .potx, .pps, .ppsx
Image.png, .jpg, .jpeg, .gif, .webp, .bmp, .tif, .tiff
Vector.svg, .ai
CSV.csv
Audio.mp3, .wav, .m4a
Video.mp4, .mpeg, .mpg, .webm
Archive.zip, .gz, .tgz, .tar, .7z
Mail.eml, .msg

The menu bar (File, History, Mode, Find, View, Help) is on every file. The tables below are the toolbars and features that change with the format. Toolbars lists every action.

Source files​

TypeScript, JavaScript, JSON, CSS, HTML, Markdown, Rust, Python, Go, TOML, YAML, and shell open in the code view from @filedom/core/code. That module is part of the open-source SDK.

codeStyle sets the font and the colors for keywords, strings, numbers, functions, types, and punctuation. codeFormat sets the indent, semicolons, quote style, and trailing commas. Pass style and format to mountCodeEditor for one view, or change codeStyle and codeFormat before mount. A host that does not pass its own values uses those objects.

FileDOM package​

Layout: paged, layered, sheet, canvas, or timeline. The open name ends in .filedom.

FeatureSupport
Every toolbar groupShown.
Each actionFollows the capabilities stored in the package.
New text fileA4. Text editing, insert, layers, and track changes.
StorageThe features the package allows are stored in the file.

PDF​

Layout: paged and layered.

FeatureSupport
Text editingStored in the PDF.
Font, size, bold, italic, underline, strikethrough, colorStored in the PDF.
HighlightStored in the PDF.
CommentKept for the open session.
Move, resize, rotate, deleteStored in the PDF. Fill and stroke are stored.
Layers: show, hide, lockStored in the PDF.
Track changes: list, Restore, RevertStored in the PDF.
FindSearch and replace.
Align, spacing, indentDisabled.
InsertHidden.

Word​

Layout: paged and layered. A .doc saves as .docx.

FeatureSupport
Text editing, including across paragraphsStored in the document.
HighlightStored in the document.
CommentKept for the open session.
Insert image, text box, shapeStored in the document.
Layers: show, hide, lockStored in the document.
Track changesStored in the document.
FindSearch and replace.
Character styleDisabled.
Align, spacing, indentDisabled.
Move page objectsHidden.

Excel​

Layout: paged and layered.

FeatureSupport
Text editingStored in the workbook.
HighlightStored in the workbook.
LayersStored in the workbook.
Track changesStored in the workbook.
FindSearch and replace.
InsertHidden.
Character style, align, spacing, indentDisabled.

PowerPoint​

Layout: paged and layered.

FeatureSupport
Text editingStored in the presentation.
HighlightStored in the presentation.
LayersStored in the presentation.
Track changesStored in the presentation.
FindSearch and replace.
InsertHidden.
Character style, align, spacing, indentDisabled.

CSV​

Layout: sheet.

FeatureSupport
SheetCopy the sheet. The file is the CSV.
FindSearch.
Text, layers, track changes, insert, timelineHidden.

Images​

PNG, JPEG, GIF, WebP, BMP, and TIFF. Layout: canvas.

FeatureSupport
Text editingStored in the image. Character style stays disabled.
Insert text box or shapeStored in the image.
Move, resize, deleteStored in the image. Fill and stroke stay hidden.
FindSearch and replace.
Layers, track changes, highlightUnsupported.

SVG​

Layout: layered vector.

FeatureSupport
Text editingStored in the SVG.
Font, size, bold, italic, underline, strikethrough, colorStored in the SVG.
Insert text box or shapeStored in the SVG.
Fill, stroke, move, resize, deleteStored in the SVG.
FindSearch and replace.
Layers, track changes, highlightUnsupported.
Align, spacing, indentDisabled.

Adobe Illustrator​

Layout: vector.

FeatureSupport
Text editingStored in the file. Character style stays disabled.
Move, resize, deleteStored in the file.
FindSearch and replace.
Insert, layers, color, track changesHidden or unsupported.

WAV​

Layout: timeline.

FeatureSupport
Play, Pause, MutePlayback. Not written into the file.
Trim, speed, add clipWritten into the WAV.
Text, layers, track changesUnsupported.

MP3 and M4A​

Layout: timeline.

FeatureSupport
Play, Pause, MutePlayback.
Trim, speed, add clipPlayback only. Export refuses to write them. Store a .filedom package to keep the edit.
Text, layers, track changesUnsupported.

Video​

MP4, MPEG, and WebM. Layout: timeline.

FeatureSupport
Play, Pause, MutePlayback.
Trim, speed, add clipPlayback only. Export refuses to write them. Store a .filedom package to keep the edit.
Text, layers, track changesUnsupported.

Archives​

Zip, gzip, tar, and 7z. Layout: a listing.

FeatureSupport
ArchiveCopy the listing.
Text, layers, track changes, insert, timelineHidden.

Email​

.eml and .msg. Layout: a message.

FeatureSupport
MessageCopy the message.
Text, layers, track changes, insert, timelineHidden.