©
Copyright SautinSoft 2002 - 2009 (3.0.0 - February 16th, 2009) Manual for RTF-to-HTML DLL Win32 - component to convert Text, RTF strings (files) to HTML, XHTML strings (files). |
|
about | methods and properties | code samples | rtf samples | faq | order and pricing | license | support and contacts |
Methods and properties of the RTF-to-HTML DLL Win32The component is created with Visual Studio 2005, it is absolutely standalone and doesn't require anything else. The size of component is about only 700 Kb, the average speed of converting is 4 files/per sec without images and 1 file/per sec with images. The RTF-to-HTML DLL component has a lot
of features, which help you to make output HTML as you wish. Methods int ConvertFile(char *rtfFile, char *outFolder, struct convertOptions opt) - this method takes RTF (or Text) file and converts it into HTML file in the specified directory with specified options.
char * ConvertString(char * rtfBuf, char * htmlBuf, struct convertOptions opt) - this method takes RTF (or Text) string and returns HTML string with specified options. This function return string containing result html or empty string if error occur or serial number is wrong. int flushlist () - call this function to release memory only after function ConvertString() int ResetImageCounter() - reset counter for image names, for example image1.jpg, image2.jpg. After resetting count will strart from 1. convertOptions - options of ouput HTML document. int htmlType - type of ouput HTML file.
char title[120] - HTML page title, which appear between tags <title>...</title>
char extension[10] - extension for output HTML file.
char fontFace[50] - default font face.
char fontSize[10] - default font size.
int preserveImages - if this parameter will be True then images will be preserved.
int preserveFontFace - preserve font faces as in RTF.
int preserveFontSize - preserve font sizes as in RTF.
int preserveFontColor - preserve font colors as in RTF.
int preserveHyperlinks - if this parameter will be True then images will be preserved.
int tableBorders - visible/invisible table borders, True - visible.
int encoding - endcoding for HTML file.
int htmlParts - select parts of HTML which need to produce.
char
imageFolder[500] - path where images will be stored, this
folder must already exist.
char cssStyleName[120] - CSS style name, for example if name is "ts" so styles in HTML will look as <span class="ts1">.
int fontSizesType - CSS style name, for example if name is "ts" so styles in HTML will look as <span class="ts1">.
char imageSubfolder[120] - folder which will be created by DLL to store images.
int hyperlinkTarget - 0 - no target, 1 - target="_blank", 2 - _self, 3 - _parent, 4 - _top.
int cssStartNumber - number for style name, like a .tsN (.ts1 or .ts100).
|
Copyright © 2002-2009, SautinSoft. All rights reserved. |