| Converter Class |
Namespace: XmlMind.FoConverter
The Converter type exposes the following members.
| Name | Description | |
|---|---|---|
| AlwaysSaveAsPNG |
Specifies whether JPEG images are always transcoded to PNG.
| |
| BaseUrl |
The base URL of relative paths in attribute values.
| |
| DetectLists |
Specifies whether proper lists should be created by inferring
the numbering style of the list from the label of its first item.
| |
| DocxVariant |
Marks generated DOCX files as being compatible with MS-Word
having specified major version.
| |
| EastAsiaFontFamilies |
May be used to map East Asian font families to Western font families.
| |
| EditRestrictions |
Specifies how the generated document is to be restricted
in terms of editing and/or formatting.
| |
| GenericFontFamilies |
May be used to map generic font families to actual font families.
| |
| ImageRendererResolution |
Default image resolution in DPI, according to the image renderer.
| |
| ImageResolution |
Default image resolution in DPI.
| |
| OutputEncoding |
The conversion output encoding.
| |
| OutputFormat |
The conversion output format.
| |
| PrescaleImages |
The image scaling policy.
| |
| ScreenResolution |
Screen resolution in DPI.
| |
| SingleSidedLayout |
A page layout specifier.
| |
| TargetViewer |
The target RTF viewer.
| |
| UnprotectPassword |
This clear text password lets the user of the word processor
remove the edit restrictions.
| |
| UserStyles |
Specifies the location of an XML file containing the set of user styles
to be used during the conversion.
| |
| UseVML |
Specifies whether images contained in Office Open XML (.docx) files
should be represented using deprecated VML markup rather than
using DrawingML markup.
|
| Name | Description | |
|---|---|---|
| Convert |
Performs the conversion.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetErrorHandler |
Returns the registered error handler.
| |
| GetHashCode | (Inherited from Object.) | |
| GetInput |
Returns specified input.
| |
| GetOutput |
Returns specified output.
| |
| GetType | (Inherited from Object.) | |
| GetUriResolver |
Returns the registered URI resolver.
| |
| ListEncodings |
Lists the available encodings for the specified output format.
| |
| MemberwiseClone | (Inherited from Object.) | |
| ParseEditRestrictions |
Parses edit restrictions specified as a string.
| |
| SetDocumentMeta |
Add, replace or remove specified document metadata.
| |
| SetErrorHandler |
Registers an error handler.
| |
| SetInput(Stream) |
Sets the conversion input source.
| |
| SetInput(TextReader) |
Sets the conversion input source.
| |
| SetInput(String) |
Sets the conversion input source.
| |
| SetInput(XmlReader) |
Sets the conversion input source.
| |
| SetOutput(Stream) |
Sets the conversion output destination.
| |
| SetOutput(TextWriter) |
Sets the conversion output destination.
| |
| SetOutput(String) |
Sets the conversion output destination.
| |
| SetUriResolver |
Registers a URI resolver.
| |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| COMMENTS_ONLY |
Edit restriction:
no changes are permitted, but comments can be inserted.
| |
| FILL_FORMS_ONLY |
Edit restriction:
no changes are permitted, but data can be entered into forms.
| |
| LIMIT_FORMATTING |
No direct formatting (e.g. "Bold", "Italic") and
limit formatting to a selection of styles.
| |
| READ_ONLY |
Edit restriction:
no changes are permitted; the document is read-only.
| |
| TRACKED_CHANGES_ONLY |
Edit restriction:
all changes are permitted, but they're automatically tracked.
| |
| UNRESTRICTED |
No edit restrictions.
|
public void Convert(string input) { Converter converter = new Converter(); converter.OutputFormat = OutputFormat.Wml; converter.SetInput(input); converter.SetOutput(System.Console.Out); converter.Convert(); }