The document object represents a printout of the program. Once created, several documents can be merged together.
| Availability | The object is returned by a method or a property of another object |
d = dataview.createdocument("203caa97-4971-4d43-a1fc-d99a81744508")
d2 = database.createdocument("e056de31-51ad-4622-93c5-75e01474c877","items","9e092d0d-62cc-4714-9da8-0672f74e1b4d")
d.adddocument(d2)
d.show()
adddocument
| Description | Adds the pages of another document to the current one |
| Value Type | |
| Format | document.adddocument(document2) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| document2 | document | The document object from which to retrieve the pages |
Examples
document.adddocument(document2)
gethtml
| Description | Converts the document to html format |
| Value Type | string |
| Format | string = document.gethtml() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
body = document.gethtml()
savehtml
| Description | Saves the document in html format |
| Value Type | |
| Format | document.savehtml(pathfile) |
| Type | Method |
| Systems | Windows |
| Parameter | Value Type | Description |
| pathfile | string | The path and the file name to save |
savepdf
| Description | Saves the document in pdf format |
| Value Type | |
| Format | document.savepdf(pathfile) |
| Type | Method |
| Systems | Windows |
| Parameter | Value Type | Description |
| pathfile | string | The path and the file name to save |
show
| Description | Displays the preview of the current document |
| Value Type | |
| Format | document.show() |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
Examples
document.show()
uploadtoserver
| Description | Sends the document to the Nios4 server and returns the link to download the file |
| Value Type | string |
| Format | string = document.uploadtoserver(filename) |
| Type | Method |
| Systems | Windows, Web, Android, IOS, Mac OS |
| Parameter | Value Type | Description |
| filename | string | The name that will be used to save the document on the Nios4 server |
Examples
url = document.uploadtoserver("document.pdf")