C# Class OfficeConvert.Converter

Afficher le fichier Open project: teambition/OfficeConverter Class Usage Examples

Méthodes publiques

Méthode Description
Convert ( String inputFile, String outputFile ) : void

Méthodes protégées

Méthode Description
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

Method Details

Convert() public abstract méthode

public abstract Convert ( String inputFile, String outputFile ) : void
inputFile String
outputFile String
Résultat void

IsPasswordProtected() protected méthode

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.
Résultat bool

IsPasswordProtected() protected méthode

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.
Résultat bool

ReadFromStream() protected méthode

protected ReadFromStream ( Stream stream, byte buffer ) : void
stream Stream
buffer byte
Résultat void

ScanForPassword() protected méthode

protected ScanForPassword ( Stream stream, byte buffer, int sectionSize ) : bool
stream Stream
buffer byte
sectionSize int
Résultat bool

releaseCOMObject() protected méthode

protected releaseCOMObject ( object obj ) : void
obj object
Résultat void