14 XML Export .NET Classes

This chapter describes the XML Export .NET classes.

The following classes are covered:

14.1 ArchiveNode Class

ArchiveNode provides information about an archive node. This is a read-only class where the technology fills in all the values.

Namespace

OutsideIn

Properties

  • IsDirectory (Boolean) A value of true indicates that the record is an archive node.

  • FileSize (Int32) File size of the archive node

  • NodeTime (Int32) Time the archive node was created

  • NodeNum (Int32) Serial number of the archive node in the archive

  • NodeName (String) The name of the archive node

14.2 Callback Class

Callback messages are notifications that come from Outside In during the export process, providing information and sometimes the opportunity to customize the generated output.

Namespace

OutsideIn

To access callback messages, your code must create an object that inherits from Callback and pass it through the API's SetCallbackHandler method. Your object can implement methods that override the default behavior for whichever methods your application is interested in.

Callback has three methods: OpenFile, CreateNewFile and NewFileInfo.

14.2.1 OpenFile

OpenFileResponse OpenFile(
      FileTypeValue fileType,
      string fileName
)

This callback is made any time a new file needs to be opened.

Parameters

  • fileType: Type of file being requested to be opened.

  • filename: Name of the file to be open

Return Value

To take action in response to this method, return an OpenFileResponse object.

FileTypeValue Enumeration

This enumeration defines the type of file being requested to be opened. Its value may be one of the following:

  • Input: File to be opened (path unknown)

  • Template: Template file to be opened

  • Path: Full file name of the file to be opened.

  • Other: Not used.

14.2.2 CreateNewFile

CreateNewFileResponse CreateNewFile( FileFormat ParentOutputId,  FileFormat OutputId,
   Association Association, string Path)

This callback is made any time a new output file needs to be generated. This gives the developer the chance to affect where the new output file is created, how it is named, and the URL (if any) used to reference the file.

Parameters

  • ParentOutputId: File format identifier of the parent file.

  • OutputId: File format identifier of the file created.

  • Association: An Association that describes relationship between the primary output file and the new file.

  • Path: Full path of the file to be created.

Return Value

To take action in response to this notification, return a CreateNewFileResponse object with the new file information. If you wish to accept the defaults for the path and URL, you may return null.

14.2.2.1 CreateNewFileResponse Class

This is a class to define a new output file location in response to a CreateNewFile callback. If you do not wish to change the path to the new output file, you may use the path as received. If you do not wish to specify the URL for the new file, you many specify it as null.

Constructor

CreateNewFileResponse(FileInfo File, string URL) 
 
  • File: File object with full path to new file.

  • URL: A new URL that references the newly created file. This parameter can be null.

Association Enumeration

This enumeration defines, for a new file created by an export process, the different possible associations between the new file and the primary output file. Its value may be one of the following:

  • Root - indicates the primary output file

  • Child - a new file linked (directly or indirectly) from the primary output file

  • Sibling - indicates new files not linked from the primary output file

  • Copy - the file was copied as a part of a template macro operation.

  • RequiredName - not used

Note that some of these relationships will not be possible in all Outside In Export SDKs.

14.2.3 NewFileInfo

void NewFileInfo( FileFormat ParentOutputId, FileFormat OutputId,
    Association Association, string Path, string URL)
 

This informational callback is made just after each new file has been created.

Parameters

  • ParentOutputId: File format identifier of the parent file

  • OutputId: File format identifier of the file created

  • Association: An Association that describes relationship between the primary output file and the new file.

  • Path: Full path of the file created

  • URL: URL that references the newly created file

14.3 Exporter Interface

This section describes the properties and methods of Exporter.

All of Outside In's Exporter functionality can be accessed through the Exporter Interface. The object returned by OutsideIn class is an implementation of this interface. This class derives from the Document Interface, which in turn is derived from the OptionsCache Interface.

Namespace

OutsideIn

