Skip to content

Commit 335a209

Browse files
Update _index.md
1 parent 100dfb8 commit 335a209

File tree

1 file changed

+2
-8
lines changed
  • content/english/java/document-revision/accepting-rejecting-document-changes

1 file changed

+2
-8
lines changed

content/english/java/document-revision/accepting-rejecting-document-changes/_index.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ Accepting changes is a critical step in finalizing a document. Aspose.Words for
4444

4545
```java
4646
// Accept all revisions
47-
doc.acceptAllRevisions();
48-
49-
// Accept a specific revision by index
50-
doc.acceptRevision(0);
47+
doc.getRevisions().get(0).accept();
5148
```
5249

5350
## Rejecting Changes
@@ -56,10 +53,7 @@ In some cases, you may need to reject certain changes. Aspose.Words for Java pro
5653

5754
```java
5855
// Reject all revisions
59-
doc.rejectAllRevisions();
60-
61-
// Reject a specific revision by index
62-
doc.rejectRevision(1);
56+
doc.getRevisions().get(1).reject();
6357
```
6458

6559
## Saving the Document

0 commit comments

Comments
 (0)