Click or drag to resize

OfficeDecoder Class

An implementation of the MultiFramedImageDecoder class allows to render MS Office documents without MS Office installed.
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging.Codec.Office
Assembly:  Atalasoft.dotImage.Office (in Atalasoft.dotImage.Office.dll) Version: 11.5.0.5.0.230 (.NET 4.6.2, x86)
Syntax
public class OfficeDecoder : BaseCommonTextFormatDecoder

The OfficeDecoder type exposes the following members.

Constructors
  NameDescription
Public methodOfficeDecoder
Initializes a new instance of the OfficeDecoder class.
Top
Properties
  NameDescription
Public propertyPageSize
Gets or sets decoded image page size (width and height values). Default values: Height = 0, Width = 0.
(Overrides BaseCommonDecoderPageSize.)
Public propertyRenderSettings
Gets or sets render settings.
Public propertyResolution
Gets or sets a value that specifies the DPI to use when rendering a document. Default value is 96.
(Inherited from BaseCommonDecoder.)
Public propertySupportedImageType Obsolete.
Returns the ImageType that the implemented decoder class supports.
(Inherited from ImageDecoder.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFrameCount(Stream)
Returns the number of frames in the image
(Overrides BaseCommonDecoderGetFrameCount(Stream).)
Public methodGetFrameCount(String)
Returns the number of frames in the image
(Overrides BaseCommonDecoderGetFrameCount(String).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImageInfo(Stream)
Retrieve information from a file data stored in a Stream about the first frame.
(Overrides BaseCommonDecoderGetImageInfo(Stream).)
Public methodGetImageInfo(String)
Retrieve information from a file about the first frame.
(Overrides BaseCommonDecoderGetImageInfo(String).)
Public methodGetImageInfo(Stream, Int32)
Retrieve information from a file data stored in a Stream about specified frame.
(Overrides BaseCommonDecoderGetImageInfo(Stream, Int32).)
Public methodGetImageInfo(String, Int32)
Retrieve information from a file about specified frame.
(Overrides BaseCommonDecoderGetImageInfo(String, Int32).)
Public methodGetTextDocument(Stream)
Creates the text document.
(Overrides BaseCommonTextFormatDecoderGetTextDocument(Stream).)
Public methodGetTextDocument(String)
Creates the text document.
(Overrides BaseCommonTextFormatDecoderGetTextDocument(String).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValidFormat(Stream)
Checks the stream to determine if the image can be read by the decoder that derives this class.
(Overrides BaseCommonDecoderIsValidFormat(Stream).)
Public methodIsValidFormat(String)
Checks the stream to determine if the image can be read by the decoder that derives this class.
(Overrides BaseCommonDecoderIsValidFormat(String).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead(Stream, ProgressEventHandler)
Decode an image in a specified image Stream.
(Inherited from BaseCommonDecoder.)
Public methodRead(String, ProgressEventHandler)
Decode an image from file.
(Inherited from BaseCommonDecoder.)
Public methodRead(Stream, Int32, ProgressEventHandler)
Read a given frame in an encoded image using this decoder.
(Overrides BaseCommonDecoderRead(Stream, Int32, ProgressEventHandler).)
Public methodRead(String, Int32, ProgressEventHandler)
Read a given frame from file using this decoder.
(Overrides BaseCommonDecoderRead(String, Int32, ProgressEventHandler).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
By default this decoder renders only 3000 pages. To extend this limit see the example section.
Examples
To configure page limit, you should add the next line to app.config file:
<Atalasoft>
    <OfficeDecoder LimitsPageCount="3000"/>
    <!-- Components sections -->
    ...
</Atalasoft>
See Also