Methods

  • GetExportStatus

    ExportStatus GetExportStatus()
    

    This function is used to determine if there were conversion problems during an export. The ExportStatus object returned may have information about sub-document failures, areas of a conversion that may not have high fidelity with the original document. When applicable the number of pages in the output is also provided.

  • NewSubDocumentExporter

    Exporter NewSubDocumentExporter(
          int SubDocId,
          SubDocumentIdentifierTypeValue idType
    )
    

    Create a new Exporter for a subdocument.

    SubDocId: Identifier of the subdocument

    idType: Type of subdocument

    SubDocumentIdentifierTypeValue: This is an enumeration for the type of subdocument being opened.

    • IDTYPE_XX: Subdocument to be opened is based on output of XML Export (SubdocId is the value of the object_id attribute of a locator element.)

    • IDTYPE_ATTACHMENT_LOCATOR: Subdocument to be opened is based on the locator value provided by the one of the Export SDKs.

    • IDTYPE_ATTACHMENT_INDEX: Subdocument to be opened is based on the index of the attachment from an email message. (SubdocId is the zero-based index of the attachment from an email message file. The first attachment presented by OutsideIn has the index value 0, the second has the index value 1, etc.)

    Returns: A new Exporter object for the subdocument

  • NewSubObjectExporter

    Exporter NewSubObjectExporter(
          SubObjectTypeValue objType,
          uint data1,
          uint data2,
          uint data3,
          uint data4
    )
    

    Create a new Exporter for a subobject.

    objType: Type of subobject

    data1: Data identifying the subobject from SearchML

    data2: Data identifying the subobject from SearchML

    data3: Data identifying the subobject from SearchML

    data4: Data identifying the subobject from SearchML

    Returns: A new Exporter object for the subobject

    SubObjectTypeValue: An enumeration to describe the type of SubObject to open.

    • LinkedObject

    • EmbeddedObject

    • CompressedFile

    • Attachment

  • NewArchiveNodeExporter

    Exporter NewArchiveNodeExporter(
          int dwRecordNum
    )
    

    Create a new Exporter for an archive node. You may get the number of nodes in an archive using getArchiveNodeCount. The nodes are numbered from 0 to getArchiveNodeCount -1.

    dwRecordNum: The number of the record to retrieve information about. The first node is node 0 and the total number of nodes may be obtained from GetArchiveNodeCount.

    Returns: A new Exporter object for the archive node

  • Export

    void Export()
    

    Perform the conversion and close the Export process.

  • SetExportTemplate

    SetExportTemplate(FileInfo template)
    

    This method sets the template file to be used for export.

    template: A FileInfo object representing the template to be used for export.

  • SetExportTimeout

    OptionsCache SetExportTimeout(int millisecondsTimeout);
    

    This method sets the time that the export process should wait for a response from the Outside In export engine to complete the export of a document, setting an upper limit on the time that will elapse during a call to Export(). If the specified length of time or the default timeout amount is reached before the export has completed, the export operation is terminated and an OutsideInException is thrown. If this option is not set, the default timeout is 5 minutes.

  • Close

    Close()
    

    This function closes the current Export process.

  • NewLocalExporter

    static Exporter NewLocalExporter(Exporter source)

    This method creates and returns an instance of an Exporter object based on the source Exporter. All the options of source are copied to the new Exporter. The source and destination file information will not be copied.

14.3.1 Document Interface

All of the Outside In document-related methods are accessed through the Document Interface.

Namespace

OutsideIn

Methods

  • Close

    void Close()
    

    Closes the currently open document

  • GetArchiveNodeCount

    Int32 GetArchiveNodeCount()
    

    Retrieves the number of nodes in an archive file.

    Returns the number of nodes in the archive file or 0 if the file is not an archive file.

  • GetFileId

    FileFormat GetFileId(FileIdInfoFlagValue dwFlags)
    

    Gets the format of the file based on the technology's content-based file identification process.

    dwFlags: Option to retrieve the file identification pre-Extended or post-Extended Test

    Returns the format identifier of the file.

  • GetObjectInfo

    ObjectInfo GetObjectInfo()
    

    Retrieves the information about an embedded object.

    Return: An ObjectInfo object with the information about the embedded object

  • GetArchiveNode

    ArchiveNode GetArchiveNode(Int32 nNodeNum)
    

    Retrieves information about a record in an archive file. You may get the number of nodes in an archive using getArchiveNodeCount.

    nNodeNum: The number of the record to retrieve information about. The first node is node 0.

    Return Value: An ArchiveNode object with the information about the record

  • SaveArchiveNode

    void SaveArchiveNode(
          Int32 nNodeNum,
          FileInfo fileinfo)
    void SaveArchiveNode(
          Int32 nNodeNum,
          string strFileName)
    

    Extracts a record in an archive file to disk.

    nNodeNumType: The number of the record to retrieve information about. The first node is node 0.

    strFileNameType/fileinfo: Full path of the destination file to which the file will be extracted

  • SaveArchiveNode with ArchiveNode

    void SaveArchiveNode(
          ArchiveNode arcNode,
          FileInfo fileinfo)
    void SaveRecord(
          ArchiveNode arcNode,
          string strFileName)
    

    Extracts a record in an archive file to disk.

    arcNode: An ArchiveNode object retrieved from GetArchiveNodeInfo with information about the node to extract

    strFileNameType/fileinfo: Full path of the destination file to which the file will be extracted

  • SaveArchiveNode with Search Export Flags

    void SaveArchiveNode(
          uint flags,
          uint params1,
          uint params2,
          FileInfo fileinfo)
    void SaveArchiveNode(
          uint flags,
          uint params1,
          uint params2,
          string strFileName)
    

    Extracts a record in an archive file to disk without reading the data for all nodes in the archive in a sequential order. To use this function, you must first process the archive with Search Export and save the Node data for later use in this function.

    flagsType: Special flags value from Search Export

    params1: Data1 from Search Export

    params2: Data2 from Search Export

    strFileNameType/fileinfo: Full path of the destination file to which the file will be extracted

14.3.2 OptionsCache Class

This section describes the OptionsCache class.

The options that configure the way outputs are generated are accessed through the OptionsCache class.

All of the options described in the following subsections are available through this interface. Other methods in this interface are described below.

Namespace

OutsideIn.Options

