Skip to content

ContentType

Gets or sets the name content type of document.

1
 string myDocument.ContentType

Remarks

Checking a content type of a document:

Example

1
2
3
4
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

var cont_type = doc.ContentType;

Example

1
2
3
4
5
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

doc.ContentType = 'Belge'; // setting a type before publishing
doc.Publish(["myfolder", "otherfolder"]);