←Select platform

AddPage Method

Summary

Adds a new page to current document being created.

Syntax
C#
VB
Objective-C
C++
Java
public void AddPage( 
   DocumentWriterPage page 
) 
Public Sub AddPage( _ 
   ByVal page As DocumentWriterPage _ 
)  
- (BOOL)addPage:(LTDocumentPage *)page  
       progress:(nullable LTDocumentWriterProgressHandler)progress  
          error:(NSError **)error 
public void addPage(DocumentWriterPage page) 
public: 
void AddPage(  
   DocumentWriterPage^ page 
)  

Parameters

page
The new page properties

Remarks

This method can be called multiple times for each page to be added to the new document. To create a new document and on information on how to use the DocumentWriter class, Refer to LEADTOOLS Document Writers for more information.

Depending on the type of the page, the SvgDocument, DocumentWriterEmfPage.EmfHandle or DocumentWriterRasterPage.Image property of the page parameter must contain a valid object. The DocumentWriterSvgPage.Image, DocumentWriterEmfPage.Image property is optional and is used only when the document being created is PDF with the Image/Text overlay option. To create a PDF document with image/text overlay, perform the following steps:

AddPage will append the new page at the end of the document. To insert a page at a random place in the document, use InsertPage. Note that InsertPage is only supported if the was crated using the DocumentFormat.Ltd format.

For more information, refer to PdfDocumentOptions.

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