Methods

  • OptionsCache SetSourceFile(FileInfo file)

    Sets the source document to be opened.

    file: Full path to source file

  • OptionsCache SetSourceFile(string filename)

    Set the source document.

    filename: Full path of the source document

    Returns: The options cache object associated with this document

  • OptionsCache AddSourceFile(FileInfo file)

    Sets the next source document file to be exported in sequence. This allows multiple documents to be exported to the same output destination.

    file: Full path to source file

  • OptionsCache SetSourceFormat(FileFormat fileId)

    Sets the source format to process the input file as, ignoring the algorithmic detection of the file type.

    fileId: the format to treat the input document as.

  • OptionsCache SetDestinationFile(FileInfo file)

    Sets the location of the destination file.

    file: Full path to the destination file

  • OptionsCache SetDestinationFile(string filename)

    Set the location of the destination file.

    filename: Full path to the destination file

    returns: The updated options object

  • OptionsCache SetDestinationFormat(FileFormat fileId)

    Sets the destination file format to which the file should be converted to.

    fileId: the format to convert the input document(s) to.

  • OptionsCache SetCallbackHandler(Callback callback)

    Sets the object to use to handle callbacks.

    callback: the callback handling object.

  • OptionsCache SetPasswordsList(List<String> Passwords)

    Provides a list of strings to use as passwords for encrypted documents. The technology will cycle through this list until a successful password is found or the list is exhausted.

    Passwords: List of strings to be used as passwords.

  • OptionsCache SetLotusNotesId(String NotesIdFile)

    Sets the Lotus Notes ID file location.

    NotesIdFile: Full path to the Notes ID file.

  • OptionsCache SetOpenForNonSequentialAccess(bool bOpenForNonSequentialAccess)

    Setting this option causes the technology to open archive files in a special mode that is only usable for non-sequential access of nodes.

    bOpenForNonSequentialAccess : If set to true would open the archive file in the special access mode. Note that turning this flag on a non-archive file will throw an exception at RunExport time.

  • OptionsCache SetSourceFile(Stream file)

    Set an input stream as the source document. Exporting a file using this method may have issues with files that require the original name of the file (example: extension of the file for identification purposes or name of a secondary file dependent on the name/path of this file).

  • OptionsCache SetSourceFile(Stream file, String Filename)

    Set an input stream as the source document and provide information about the filename (fully qualified path or file name that may be used to derive the extension of the file or name of a secondary file dependent on the name/path of this file).

  • OptionsCache SetNextSourceFile(Stream file)

    Set an input stream as the next source document to be exported to the original destination file. This method has the same limitations as the similar SetSourceFile(Stream file) method.

  • OptionsCache SetNextSourceFile(Stream file, String Filename)

    Set an input stream as the next source document to be exported to the original destination file. The file name provided is used as in the method SetSourceFile(Stream file, String Filename)

  • OptionsCache SetNextSourceFile(FileInfo file)

    Set an input stream as the next source document to be exported to the original destination file.

  • OptionsCache SetDestinationFile(Stream file)

    Set an output stream as the destination for an export.

14.3.2.1 AcceptAlternateGraphics

OIT Option ID: SCCOPT_ACCEPT_ALT_GRAPHICS

This option enables an optimization in XML Export's graphics output when exporting embedded graphics from an input document. When this option is set to true and the input document contains embedded graphics that are already in one of our supported output formats, they will be copied to output files rather than converted to the selected output format specified by the GraphicType option.

For example, if this option is set to true and the selected output graphics type is GIF, an input document's embedded JPEG graphic will be copied to a JPEG output file rather than being converted to the GIF format. The same behavior applies to all of XML Export's supported graphics output formats (currently GIF, JPEG, and PNG.)

If this option is set to false, all graphics output will be in the format specified by the GraphicType option.

Note:

When using this option, JPEG files will be transferred directly to their output file location, without being filtered. This presents the possibility that any JPEG viruses in the file can be transferred to that location, as well.

Data Type

bool

Data

  • true: FI_GIF, FI_JPEGFIF, and FI_PNG embeddings will be extracted, not converted. All other embeddings will be converted to the format specified by GraphicType. If graphicType is set to FI_NONE, no embeddings will be extracted or converted.

  • false: All embeddings will be converted to the format specified by GraphicType. Embeddings that are already in that format will be extracted, not converted. If graphicType is set to FI_NONE, no embeddings will be extracted or converted.

Default

false

14.3.2.2 DefaultInputCharacterSet

OIT Option ID: SCCOPT_DEFAULTINPUTCHARSET

This option is used in cases where Outside In cannot determine the character set used to encode the text of an input file. When all other means of determining the file's character set are exhausted, Outside In will assume that an input document is encoded in the character set specified by this option. This is most often used when reading plain-text files, but may also be used when reading HTML or PDF files.

Data Type

DefaultInputCharacterSetValue

DefaultInputCharacterSetValue Enumeration

DefaultInputCharacterSetValue can be one of the following enumerations:

SystemDefault

Unicode

BigEndianUnicode

LittleEndianUnicode

Utf8

Utf7

Ascii

UnixJapanese

UnixJapaneseEuc

UnixChineseTrad1

UnixChineseEucTrad1

UnixChineseTrad2

UnixChineseEucTrad2

UnixKorean

