FILERTFOPTIONS

typedef struct _FILERTFOPTIONS 
{ 
   L_UINT uStructSize; 
   L_COLORREF crBackColor; 
   L_UINT uFlags; 
} FILERTFOPTIONS, * pFILERTFOPTIONS; 

The FILERTFOPTIONS structure provides information on loading RTF files in LEADTOOLS.

Comments

pFILERTFOPTIONS is a pointer to a FILERTFOPTIONS structure.

Rich Text Format (RTF) files have no physical width or height in pixels. You can use RASTERIZEDOCOPTIONS to control how the final document is rendered as a raster image. For more information, refer to RASTERIZEDOCOPTIONS.   

Use L_SetRTFOptions and L_GetRTFOptions to set and get the RTF file options.

The following functions make use of this structure:

L_GetEmfHandleFromRtf

L_GetRTFOptions

L_SetRTFOptions

This example will clear the RTF_USE_MULTIPLATFORM and use the legacy windows RTF engine to load RTF files: 
 
FILERTFOPTIONS RTFOptions; 
if(L_GetRTFOptions(&RTFOptions, sizeof(FILERTFOPTIONS)) == SUCCESS) 
{ 
   RTFOptions.uFlags = 0; 
   L_SetRTFOptions(&RTFOptions); 
} 
/* Now if call L_LoadBitmap or L_LoadFile to load your RTF file, the RTF filter will use the legacy RTF engine */ 

Help Version 20.0.2018.7.30
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help