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