UnixChineseSimple

Ebcdic37

Ebcdic273

Ebcdic274

Ebcdic277

Ebcdic278

Ebcdic280

Ebcdic282

Ebcdic284

Ebcdic285

Ebcdic297

Ebcdic500

Ebcdic1026

Dos437

Dos737

Dos850

Dos852

Dos855

Dos857

Dos860

Dos861

Dos863

Dos865

Dos866

Dos869

Windows874

Windows932

Windows936

Windows949

Windows950

Windows1250

Windows1251

Windows1252

Windows1253

Windows1254

Windows1255

Windows1256

Windows1257

Iso8859_1

Iso8859_2

Iso8859_3

Iso8859_4

Iso8859_5

Iso8859_6

Iso8859_7

Iso8859_8

Iso8859_9

MacRoman

MacCroatian

MacRomanian

MacTurkish

MacIcelandic

MacCyrillic

MacGreek

MacCE

MacHebrew

MacArabic

MacJapanese

HPRoman8

BiDiOldCode

BiDiPC8

BiDiE0

RussianKOI8

JapaneseX0201

Default

SystemDefault

14.3.2.3 DocumentMemoryMode

OIT Option ID: SCCOPT_DOCUMENTMEMORYMODE

This option determines the maximum amount of memory that the chunker may use to store the document's data, from 4 MB to 1 GB. The more memory the chunker has available to it, the less often it needs to re-read data from the document.

Data

  • SMALLEST: 1 - 4MB

  • SMALL: 2 - 16MB

  • MEDIUM: 3 - 64MB

  • LARGE: 4 - 256MB

  • LARGEST: 5 - 1 GB

Default

SMALL: 2 - 16MB

14.3.2.4 ExtractXMPMetadata

OIT Option ID: SCCOPT_EXTRACTXMPMETADATA

Adobe's Extensible Metadata Platform (XMP) is a labeling technology that allows you to embed data about a file, known as metadata, into the file itself. This option enables the XMP feature, which does not interpret the XMP metadata, but passes it straight through without any interpretation. This option will be ignored if the ParseXMPMetadata option is enabled.

Data Type

bool

Data

  • true: This setting enables XMP extraction.

  • false: This setting disables XMP extraction.

Default

  • false

14.3.2.5 FallbackFormat

This option controls how files are handled when their specific application type cannot be determined. This normally affects all plain-text files, because plain-text files are generally identified by process of elimination, for example, when a file isn't identified as having been created by a known application, it is treated as a plain-text file. It is recommended that None be set to prevent the conversion from exporting unidentified binary files as though they were text, which could generate many pages of "garbage" output.

Data Type

FallbackFormatValue

FallbackFormatValue Enumeration

  • Text: Unidentified file types will be treated as text files.

  • None: Outside In will not attempt to process files whose type cannot be identified

Default

Text

14.3.2.6 GraphicHeight

OIT Option ID: SCCOPT_GRAPHIC_HEIGHT

This option defines the absolute height in pixels to which exported graphics will be resized. If this option is set and the GraphicWidth option is not, the width of the image will be calculated based on the aspect ratio of the source image. The developer should be aware that very large values for this option or GraphicWidth could produce images whose size exceeds available system memory, resulting in conversion failure.

If you are exporting a non-graphic file (word processing, spreadsheet or archive) and the settings for GraphicHeight and GraphicWidth do not match the aspect ratio of the original document, the exported image will have whitespace added so that the original file's aspect ratio is maintained.

The settings for the GraphicHeightLimit and GraphicWidth options can override the setting for GraphicHeight.

Data Type

Int32

14.3.2.7 GraphicHeightLimit

OIT Option ID: SCCOPT_GRAPHIC_HEIGHTLIMIT

Note that this option differs from the behavior of setting the height of graphics in that it sets an upper limit on the image height. Images larger than this limit will be reduced to the limit value. However, images smaller than this height will not be enlarged when using this option. Setting the height using GraphicHeight causes all output images to be reduced or enlarged to be of the specified height.

Data Type

Int32

14.3.2.8 GraphicOutputDPI

OIT Option ID: SCCOPT_GRAPHIC_OUTPUTDPI

This option allows the user to specify the output graphics device's resolution in DPI and only applies to images whose size is specified in physical units (in/cm). For example, consider a 1" square, 100 DPI graphic that is to be rendered on a 50 DPI device (GraphicOutputDPI is set to 50). In this case, the size of the resulting TIFF, BMP, JPEG, GIF, or PNG will be 50 x 50 pixels.

In addition, the special #define of SCCGRAPHIC_MAINTAIN_IMAGE_DPI, which is defined as 0, can be used to suppress any dimensional changes to an image. In other words, a 1" square, 100 DPI graphic will be converted to an image that is 100 x 100 pixels in size. This value indicates that the DPI of the output device is not important. It extracts the maximum resolution from the input image with the smallest exported image size.

Setting this option to SCCGRAPHIC_MAINTAIN_IMAGE_DPI may result in the creation of extremely large images. Be aware that there may be limitations in the system running this technology that could result in undesirably large bandwidth consumption or an error message. Additionally, an out of memory error message will be generated if system memory is insufficient to handle a particularly large image.

