java.lang.Objectcom.aspose.words.DocumentPartSavingArgs
public class DocumentPartSavingArgs
When Aspose.Words saves a document to HTML or related formats and Class To save document parts into streams instead of files, use the
Property Getters/Setters Summary | ||
---|---|---|
Document | getDocument() | |
Gets the document object that is being saved. | ||
java.lang.String | getDocumentPartFileName() | |
void | setDocumentPartFileName(java.lang.String value) | |
Gets or sets the file name (without path) where the document part will be saved to. | ||
java.io.OutputStream | getDocumentPartStream() | |
void | setDocumentPartStream(java.io.OutputStream value) | |
Allows to specify the stream where the document part will be saved to. | ||
boolean | getKeepDocumentPartStreamOpen() | |
void | setKeepDocumentPartStreamOpen(boolean value) | |
Specifies whether Aspose.Words should keep the stream open or close it after saving a document part. |
Property Getters/Setters Detail |
---|
getDocument | |
public Document getDocument() |
getDocumentPartFileName/setDocumentPartFileName | |
public java.lang.String getDocumentPartFileName() / public void setDocumentPartFileName(java.lang.String value) |
This property allows you to redefine how the document part file names are generated during export to HTML or EPUB.
When the callback is invoked, this property contains the file name that was generated by Aspose.Words. You can change the value of this property to save the document part into a different file. Note that the file name for each part must be unique.
getDocumentPartStream/setDocumentPartStream | |
public java.io.OutputStream getDocumentPartStream() / public void setDocumentPartStream(java.io.OutputStream value) |
This property allows you to save document parts to streams instead of files during HTML export.
The default value is null
. When this property is null
, the document part
will be saved to a file specified in the
When saving to a stream in HTML format is requested by
When saving to EPUB format that is a container format based on HTML,
getKeepDocumentPartStreamOpen/setKeepDocumentPartStreamOpen | |
public boolean getKeepDocumentPartStreamOpen() / public void setKeepDocumentPartStreamOpen(boolean value) |
Default is false
and Aspose.Words will close the stream you provided
in the true
to keep the stream open. Please note that the main output stream
provided in the call to false
.