←Select platform

BeginDocument(string,DocumentFormat) Method

Summary

Creates a new document file and prepares it for the new pages to be added.

Syntax
C#
VB
Objective-C
C++
Java
public void BeginDocument( 
   string fileName, 
   DocumentFormat format 
) 
Public Sub BeginDocument( _ 
   ByVal fileName As String, _ 
   ByVal format As DocumentFormat _ 
)  
- (BOOL)beginDocumentWithFileName:(NSString *)fileName  
                           format:(LTDocumentFormat)format  
                         progress:(nullable LTDocumentWriterProgressHandler)progress  
                            error:(NSError **)error 
public void beginDocument(String fileName, DocumentFormat format) 
public: 
void BeginDocument(  
   String^ fileName, 
   DocumentFormat format 
)  

Parameters

fileName
The name of the new document file.

format
The format of the new document.

Remarks

Use the DocumentWriter class to create multipage and searchable documents from one or more SVG, EMF, or raster image-based pages by calling the following functions:

  1. DocumentWriter.BeginDocument
  2. DocumentWriter.AddPage or DocumentWriter.InsertPage>
  3. DocumentWriter.EndDocument
  4. DocumentWriter.Convert

Refer to LEADTOOLS Document Writers for more information.

Various popular formats are supported, including PDF, DOC/DOCX, XPS, HTML, RTF, and Text. For a list of all the document formats supported, refer to the DocumentFormat enumeration.

Example

For an example, refer to DocumentWriter.

Requirements

Target Platforms

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

Leadtools.Document.Writer Assembly