←Select platform

BeginDocument Method

Summary

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

Syntax

C#
VB
Java
Objective-C
C++
public void BeginDocument(  
   string fileName, 
   Leadtools.Forms.Documentwriters.DocumentFormat format 
) 
Public Sub BeginDocument( _ 
   ByVal fileName As String, _ 
   ByVal format As Leadtools.Forms.Documentwriters.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, 
   Leadtools.Forms.Documentwriters.DocumentFormat format 
) 

Parameters

fileName
The name of new document file.

format
The format of the new document.

Remarks

The DocumentWriter class is used to create multi-page and searchable documents from one or more SVG, EMF or raster image based pages as follows:

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

Refer to LEADTOOLS Document Writers for more information.

Support for various popular formats is included, such as PDF, DOC/DOCX, XPS, HTML, RTF or 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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Forms.DocumentWriters Assembly
Click or drag to resize