Also note that the SCCGRAPHIC_MAINTAIN_IMAGE_DPI setting will force the technology to use the DPI settings already present in raster images, but will use the current screen resolution as the DPI setting for any other type of input file.

For some output graphic types, there may be a discrepancy between the value set by this option and the DPI value reported by some graphics applications. The discrepancy occurs when the output format uses metric units (DPM, or dots per meter) instead of English units (DPI, or dots per inch). Depending on how the graphics application performs rounding on meters to inches conversions, the DPI value reported may be 1 unit more than expected. An example of a format which may exhibit this problem is PNG.

The maximum value that can be set is 2400 DPI; the default is 96 DPI.

Data Type

Int32

14.3.2.9 GraphicSizeLimit

OIT Option ID: SCCOPT_GRAPHIC_SIZELIMIT

This option is used to set the maximum size of the exported graphic in pixels. It may be used to prevent inordinately large graphics from being converted to equally cumbersome output files, thus preventing bandwidth waste.

This setting takes precedence over all other options and settings that affect the size of a converted graphic.

When creating a multi-page TIFF file, this limit is applied on a per page basis. It is not a pixel limit on the entire output file.

Data Type

Int32

14.3.2.10 GraphicSizeMethod

OIT Option ID: SCCOPT_GRAPHIC_SIZEMETHOD

This option determines the method used to size graphics. The developer can choose among three methods, each of which involves some degree of trade off between the quality of the resulting image and speed of conversion.

Using the quick sizing option results in the fastest conversion of color graphics, though the quality of the converted graphic will be somewhat degraded. The smooth sizing option results in a more accurate representation of the original graphic, as it uses anti-aliasing. Antialiased images may appear smoother and can be easier to read, but rendering when this option is set will require additional processing time. The grayscale only option also uses antialiasing, but only for grayscale graphics, and the quick sizing option for any color graphics.

The smooth sizing option does not work on images which have a width or height of more than 4096 pixels.

Data Type

  • GRAPHICSIZEMETHOD_VALUES

14.3.2.11 GraphicWidth

OIT Option ID: SCCOPT_GRAPHIC_WIDTH

This option defines the absolute width in pixels to which exported graphics will be resized. If this option is set and the GraphicHeight option is not, the height of the image will be calculated based on the aspect ratio of the source image. The developer should be aware that very large values for this option or GraphicHeight could produce images whose size exceeds available system memory, resulting in conversion failure.

If you are exporting a non-graphic file (word processing, spreadsheet or archive) and the settings for GraphicHeight and GraphicWidth do not match the aspect ratio of the original document, the exported image will have whitespace added so that the original file's aspect ratio is maintained.

The settings for the GraphicHeightLimit and GraphicWidthLimit options can override the setting for GraphicWidth.

Data Type

Int32

14.3.2.12 GraphicWidthLimit

OIT Option ID: SCCOPT_GRAPHIC_WIDTHLIMIT

This option allows a hard limit to be set for how wide in pixels an exported graphic may be. Any images wider than this limit will be resized to match the limit. It should be noted that regardless whether the GraphicHeightLimit option is set or not, any resized images will preserve their original aspect ratio.

Note that this option differs from the behavior of setting the width of graphics by using GraphicWidth in that it sets an upper limit on the image width. Images larger than this limit will be reduced to the limit value. However, images smaller than this width will not be enlarged when using this option. Setting the width using GraphicWidth causes all output images to be reduced or enlarged to be of the specified width.

Data Type

Int32

14.3.2.13 IECondCommentMode

OIT Option ID: SCCOPT_HTML_COND_COMMENT_MODE

Some HTML input files may include "conditional comments", which are HTML comments that mark areas of HTML to be interpreted in specific versions of Internet Explorer, while being ignored by other browsers. This option allows you to control how the content contained within conditional comments will be interpreted by Outside In's HTML parsing code.

Data

  • NONE: Don't output any conditional comment

  • IE5: Include the IE5 comments

  • IE6: Include the IE6 comments

  • IE7: Include the IE7 comments

  • IE8: Include the IE8 comments

  • IE9: Include the IE9 comments

  • ALL: Include all conditional comments

14.3.2.14 IgnorePassword

OIT Option ID: SCCOPT_IGNORE_PASSWORD

This option can disable the password verification of files where the contents can be processed without validation of the password. If this option is not set, the filter should prompt for a password if it handles password-protected files.

Data Type

bool

14.3.2.15 InterlacedGIFs

OIT Option ID: SCCOPT_GIF_INTERLACED

This option allows the developer to specify interlaced or non-interlaced GIF output. Interlaced GIFs are useful when graphics are to be downloaded over slow Internet connections. They allow the browser to begin to render a low-resolution view of the graphic quickly and then increase the quality of the image as it is received. There is no real penalty for using interlaced graphics.

This option is only valid if the dwOutputID parameter of the EXOpenExport function is set to FI_GIF.

Data Type

bool

14.3.2.16 ISODateTimes

OIT Option ID: SCCOPT_FORMATFLAGS

When this flag is set, all Date and Time values are converted to the ISO 8601 standard. This conversion can only be performed using dates that are stored as numeric data within the original file.

