C# Класс OfficeConvert.Converter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Convert ( String inputFile, String outputFile ) : void

Защищенные методы

Метод Описание
IsPasswordProtected ( Stream stream ) : bool

Detects if a given office document is protected by a password or not. Supported formats: Word, Excel and PowerPoint (both legacy and OpenXml).

IsPasswordProtected ( string fileName ) : bool

Detects if a given office document is protected by a password or not. Supported formats: Word, Excel and PowerPoint (both legacy and OpenXml). Source: http://stackoverflow.com/a/26522122

ReadFromStream ( Stream stream, byte buffer ) : void
ScanForPassword ( Stream stream, byte buffer, int sectionSize ) : bool
releaseCOMObject ( object obj ) : void

Описание методов

Convert() публичный абстрактный Метод

public abstract Convert ( String inputFile, String outputFile ) : void
inputFile String
outputFile String
Результат void

IsPasswordProtected() защищенный Метод

Detects if a given office document is protected by a password or not. Supported formats: Word, Excel and PowerPoint (both legacy and OpenXml).
protected IsPasswordProtected ( Stream stream ) : bool
stream Stream Office document stream.
Результат bool

IsPasswordProtected() защищенный Метод

Detects if a given office document is protected by a password or not. Supported formats: Word, Excel and PowerPoint (both legacy and OpenXml). Source: http://stackoverflow.com/a/26522122
protected IsPasswordProtected ( string fileName ) : bool
fileName string Path to an office document.
Результат bool

ReadFromStream() защищенный Метод

protected ReadFromStream ( Stream stream, byte buffer ) : void
stream Stream
buffer byte
Результат void

ScanForPassword() защищенный Метод

protected ScanForPassword ( Stream stream, byte buffer, int sectionSize ) : bool
stream Stream
buffer byte
sectionSize int
Результат bool

releaseCOMObject() защищенный Метод

protected releaseCOMObject ( object obj ) : void
obj object
Результат void