VegaRise.NET
Back to DOM

DocumentFileTypeEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies a supported document file format.

Remarks

Used when identifying or exporting a document in a specific format. The values correspond to the supported output formats of the VDocs pipeline.

Examples

csharp
1// 1. Export to PDF
2var type = DocumentFileType.PDF;
3
csharp
1// 2. Export to Word
2var type = DocumentFileType.DOCX;
3
csharp
1// 3. Export to HTML
2var type = DocumentFileType.HTML;
3
csharp
1// 4. Choose based on file extension
2var type = System.IO.Path.GetExtension("report.docx").ToLowerInvariant() switch
3{
4 ".pdf" => DocumentFileType.PDF,
5 ".docx" => DocumentFileType.DOCX,
6 ".html" => DocumentFileType.HTML,
7 _ => DocumentFileType.DOCX
8};
9

Fields

DOCX

Microsoft Word document (.docx).

HTML

HTML document.

PDF

Portable Document Format.

PPTX

Microsoft PowerPoint presentation (.pptx).

XLSX

Microsoft Excel workbook (.xlsx).

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in