Data

bool

Default

false

14.3.2.17 JPEGQuality

OIT Option ID: SCCOPT_JPEG_QUALITY

This option allows the developer to specify the lossyness of JPEG compression. The option is only valid if the dwOutputID parameter of the EXOpenExport function is set to FI_JPEGFIF.

Data Type

Int32

Data

A value from 1 to 100, with 100 being the highest quality but the least compression, and 1 being the lowest quality but the most compression.

Default

100

14.3.2.18 LotusNotesDirectory

OIT Option ID: SCCOPT_LOTUSNOTESDIRECTORY

This option allows the developer to specify the location of a Lotus Notes or Domino installation for use by the NSF filter. A valid Lotus installation directory must contain the file nnotes.dll.

Data

A path to the Lotus Notes directory.

Default

If this option isn't set, then OIT will first attempt to load the Lotus library according to the operating system's PATH environment variable, and then attempt to find and load the Lotus library as indicated in HKEY_CLASSES_ROOT\Notes.Link.

14.3.2.19 OutputGraphicType

OIT Option ID: SCCOPT_GRAPHIC_TYPE

This option allows the developer to specify the format of the graphics produced by the technology.

  • When setting this option, remember that the JPEG file format does not support transparency.

  • Though the GIF file format supports transparency, it is limited to using only one of its 256 available colors to represent a transparent pixel ("index transparency").

  • PNG supports many types of transparency. The PNG files written by HTML Export are created so that various levels of transparency are possible for each pixel. This is achieved through the implementation of an 8-bit "alpha channel".

There is a special optimization that HTML Export can make when this option is set to None. Some of the Outside In Viewer Technology's import filters can be optimized to ignore certain types of graphics.

Data Type

OutputGraphicTypeValue

OutputGraphicTypeValue Enumeration

These are the possible values for OutputGraphicType:

  • GIF: Create GIF images

  • JPEG: Create JPEG/JFIF images

  • PNG: Create PNG images

  • NONE: Turn off graphic conversions

Default

JPEG

14.3.2.20 ParseXMPMetadata

OIT Option ID: SCCOPT_PARSEXMPMETADATA

Adobe's Extensible Metadata Platform (XMP) is a labeling technology that allows you to embed data about a file, known as metadata, into the file itself. This option enables parsing of the XMP data into normal OIT document properties. Enabling this option may cause the loss of some regular data in premium graphics filters (such as Postscript), but won't affect most formats (such as PDF).

Data Type

bool

Data

  • true: This setting enables parsing XMP.

  • false: This setting disables parsing XMP.

Default

false

14.3.2.21 PDFReorderBiDi

OIT Option ID: SCCOPT_PDF_FILTER_REORDER_BIDI

This option controls whether or not the PDF filter will attempt to reorder bidirectional text runs so that the output is in standard logical order as used by the Unicode 2.0 and later specification. This additional processing will result in slower filter performance according to the amount of bidirectional data in the file.

PDFReorderBiDiValue Enumeration

This enumeration defines the type of Bidirection text reordering the PDF filter should perform.

  • StandardBiDi: Do not attempt to reorder bidirectional text runs.

  • ReorderedBiDi: Attempt to reorder bidirectional text runs.

14.3.2.22 PerformExtendedFI

OIT Option ID: SCCOPT_FIFLAGS

This option affects how an input file's internal format (application type) is identified when the file is first opened by the Outside In technology. When the extended test flag is in effect, and an input file is identified as being either 7-bit ASCII, EBCDIC, or Unicode, the file's contents will be interpreted as such by the export process.

The extended test is optional because it requires extra processing and cannot guarantee complete accuracy (which would require the inspection of every single byte in a file to eliminate false positives.)

Data Type

bool

Data

One of the following values:

  • false: When this is set, standard file identification behavior occurs.

  • true: If set, the File Identification code will run an extended test on all files that are not identified.

Default

true

14.3.2.23 ProcessOLEEmbeddingMode

OIT Option ID: SCCOPT_PROCESS_OLE_EMBEDDINGS

Microsoft Powerpoint versions from 1997 through 2003 had the capability to embed OLE documents in the Powerpoint files. This option controls which embeddings are to be processed as native (OLE) documents and which are processed using the alternate graphic.

Note:

The Microsoft Powerpoint application sometimes does embed known Microsoft OLE embeddings (such as Visio, Project) as an "Unknown" type. To process these embeddings, the ProcessOLEEmbedAll option is required. Post Office-2003 products such as Office 2007 embeddings also fall into this category.

Data

  • Standard: Process embeddings that are known standard embeddings. These include Office 2003 versions of Word, Excel, Visio, etc.

  • All: Process all embeddings in the file.

  • None: Process none of the embeddings in the file.

Default

Standard

14.3.2.24 RenderEmbeddedFonts

This option allows you to disable the use of embedded fonts in PDF input files. If the option is set to true, the embedded fonts in the PDF input are used to render text; if the option is set to false, the embedded fonts are not used and the fallback is to use fonts available to Outside In to render text.

Data Type

bool

Default

true

14.3.2.25 ShowArchiveFullPath

