@DOMObjectAttribute @DOMNameAttribute(name="HTMLDocument") public class HTMLDocument extends Document implements IDocumentCSS
Document.DocumentInit, Document.NavigationInit, Document.NavigationWorkItem
Node.Flags
CurrentScript, IgnoreDestructiveWritesCounter, OnAbort, OnAbortDelegate, OnBlur, OnBlurDelegate, OnCancel, OnCancelDelegate, OnCanplay, OnCanplayDelegate, OnCanPlayThrough, OnCanPlayThroughDelegate, OnChange, OnChangeDelegate, OnClick, OnClickDelegate, OnCueChange, OnCueChangeDelegate, OnDblClick, OnDblClickDelegate, OnDurationChange, OnDurationChangeDelegate, OnEmptied, OnEmptiedDelegate, OnEnded, OnEndedDelegate, OnError, OnErrorDelegate, OnFocus, OnFocusDelegate, OnInput, OnInputDelegate, OnInvalid, OnInvalidDelegate, OnKeyDown, OnKeyDownDelegate, OnKeyPress, OnKeyPressDelegate, OnKeyUp, OnKeyUpDelegate, OnLoad, OnLoadDelegate, OnLoadedData, OnLoadedDataDelegate, OnLoadedMetadata, OnLoadedMetadataDelegate, OnLoadStart, OnLoadStartDelegate, OnMouseDown, OnMouseDownDelegate, OnMouseEnter, OnMouseEnterDelegate, OnMouseLeave, OnMouseLeaveDelegate, OnMouseMove, OnMouseMoveDelegate, OnMouseOut, OnMouseOutDelegate, OnMouseOver, OnMouseOverDelegate, OnMouseUp, OnMouseUpDelegate, OnMouseWheel, OnMouseWheelDelegate, OnPause, OnPauseDelegate, OnPlay, OnPlayDelegate, OnPlaying, OnPlayingDelegate, OnProgress, OnProgressDelegate, OnRateChange, OnRateChangeDelegate, OnReadyStateChange, OnReadyStateChangeDelegate, OnReset, OnResetDelegate, OnResize, OnResizeDelegate, OnScroll, OnScrollDelegate, OnSeeked, OnSeekedDelegate, OnSeeking, OnSeekingDelegate, OnSelect, OnSelectDelegate, OnShow, OnShowDelegate, OnStalled, OnStalledDelegate, OnSubmit, OnSubmitDelegate, OnSuspend, OnSuspendDelegate, OnTimeUpdate, OnTimeUpdateDelegate, OnToggle, OnToggleDelegate, OnVolumeChange, OnVolumeChangeDelegate, OnWaiting, OnWaitingDelegate, PendingRarsingBlockingScript, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADING, revision, strCDataSectionName, strCommentName, strDocumentFragmentName, strDocumentName, strEntityName, strReservedXhtmlns, strReservedXml, strReservedXmlns, strSignificantWhitespaceName, strSpace, strTextName, strXml, strXmlns
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, flags, nodeDocument, NOTATION_NODE, parent, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
EventMap
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
HTMLDocument()
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(com.aspose.html.BrowsingContext context)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.io.InputStream content,
java.lang.String baseUri)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.io.InputStream content,
java.lang.String baseUri,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(RequestMessage request)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(RequestMessage request,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(com.aspose.ms.System.IO.Stream content,
java.lang.String baseUri)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(com.aspose.ms.System.IO.Stream content,
java.lang.String baseUri,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.lang.String address)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.lang.String address,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.lang.String content,
java.lang.String baseUri)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(java.lang.String content,
java.lang.String baseUri,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(Url url)
Initializes a new instance of the
HTMLDocument class. |
HTMLDocument(Url url,
Configuration configuration)
Initializes a new instance of the
HTMLDocument class. |
Modifier and Type | Method and Description |
---|---|
HTMLCollection |
getAnchors() |
HTMLCollection |
getApplets()
A collection of all the
OBJECT elements that include
applets and APPLET (deprecated) elements in a document. |
HTMLElement |
getBody()
The element that contains the content for the document.
|
java.lang.String |
getCookie()
This mutable string attribute denotes persistent state information
that (1) is associated with the current frame or document and (2) is
composed of information described by the
cookies
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a> ], Section 4.2.2. |
java.lang.String |
getDomain()
The domain name of the server that served the document, or
null if the server cannot be identified by a domain
name. |
HTMLCollection |
getForms()
A collection of all the forms of a document.
|
HTMLCollection |
getImages() |
HTMLCollection |
getLinks()
A collection of all
AREA elements and anchor (
A ) elements in a document with a value for the
href attribute. |
ICSSStyleDeclaration |
getOverrideStyle(Element elt,
java.lang.String pseudoElt)
This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.
|
java.lang.String |
getReferrer() |
java.lang.String |
getTitle()
The title of a document as specified by the
TITLE element
in the head of the document. |
void |
renderTo(IDevice device)
This method is used to print the contents of the current document to the specified device.
|
void |
save(java.lang.String path)
Saves the document to local file specified by
path . |
void |
save(java.lang.String path,
HTMLSaveOptions saveOptions)
Saves the document to local file specified by
path . |
void |
save(java.lang.String path,
int saveFormat)
Saves the document to local file specified by
path . |
void |
save(java.lang.String path,
MarkdownSaveOptions saveOptions)
Saves the document to local file specified by
path . |
void |
save(java.lang.String path,
MHTMLSaveOptions saveOptions)
Saves the document to local file specified by
path . |
void |
save(java.lang.String path,
TextSaveOptions saveOptions)
Saves the document to local file specified by
path . |
void |
save(Url url)
Saves the document to local file specified by
url . |
void |
save(Url url,
HTMLSaveOptions saveOptions)
Saves the document to local file specified by
url . |
void |
save(Url url,
int saveFormat)
Saves the document to local file specified by
url . |
void |
save(Url url,
MarkdownSaveOptions saveOptions)
Saves the document to local file specified by
url . |
void |
save(Url url,
MHTMLSaveOptions saveOptions)
Saves the document to local file specified by
url . |
void |
save(Url url,
TextSaveOptions saveOptions)
Saves the document to local file specified by
url . |
void |
setBody(HTMLElement value)
The element that contains the content for the document.
|
void |
setCookie(java.lang.String value)
This mutable string attribute denotes persistent state information
that (1) is associated with the current frame or document and (2) is
composed of information described by the
cookies
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a> ], Section 4.2.2. |
void |
setTitle(java.lang.String value)
The title of a document as specified by the
TITLE element
in the head of the document. |
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createDocumentType, createElement, createElementNS, createEntityReference, createEvent, createExpression, createNodeIterator, createNodeIterator, createNodeIterator, createNSResolver, createProcessingInstruction, createTextNode, createTreeWalker, createTreeWalker, createTreeWalker, dispose, evaluate, getBaseURI, getBrowsingContext, getCharacterSet, getCharset, getChildElementCount, getChildren, getComputedStyle, getContentType, getContext, getCookies, getDefaultView, getDoctype, getDocumentElement, getDocumentURI, getElementById, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getFirstElementChild, getImplementation, getInputEncoding, getIterators, getLastElementChild, getLocation, getMimeType, getNameTable, getNextElementSibling, getNodeName, getNodeType, getOrigin, getOwnerDocument, getParser, getPreviousElementSibling, getQuirksMode, getReadyState, getStrictErrorChecking, getStyleContainer, getStyleSheets, getXmlStandalone, getXmlVersion, importNode, navigate, navigate, navigate, navigate, navigate, navigate, querySelector, querySelectorAll, setContentType, setLocation, setQuirksMode, setReadyState, setStrictErrorChecking, setXmlStandalone, setXmlVersion, write, writeLn
adoptNode, appendChild, cloneNode, deepClone, finalize, getAttributes, getChildNodes, getChildNodesInternal, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRegisteredObservers, getTextContent, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceAll, replaceChild, setLocalName, setNamespaceURI, setNodeValue, setParentNode, setPrefix, setTextContent, toString
addEventListener, addEventListener, addEventListener, addEventListener, dispatchEvent, dispose, removeEventListener, removeEventListener, removeEventListener
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStyleSheets
public HTMLDocument()
Initializes a new instance of the HTMLDocument
class.
public HTMLDocument(Configuration configuration)
Initializes a new instance of the HTMLDocument
class.
configuration
- The environment configuration.public HTMLDocument(Url url)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(Url)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
url
- The document URL.public HTMLDocument(Url url, Configuration configuration)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(Url)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
url
- The document URL.configuration
- The environment configuration.public HTMLDocument(java.lang.String address)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
address
- The document address.public HTMLDocument(java.lang.String address, Configuration configuration)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
address
- The document address.configuration
- The environment configuration.public HTMLDocument(java.lang.String content, java.lang.String baseUri)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(String, String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
content
- The document content.baseUri
- The base URI of the document.com.aspose.ms.System.ArgumentNullException
- baseUri
is null
.public HTMLDocument(java.lang.String content, java.lang.String baseUri, Configuration configuration)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(String, String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
content
- The document content.baseUri
- The base URI of the document.configuration
- The environment configuration.com.aspose.ms.System.ArgumentNullException
- baseUri
is null
.public HTMLDocument(java.io.InputStream content, java.lang.String baseUri)
Initializes a new instance of the HTMLDocument
class.
content
- The document content.baseUri
- The base URI of the document.public HTMLDocument(com.aspose.ms.System.IO.Stream content, java.lang.String baseUri)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(Stream, String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
content
- The document content.baseUri
- The base URI of the document.com.aspose.ms.System.ArgumentNullException
- baseUri
is null
.public HTMLDocument(java.io.InputStream content, java.lang.String baseUri, Configuration configuration)
Initializes a new instance of the HTMLDocument
class.
content
- The document content.baseUri
- The base URI of the document.configuration
- The environment configuration.public HTMLDocument(com.aspose.ms.System.IO.Stream content, java.lang.String baseUri, Configuration configuration)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(Stream, String)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
content
- The document content.baseUri
- The base URI of the document.configuration
- The environment configuration.com.aspose.ms.System.ArgumentNullException
- baseUri
is null
.public HTMLDocument(RequestMessage request)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(RequestMessage)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
request
- The request message.public HTMLDocument(RequestMessage request, Configuration configuration)
Initializes a new instance of the HTMLDocument
class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate(RequestMessage)
or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.Security
(IBrowsingContext.getSecurity()
).
request
- The request message.configuration
- The environment configuration.public HTMLDocument(com.aspose.html.BrowsingContext context)
Initializes a new instance of the HTMLDocument
class.
context
- The context.@DOMNameAttribute(name="title") public java.lang.String getTitle()
The title of a document as specified by the TITLE
element
in the head of the document.
@DOMNameAttribute(name="title") public void setTitle(java.lang.String value)
The title of a document as specified by the TITLE
element
in the head of the document.
@DOMNameAttribute(name="referrer") public java.lang.String getReferrer()
@DOMNameAttribute(name="domain") @DOMNullableAttribute public java.lang.String getDomain()
The domain name of the server that served the document, or
null
if the server cannot be identified by a domain
name.
@DOMNameAttribute(name="body") public HTMLElement getBody()
The element that contains the content for the document. In documents
with BODY
contents, returns the BODY
element. In frameset documents, this returns the outermost
FRAMESET
element.
@DOMNameAttribute(name="body") public void setBody(HTMLElement value)
The element that contains the content for the document. In documents
with BODY
contents, returns the BODY
element. In frameset documents, this returns the outermost
FRAMESET
element.
@DOMNameAttribute(name="images") public HTMLCollection getImages()
@DOMNameAttribute(name="applets") public HTMLCollection getApplets()
A collection of all the OBJECT
elements that include
applets and APPLET
(deprecated) elements in a document.
@DOMNameAttribute(name="links") public HTMLCollection getLinks()
A collection of all AREA
elements and anchor (
A
) elements in a document with a value for the
href
attribute.
@DOMNameAttribute(name="forms") public HTMLCollection getForms()
A collection of all the forms of a document.
@DOMNameAttribute(name="anchors") public HTMLCollection getAnchors()
@DOMNameAttribute(name="cookie") public java.lang.String getCookie()
This mutable string attribute denotes persistent state information
that (1) is associated with the current frame or document and (2) is
composed of information described by the cookies
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
], Section 4.2.2.
If no persistent state information is available for the current
frame or document document, then this property's value is an empty
string.
When this attribute is read, all cookies are returned as a single
string, with each cookie's name-value pair concatenated into a list
of name-value pairs, each list item being separated by a ';'
(semicolon).
When this attribute is set, the value it is set to should be a
string that adheres to the cookie
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
]; that
is, it should be a single name-value pair followed by zero or more
cookie attribute values. If no domain attribute is specified, then
the domain attribute for the new value defaults to the host portion
of an absolute URI [<a href="http://www.ietf.org/rfc/rfc2396.txt">IETF RFC 2396</a>
] of the current frame or document. If no path
attribute is specified, then the path attribute for the new value
defaults to the absolute path portion of the URI [<a href="http://www.ietf.org/rfc/rfc2396.txt">IETF RFC 2396</a>
] of the current
frame or document. If no max-age attribute is specified, then the
max-age attribute for the new value defaults to a user agent defined
value. If a cookie with the specified name is already associated with
the current frame or document, then the new value as well as the new
attributes replace the old value and attributes. If a max-age
attribute of 0 is specified for the new value, then any existing
cookies of the specified name are removed from the cookie storage.
See [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
] for the semantics of persistent state item attribute value
pairs. The precise nature of a user agent session is not defined by
this specification.
@DOMNameAttribute(name="cookie") public void setCookie(java.lang.String value)
This mutable string attribute denotes persistent state information
that (1) is associated with the current frame or document and (2) is
composed of information described by the cookies
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
], Section 4.2.2.
If no persistent state information is available for the current
frame or document document, then this property's value is an empty
string.
When this attribute is read, all cookies are returned as a single
string, with each cookie's name-value pair concatenated into a list
of name-value pairs, each list item being separated by a ';'
(semicolon).
When this attribute is set, the value it is set to should be a
string that adheres to the cookie
non-terminal of [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
]; that
is, it should be a single name-value pair followed by zero or more
cookie attribute values. If no domain attribute is specified, then
the domain attribute for the new value defaults to the host portion
of an absolute URI [<a href="http://www.ietf.org/rfc/rfc2396.txt">IETF RFC 2396</a>
] of the current frame or document. If no path
attribute is specified, then the path attribute for the new value
defaults to the absolute path portion of the URI [<a href="http://www.ietf.org/rfc/rfc2396.txt">IETF RFC 2396</a>
] of the current
frame or document. If no max-age attribute is specified, then the
max-age attribute for the new value defaults to a user agent defined
value. If a cookie with the specified name is already associated with
the current frame or document, then the new value as well as the new
attributes replace the old value and attributes. If a max-age
attribute of 0 is specified for the new value, then any existing
cookies of the specified name are removed from the cookie storage.
See [<a href="http://www.ietf.org/rfc/rfc2965.txt">IETF RFC 2965</a>
] for the semantics of persistent state item attribute value
pairs. The precise nature of a user agent session is not defined by
this specification.
public ICSSStyleDeclaration getOverrideStyle(Element elt, java.lang.String pseudoElt)
This method is used to retrieve the override style declaration for a specified element and a specified pseudo-element.
getOverrideStyle
in interface IDocumentCSS
elt
- The element whose style is to be modified. This parameter cannot be null.pseudoElt
- The pseudo-element or null if none.public void save(Url url)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.public void save(java.lang.String path)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(java.lang.String path, int saveFormat)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.saveFormat
- Format in which document is saved.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(Url url, int saveFormat)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.saveFormat
- Format in which document is saved.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.public void save(java.lang.String path, HTMLSaveOptions saveOptions)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.saveOptions
- HTML save options.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(Url url, HTMLSaveOptions saveOptions)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.saveOptions
- HTML save options.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.public void save(java.lang.String path, MarkdownSaveOptions saveOptions)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.saveOptions
- Markdown save options.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(java.lang.String path, TextSaveOptions saveOptions)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.saveOptions
- Text save options.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(Url url, MarkdownSaveOptions saveOptions)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.saveOptions
- Markdown save options.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.public void save(Url url, TextSaveOptions saveOptions)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.saveOptions
- Text save options.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.public void save(java.lang.String path, MHTMLSaveOptions saveOptions)
Saves the document to local file specified by path
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
path
- Local path to output file.saveOptions
- MHTML save options.com.aspose.ms.System.ArgumentException
- Raised if the specified path
is not a valid local file path.public void save(Url url, MHTMLSaveOptions saveOptions)
Saves the document to local file specified by url
. All resources used in this document will be saved in
to adjacent folder, whose name will be constructed as: output_file_name + "_files".
url
- Local URL to output file.saveOptions
- MHTML save options.com.aspose.ms.System.ArgumentException
- Raised if the specified url
is not a valid local file URL.