Versions Compared

Key

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

Overview

Gets or sets the name content type of document.

string myDocument.ContentType { get; set; }

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