Document
The document object represents a printout of the program.
|
adddocument |
|
|
Description |
Add the pages of another document to the current one. |
|
Type Value |
|
|
Format |
document.adddocument(document2) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
document2 |
document |
The document object from which to retrieve the pages. |
|
Examples |
|
document.adddocument(document2) |
|
gethtml |
|
|
Description |
Convert the document to html format. |
|
Type Value |
string |
|
Format |
string = document.gethtml() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
body = document.gethtml() |
|
savehtml |
|
|
Description |
Save the document in html format. |
|
Type Value |
|
|
Format |
document.savehtml(patthfile) |
|
Typology |
|
|
Systems |
Windows |
|
Parametro |
Tipo Valore |
Description |
|
pathfile |
string |
The path and the file name to save. |
|
savepdf |
|
|
Description |
Save the document in pdf format. |
|
Type Value |
|
|
Format |
document.savepdf(patthfile) |
|
Typology |
|
|
Systems |
Windows |
|
Parametro |
Tipo Valore |
Description |
|
pathfile |
string |
The path and the file name to save. |
|
show |
|
|
Description |
Display the preview of the current document. |
|
Type Value |
|
|
Format |
document.show() |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Examples |
|
document.show() |
|
uploadtoserver |
|
|
Description |
Send the document to the Nios4 server and return the link to allow the file download. |
|
Type Value |
string |
|
Format |
string = document.uploadtoserver(filename) |
|
Typology |
Metodo |
|
Systems |
Windows, Web, Android, IOS, Mac OS |
|
Parametro |
Tipo Valore |
Description |
|
filename |
string |
The name that will be used to save the document on the Nios4 server. |
|
Examples |
|
url = document.uploadtoserver(`document.pdf`) |