Overview
string DocumentmyDocument.ContentType { get; set; }
Example
...
...
Checking a content type of a document:
Example
Code Block |
---|
|
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"]); |
Examples
Code Block |
---|
|
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');
var cont_type = doc.ContentType; |
Example
Code Block |
---|
|
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"]); |