T - The modification API type.public class BeforeSavingEventArgs<T extends IModificationAPI> extends Object
Defines the base class for arguments of various before-saving events.
| Modifier and Type | Method and Description |
|---|---|
int |
getAbsolutePageNumber()
Returns the current absolute page number across all documents within the XPS package.
|
int |
getDocumentNumber()
Returns the current document number within the XPS package.
|
T |
getElementAPI()
Returns the modification API of the element that is about to be saved.
|
int |
getOutputPageNumber()
Returns the current output number.
|
int |
getRelativePageNumber()
Returns the current page number relative to the current document within the XPS package.
|
public T getElementAPI()
Returns the modification API of the element that is about to be saved.
public int getDocumentNumber()
Returns the current document number within the XPS package.
public int getRelativePageNumber()
Returns the current page number relative to the current document within the XPS package.
public int getAbsolutePageNumber()
Returns the current absolute page number across all documents within the XPS package.
public int getOutputPageNumber()
Returns the current output number. It differs from AbsolutePageNumber if the PageNumbers save option is specified.
Copyright © 2025 Aspose. All Rights Reserved.