Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

string DocumentmyDocument.ContentType { get; set; }

Example

Code Block
languagejs
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

var cont_type = doc.ContentType;

Example

Code Block
languagejs
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"]);

...

Remarks

Checking a content type of a document:

Example

Code Block
languagejs
var doc = $Documents.New('My Document');
doc.Files.AddPDF('<p>Hello</p>', 'report.pdf');

var cont_type = doc.ContentType;

Example

Code Block
languagejs
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"]);

See Also

...