OIT Option ID: SCCOPT_ARCFULLPATH

This option causes the full path of a node to be returned in "GetArchiveNodeInfo" and "GetObjectInfo".

Data Type

bool

Data

  • true: Provide the full path.

  • false: Do not provide the path.

Default

false

14.3.2.26 StrictFile

When an embedded file or URL can't be opened with the full path, OutsideIn will sometimes try and open the referenced file from other locations, including the current directory. When this option is set, it will prevent OutsideIn from trying to open the file from any location other than the fully qualified path or URL.

Data Type

bool

Default

false

14.3.2.27 TimeZoneOffset

OIT Option ID: SCCOPT_TIMEZONE

This option allows the user to define an offset to GMT that will be applied during date formatting, allowing date values to be displayed in a selectable time zone. This option affects the formatting of numbers that have been defined as date values. This option will not affect dates that are stored as text. To query the operating system for the time zone set on the machine, specify TimeZoneOffset_UseNative.

Note:

Daylight savings is not supported. The sent time in msg files when viewed in Outlook can be an hour different from the time sent when an image of the msg file is created.

Data Type

Int32

Data

Integer parameter from -96 to 96, representing 15-minute offsets from GMT. To query the operating system for the time zone set on the machine, specify SCC_TIMEZONE_USENATIVE.

Default

  • 0: GMT time

14.3.2.28 UnmappableCharacter

OIT Option ID: SCCOPT_UNMAPPABLECHAR

This option selects the character used when a character cannot be found in the output character set. This option takes the Unicode value for the replacement character. It is left to the user to make sure that the selected replacement character is available in the output character set.

Data Type

UShort

Data

The Unicode value for the character to use.

Default

  • 0x002a = "*"

14.3.2.29 XMLDefinitionReference

This option determines whether the converted file will reference a specified schema, DTD, or no reference when generating output.

Data Type

XMLReference

Data

A XMLReference object that defines the XML Definition Reference to be used.

Default

No reference defined

14.3.2.30 XXFormatOptions

This option is a set of flags that are specific to XML Export output files.

Data Type

XXFormatOptionValues

XXFormatOptionValues Enumeration

The following set of flags:

  • Delimiters: Often, files have individual characters that are placed at specific draw locations. Consequently, the Flexiondoc converter produces individual draw_text characters without any indication of word boundaries. This flag forces the Flexiondoc converter to attempt to determine where words and lines end. The input filters indicate these positions by producing a WORD_DELIMITER for word endings, and a DELIMITER for line endings. These delimiters are passed along in the Flexiondoc output to assist the user in reconstructing words and lines.

  • OptimizeSections: Use wp.section elements to delineate column references.

  • FlattenStyles: Flatten styles to eliminate the need to process the "based-on=" attribute. By turning on this option, paragraph style should all be fully attributed. Character styles can't be fullly attributed, that is, they won't always be completely flattened.

  • ProcessArchiveSubDocuments: Process all archive sub-objects and put the output in the main Flexiondoc output

  • ProcessAttachmentSubDocuments: Process all attachments and put the output in the main Flexiondoc output

  • ProcessEmbeddingSubDocuments: Process all embeddings and put the output in the main Flexiondoc output

  • RemoveFontGroups: Replace font groups with references to individual fonts.

  • IncludeTextOffsets: Include text_offset attribute on tx.p and tx.r elements.

  • SeparateStyleTables: Enabling this flag will cause the style_tables subtree to be streamed to a separate output unit. This item is deprecated.

  • UseFullFilePaths: Locators for externalized embeddings will contain full, absolute path names.

  • BitmapAsBitmap: dr.image objects are converted to a graphic file and the resulting file is referenced by the locator child of the dr.image.

  • ChartAsBitmap: ch.chart objects are converted to a graphic file and the resulting file is referenced by the locator child of the ch.chart.

  • PresentationAsBitmap: pr.slide objects are converted to a graphic file and the resulting file is referenced by the locator child of the pr.slide.

  • VectorAsBitmap: dr.drawing objects are converted to a graphic file and the resulting file is referenced by the locator child of the dr.drawing.

  • GenerateSystemMetaData: When this flag is set, system metadata will be generated. This information is gathered through system calls and may adversely affect performance.

  • NoBitmapElements: Bitmap graphics are suppressed; no dr.image content will appear in the converted document.

  • NoChartElements: Charts are suppressed; no ch.chart content will appear in the converted document.

  • NoPresentationElements: Presentation slides are suppressed; no pr.slide content will appear in the converted document.

  • NoVectorElements: Vector drawings are suppressed; no dr.drawing content will appear in the converted document.

  • These next four flags are mutually exclusive:

    • DefaultCharacterMapping: Default behavior: All text is mapped to Unicode, in tx.text elements.

    • NoCharacterMapping: All text is left in the original character set, in tx.utext elements.

    • MapText: Text is mapped to Unicode where possible, unmappable text is left in the original character set.

    • MappedAndUnmappedCharacters: Both mapped and unmapped text is included as an alt element containing tx.text and tx.utext.

Default

RemoveFontGroups

14.4 ExportStatus Class

