←Select platform

Convert(string,Stream,string,Stream,DocumentFormat) Method

Summary

Converts a document file or stream from the LEADTOOLS Temporary Document (LTD) format to a file or stream that will contain the data in any of the formats supported by the LEADTOOLS Document Writer.

Syntax
C#
VB
C++
public void Convert( 
   string ltdFileName, 
   Stream ltdStream, 
   string outputFileName, 
   Stream outputStream, 
   DocumentFormat format 
) 
Public Sub Convert( 
   ByVal ltdFileName As String, 
   ByVal ltdStream As Stream, 
   ByVal outputFileName As String, 
   ByVal outputStream As Stream, 
   ByVal format As DocumentFormat 
) 
public:  
   void Convert( 
      String^ ltdFileName, 
      Stream^ ltdStream, 
      String^ outputFileName, 
      Stream^ outputStream, 
      DocumentFormat^ format 
   ) 

Parameters

ltdFileName

The name of the file containing existing LEADTOOLS Temporary Document format (LTD) data. Either ltdFileName or

ltdStream must not be null.

ltdStream

The stream containing existing LTD format data. Either ltdFileName or ltdStream must not be null.

outputFileName

The name of the file that will contain the data of the converted document file. Either outputFileName or

outputStream must not be null.

outputStream

The stream that will contain the data of the converted document file. Either outputFileName or outputStream must not be null.

format

The format of the converted document file to be created. This parameter cannot be DocumentFormat.Ltd.

Remarks

Use the Convert method to convert a file or stream created with the proprietary DocumentFormat.Ltd format to any of the other popular formats supported by the LEADTOOLS Document Writers.

The LTD format was created to support adding a large number of pages to a document in one or more sessions. The file created on disk or stream is proprietary and is intended to be converted (after all the pages are collected) to the final desired format such as PDF, DOC, or HTML.

You can also use the DocumentWriter.AppendLtd method to append pages from one LTD file to another.

For more information, refer to DocumentFormat.Ltd.

For more information on creating a document using the LEADTOOLS Document Writer, refer to BeginDocument.

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly