WebDocument
Contents
[
Hide
]Inheritance: java.lang.Object
public class WebDocument
Represents a transition form of the presentation for saving into a web format.
Constructors
Constructor | Description |
---|---|
WebDocument(WebDocumentOptions options) | WebDocument constructor. |
Methods
Method | Description |
---|---|
save() | Saves the document output. |
getInput() | Returns collection of input elements (templates) of the document. |
getOutput() | Returns collection of output elements of the document. |
getGlobal() | Returns global storage of the document. |
WebDocument(WebDocumentOptions options)
public WebDocument(WebDocumentOptions options)
WebDocument constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
options | WebDocumentOptions | Options set for the document. |
save()
public final void save()
Saves the document output.
getInput()
public final Input getInput()
Returns collection of input elements (templates) of the document. Read-only Input(#getInput.getInput).
Returns: Input
getOutput()
public final Output getOutput()
Returns collection of output elements of the document. Read-only Output(#getOutput.getOutput).
WebDocumentOptions options = new WebDocumentOptions(); WebDocument document = new WebDocument(options); // put "slideMargin" property to use from templates document.getGlobal().put("slideMargin", 10); // ... set up other options of the document and then save the document document.save();
Returns: Output
getGlobal()
public final Storage getGlobal()
Returns global storage of the document. Read-only Storage.
Using this (#getGlobal.getGlobal) property (implementation of [Storage](../../com.aspose.slides/storage) interface) a property can be put to use it later in the template: WebDocumentOptions options = new WebDocumentOptions(); WebDocument document = new WebDocument(options); // put "slideMargin" property to use from templates document.getGlobal().put("slideMargin", 10); // ... set up other options of the document and then save the document document.save();
Returns: Storage