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
When Aspose.Words saves a document to HTML or related formats and
To save document parts into streams instead of files, use the
|Property Getters/Setters Summary|
Gets the document object that is being saved.
|Gets or sets the file name (without path) where the document part will be saved to.|
|Allows to specify the stream where the document part will be saved to.|
|Specifies whether Aspose.Words should keep the stream open or close it after saving a document part.|
public Document getDocument()
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.
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,
public boolean getKeepDocumentPartStreamOpen() / public void setKeepDocumentPartStreamOpen(boolean value)
false and Aspose.Words will close the stream you provided
true to keep the stream open. Please note that the main output stream
provided in the call to