public class PageCollectionExtensions extends Object
Represents the extension method for updating header and footer pagination.
Constructor and Description |
---|
PageCollectionExtensions() |
Modifier and Type | Method and Description |
---|---|
static void |
addBatesNumbering(PageCollection pageCollection,
com.aspose.ms.System.Action<BatesNArtifact> action)
Adds Bates numbering to each page in the given page collection using the specified action to configure the BatesNArtifact.
|
static void |
addBatesNumbering(PageCollection pageCollection,
BatesNArtifact artifact)
Adds the specified Bates numbering artifact to each page in the given page collection.
|
static void |
addPagination(PageCollection pageCollection,
List<PaginationArtifact> artifacts)
Adds the specified pagination artifacts to each page in the given page collection.
|
static void |
addPaginationInternal(PageCollection pageCollection,
com.aspose.ms.System.Collections.Generic.List<PaginationArtifact> artifacts) |
static void |
deleteBatesNumbering(PageCollection pageCollection)
Deletes all Bates numbering artifacts from each page in the given page collection.
|
static void |
updatePagination(PageCollection pageCollection)
Updates the header and footer page numbers and dates for all pages.
|
public static void updatePagination(PageCollection pageCollection)
Updates the header and footer page numbers and dates for all pages. This will work if the document has at least one pagination artifact with special settings data. All pages in the collection will be updated with the source artifact according to its settings.
pageCollection
- The page collection.public static void addPagination(PageCollection pageCollection, List<PaginationArtifact> artifacts)
Adds the specified pagination artifacts to each page in the given page collection.
pageCollection
- The collection of pages to which the pagination artifacts will be added.artifacts
- The list of pagination artifacts to add to each page.public static void addPaginationInternal(PageCollection pageCollection, com.aspose.ms.System.Collections.Generic.List<PaginationArtifact> artifacts)
public static void addBatesNumbering(PageCollection pageCollection, com.aspose.ms.System.Action<BatesNArtifact> action)
Adds Bates numbering to each page in the given page collection using the specified action to configure the BatesNArtifact.
pageCollection
- The collection of pages to which the Bates numbering will be added.action
- An action to configure the BatesNArtifact before adding it to each page.public static void addBatesNumbering(PageCollection pageCollection, BatesNArtifact artifact)
Adds the specified Bates numbering artifact to each page in the given page collection.
pageCollection
- The collection of pages to which the Bates numbering artifact will be added.artifact
- The BatesNArtifact instance to be added to each page.public static void deleteBatesNumbering(PageCollection pageCollection)
Deletes all Bates numbering artifacts from each page in the given page collection.
pageCollection
- The collection of pages from which the Bates numbering will be deleted.Copyright © 2025 Aspose. All Rights Reserved.