.Dd March 17, 2014
.Dt olecfexport
.Os libolecf
.Sh NAME
.Nm olecfexport
.Nd exports items stored in a Object Linking and Embedding (OLE) Compound File (CF)
.Sh SYNOPSIS
.Nm olecfexport
.Op Fl c Ar codepage
.Op Fl f Ar format
.Op Fl l Ar logfile
.Op Fl m Ar mode
.Op Fl t Ar target
.Op Fl dhqvV
.Va Ar source
.Sh DESCRIPTION
.Nm olecfexport
is a utility to export items stored in a Object Linking and Embedding (OLE) Compound File (CF)
.Pp
.Nm olecfexport
is part of the
.Nm libolecf
package.
.Nm libolecf
is a library to access the Object Linking and Embedding (OLE) Compound File (CF) format
.Pp
.Ar source
is the source file.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl c Ar codepage
specify the codepage of ASCII strings, options: ascii, windows-874, windows-932, windows-936, windows-949, windows-950, windows-1250, windows-1251, windows-1252 (default), windows-1253, windows-1254, windows-1255, windows-1256, windows-1257 or windows-1258
.It Fl d
dumps the item values in a separate file: ItemValues.txt
.It Fl f Ar format
specify the preferred output format, options: all, html, rtf, text (default)
.It Fl h
shows this help
.It Fl l Ar logfile
specify the file in which to log information about the exported items
.It Fl m Ar mode
export mode, option: all, debug, items (default), recovered. 'all' exports the (allocated) items, orphan and recovered items. 'debug' exports all the (allocated) items, also those outside the the root folder. 'items' exports the (allocated) items. 'recovered' exports the orphan and recovered items.
.It Fl q
quiet shows minimal status information
.It Fl t Ar target
specify the basename of the target directory to export to (default is the source filename followed by .export)
.It Fl v
verbose output to stderr
.It Fl V
print version
.El
.Sh ENVIRONMENT
None
.Sh FILES
None
.Sh EXAMPLES
.Bd -literal
# olecfexport file.doc
olecfexport 20101027

.Dl ...

.Ed
.Sh DIAGNOSTICS
Errors, verbose and debug output are printed to stderr when verbose output \-v is enabled.
Verbose and debug output are only printed when enabled at compilation.
.Sh BUGS
Please report bugs of any kind to <joachim.metz@gmail.com> or on the project website:
https://github.com/libyal/libolecf/
.Sh AUTHOR
These man pages were written by Joachim Metz.
.Sh COPYRIGHT
Copyright (C) 2008-2018, Joachim Metz <joachim.metz@gmail.com>.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
.Sh SEE ALSO
.Xr olecfinfo 1