The ExportStatus class provides access to information about a conversion. This information may include information about sub-document failures, areas of a conversion that may not have high fidelity with the original document. When applicable the number of pages in the output is also provided.

Namespace

OutsideIn

Properties

  • PageCount (Int32) - A count of all of the output pages produced during an export operation.

  • StatusFlags (ExportStatusFlags) - Gets the information about possible fidelity issues with the original document.

  • SubDocsFailed (Int32) - Number of sub documents that were not converted.

  • SubDocsPassed (Int32) - Number of sub documents that were successfully converted.

ExportStatusFlags Enumeration

This enumeration is the set of possible known problems that can occur during an export process.

  • NoInformationAvailable: No Information is available.

  • MissingMap: A PDF text run was missing the toUnicode table.

  • VerticalText: A vertical text run was present.

  • TextEffects: A run that had unsupported text effects applied. One example is Word Art.

  • UnsupportedCompression: A graphic had an unsupported compression.

  • UnsupportedColorSpace: A graphic had an unsupported color space.

  • Forms: A sub documents had forms.

  • RightToLeftTables: A table had right to left columns.

  • Equations: A file had equations.

  • AliasedFont: The desired font was missing, but a font alias was used.

  • MissingFont: The desired font wasn't present on the system.

  • SubDocFailed: a sub-document was not converted.

  • TypeThreeFont: A type 3 font was encountered.

  • UnsupportedShading: An unsupported shading pattern was encountered.

  • InvalidHTML: An HTML parse error, as defined by the W3C, was encountered.

14.5 FileFormat Class

This class defines the identifiers for file formats.

Namespace

OutsideIn

Methods

  • getDescription

    String getDescription()

    This method returns the description of the format.

  • getId

    int getId()

    This method returns the numeric identifier of the format.

  • forId

    FileFormat forId(int id)

    This method returns the FileFormat object for the given identifier.

    id : The numeric identifier for which the corresponding FileFormat object is returned.

14.6 ObjectInfo Class

ObjectInfo provides all the information available about the OIT Object. This is a read only class where the technology fills in all the values.

Namespace

OutsideIn.Options

Properties

  • Compression (Int32) The type of compression used to store the object, if known.

  • Flags (ObjectInfoFlags) Flags indicating attributes of the object.

  • FormatId (FileFormat) The format Identifier of the object.

  • Name (String) Name of the object.

ObjectInfoFlags Enumeration

Bit fields to describe information about an object.

  • PartialFile: Object would not normally exist outside the source document

  • ProtectedFile: Object is encrypted or password protected

  • UnsupportedCompression: Object uses an unsupported compression mechanism

  • DRMFile: Object uses Digital Rights Management protection

  • UnidentifiedFile: Object is extracted, but can not successfully identified

  • LinkToFile: Object links to file, it can not be extracted

  • EncryptedFile: Object is encrypted and can be decrypted with the known password

14.7 Option Interface

The Option Interface provides the methods and properties to retrieve information about an Outside In Option.

Namespace

Outside In

Properties

  • Name — Name of the option

  • Description — Description of the option

  • DataType  — The type of the option value

  • SupportingProducts — The list of products that support this option

Method

void Set(OptionsCache exporter, Object objValue);

This method sets the option to the exporter object.

  • exporter — The exporter option

  • objValue — Value of the option

Note:

If the type of objValue cannot be converted to the data type the option is expecting, an OutsideInCastException is thrown.

OutsideInProducts Enumeration

  • HTMLExport — Outside In HTML Export

  • ImageExport — Outside In Image Export

  • PDFExport — Outside In PDF Export

  • SearchExport — Outside In Search Export

  • WebViewExport — Outside In Web View Export

  • XMLExport — Outside In XML Export

  • AllExports — All Outside In export products

14.8 OutsideIn Class

This is a utility class that creates an instance of an Exporter object on request.

Namespace

OutsideIn

Methods

static Exporter NewLocalExporter()

This method creates an instance of an Exporter object. It returns a newly created Exporter object.

static Exporter NewLocalExporter(Exporter source)

This method creates and returns an instance of an Exporter object based on the source Exporter. All the options of source are copied to the new Exporter. The source and destination file information will not be copied.

14.9 OutsideInException Class

This is the exception that is thrown when an Outside In Technology error occurs.

This class derives from the Exception class. This class has no public methods or properties except those of the parent Exception class.

Namespace

OutsideIn

14.9.1 OutsideInCastException Class

This exception is thrown when an invalid value is provided as an option value.

This class derives from the OutsideInException class. This class has no public methods or properties except those of the parent Exception class.

Namespace

OutsideIn

14.10 XMLReference Class

The XMLReference class is a data class used to define the XML definition reference to be used.

Namespace

OutsideIn.Options

Constructors

XMLReference()

Create an instance of a XMLReference object using No XML defintion reference

XMLReference(XMLReference.ReferenceMethodValue, String)

Create an instance of a XMLReference object to provide a DTD/XSD

ReferenceMethodValue Enumeration

This enumeration is used to set whether Export will reference a schema, a DTD, or no reference when generating output.

  • DTD: Document Type Definition (DTD)

  • XSD: Extensible Schema Definition

  • NONE: No definition reference