InsertPage Method (original) (raw)
Leadtools.Document.Writer Namespace > Classes > DocumentWriter Class > Methods > InsertPage Method
←Select platform
In This Topic ▼
Summary
Inserts a new page to current document being created.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public void InsertPage(
[DocumentWriterPage](documentwriterpage.html) _page_,
int _pageNumber_
)
- (BOOL)insertPage:(__kindof LTDocumentWriterPage *)page progress:(nullable LTDocumentWriterProgressHandler)progress pageNumber:(NSUInteger)pageNumber error:(NSError **)error NS_SWIFT_NAME(insert(_:progress:pageNumber:));
public void insertPage(DocumentWriterPage page, int pageNumber)
public:
void InsertPage(
[DocumentWriterPage^](documentwriterpage.html) _page_,
int _pageNumber_
)
def InsertPage(self,page,pageNumber):
Parameters
page
The new page properties
pageNumber
1-based number of page.
Remarks
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.
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.
Requirements
See Also
Reference
Programming with LEADTOOLS Document Writers
Files to be Included with Your Application
Unlocking Special LEAD Features
Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.