←Select platform

LastPageNumber Property

Summary
Gets or sets the 1-based index of the last page associated with this PDFPageRange.
Syntax
C#
VB
C++
Java
public int LastPageNumber { get; set; } 
Public Property LastPageNumber As Integer 
public int LastPageNumber; 
public: 
property int LastPageNumber; 

Property Value

An integer number indicating the last page to merge using PDFFile.MergeFiles. You can set this value to -1, which indicates the last page in the file. Otherwise, this value should be greater than or equal to PDFPageRange.FirstPageNumber.

Remarks

The first page to merge is indicated by PDFPageRange.FirstPageNumber.

This property indicates the last page that would be merged. So, if you wish to merge pages 1 and 2, set PDFPageRange.FirstPageNumber to 1 and LastPageNumber to 2.

If you wish to merge only one page (for example 3), you would set PDFPageRange.FirstPageNumber and LastPageNumber to 3.

Example

For an example, refer to PDFFile.MergeFiles.

Requirements

Target Platforms

See Also

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

Leadtools.Pdf Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.