←Select platform

OriginalPageNumber Property

Summary

The number of this page in the original document.

Syntax
C#
VB
C++
Java
public int OriginalPageNumber { get; } 
Public ReadOnly Property OriginalPageNumber() As Integer 
   Get 
public:  
   property int OriginalPageNumber 
   { 
      int get() 
   } 
public int getOriginalPageNumber() 

Property Value

1-based number of this page in the original document.

Remarks

OriginalPageNumber is the number of this DocumentPage in the original document file. When the document is loaded, OriginalPageNumber and PageNumber will contain the same value. If the user modifies the pages of the document by adding, removing or replacing pages, then the two values will differ. OriginalPageNumber will never change and will still holds the value in the original document while PageNumber will return the current updated number of the page in the document.

When a page is added to the document by the user, the value of OriginalPageNumber will be -1 since it does not correspond to an item in the original document.

This DocumentPage will use OriginalPageNumber when the user calls the methods to obtain data from the original document such as GetImage.

Refer to Loading Using LEADTOOLS Document Library for more information.

Example

For an example, refer to DocumentPage.

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

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