|
Old Member |
New Name |
Comments |
|
Changes to support the Aspose Unified Framework for Opening and Saving Documents. |
|
property
Document.IsTemplate |
deleted |
New LoadFormat and SaveFormat enum values were added to indicate the document is a template format (e.g. LoadFormat.Doc vs LoadFormat.Dot). |
|
method
LoadFormat Document.DetectFileFormat(Stream/String) |
FileFormatInfo FileFormatUtil.DetectFileFormat(Stream/String) |
The method for detecting document format without loading a document has been moved into a utility class and now returns more information and detects more file formats. |
|
constructor
Document(Stream, String)
Document(Stream, String, LoadFormat, String) |
Document (Stream, LoadOptions) |
Document constructors follow the Unified Framework signature now. LoadOptions is the extensible mechanism to control how a document is loaded, for example provide a password or base URI etc. |
|
constructor
Document(String, LoadFormat, String) |
Document(String, LoadOptions) |
Same as above. |
|
property
Document.SaveOptions |
deleted |
Save options are now passed as a parameter to the Document.Save methods. |
|
method
Document.Save(String, SaveFormat, SaveType, HttpResponse) |
Document.Save(HttpResponse, String, ContentDisposition, SaveOptions) |
Signature changed to follow the Aspose Unified Framework pattern. |
|
enum value
SaveType.OpenInBrowser |
ContentDisposition.Inline |
Enum name changed to follow the unified framework. |
|
enum value
SaveType.OpenInApplication |
ContentDisposition.Attachment |
Save as above. |
|
method
Document.SaveToImage(int, int, Stream/String, ImageFormat, ImageOptions)
|
Document.Save(Stream/String, SaveOptions) |
Changed signature to follow the unified pattern. Use the new Document.Save method and SaveFormat.Tiff, SaveFormat.Png etc enums and the ImageSaveOptions object. |
|
method
Document.SaveToPdf(String)
Document.SaveToXps(String) |
Document.Save(String) |
|
|
method
Document.SaveToPdf(int, int, Stream/String, PdfOptions) |
Document.Save(Stream/String, SaveOptions) |
Use the new Document.Save method and the PdfSaveOptions object. |
|
method
Document.SaveToXps(int, int, Stream/String, XpsOptions) |
Document.Save(Stream/String, SaveOptions) |
Use the new Document.Save method and the XpsSaveOptions object. |
|
class
ImageOptions |
SaveImageOptions |
Unified framework. |
|
class
PdfOptions |
PdfSaveOptions |
Unified framework. |
|
class
XpsOptions |
XpsSaveOptions |
Unified framework. |
|
property
SaveOptions.HtmlExportImagesFolder |
HtmlSaveOptons.ImagesFolder |
Unified framework. The SaveOptions class has been split into several classes one for each save format. All property names have been simplified. |
|
property
SaveOptions.TxtExportHeadersFooters |
TxtSaveOptions.ExportHeadersFooters |
Same as above. |
|
property
SaveOptions.PdfExportImagesFolder |
LegacyPdfSaveOptions.ImagesFolder |
Unified framework. This option is for the legacy conversion to PDF using Aspose.Pdf. |
|
Removed all Events and Delegates to facilitate porting of Aspose.Words for .NET to Java. |
|
event
Document.NodeInserted
Document.NodeInserting
Document.NodeRemoved
Document.NodeRemoving |
property
Document.NodeChangingCallback |
Replaced events with a property.
You need to wrap your event handler methods into a class that implements the new INodeChangingCallback. |
|
delegate
NodeChangedEventHandler(Object, NodeChangedEventArgs) |
interface
INodeChangingCallback |
Replaced delegate with an interface to support the above. |
|
class
NodeChangedEventArgs |
class
NodeChangingArgs |
Name changed for consistency with new approach. |
|
delegate
ReplaceEvaluator(Object, ReplaceEvaluatorArgs) |
interface
IReplacingCallback |
Replaced delegate with an interface. |
|
class
ReplaceEvaluatorArgs |
class
ReplacingArgs |
Name change for consistency. |
|
method
Range.Replace(Regex, ReplaceEvaluator, Boolean) |
method
Range.Replace(Regex, IReplacingCallback, Boolean) |
|
|
event
MailMerge.MergeField
MailMerge.MergeImageField |
property
MailMerge.FieldMergingCallback |
Replaced event with a property. |
|
delegate
MergeFieldEventHandler(Object, MergeFieldEventArgs)
delegate
MergeImageFieldEventHandler(Object, MergeImageFieldEventArgs) |
interface
IFieldMergingCallback
methods
FieldMerging(FieldMergingArgs)
ImageFieldMerging(ImageFieldMergingArgs) |
Replaced delegates with an interface. |
|
class
MergeFieldEventArgs |
class
FieldMergingArgs |
Name change for consistency. |
|
class
MergeImageFieldEventArgs |
class
ImageFieldMergingArgs |
Name change for consistency. |
|
event
SaveOptions.HtmlExportFontSaving |
property
HtmlSaveOptions.FontSavingCallback |
Replaced an event with a property. |
|
event
SaveOptions.HtmlExportImageSaving |
property
HtmlSaveOptions.ImageSavingCallback |
Replaced an event with a property. |
|
event
SaveOptions.PdfExportImageSaving |
property
LegacyPdfSaveOptions.ImageSavingCallback |
Replaced an event with a property. |
|
delegate
ExportFontSavingEventHandler |
interface
IFontSavingCallback |
Replaced a delegate with an interface. |
|
delegate
ExportImageSavingEventHandler |
interface
IImageSavingCallback |
Replaced a delegate with an interface. |
|
class
ExportFontSavingEventArgs |
class
FontSavingArgs |
Name change for consistency. |
|
class
ExportImageSavingEventArgs |
class
ImageSavingArgs |
Name change for consistency. |