←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
Java
Objective-C
C++
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 multi-page 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.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Writer Assembly