File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
kernel/src/main/java/com/itextpdf/kernel/pdf
layout/src/main/java/com/itextpdf/layout Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public class PdfDocument implements IEventDispatcher {
109
109
110
110
protected boolean isClosing = false ;
111
111
112
- protected boolean isSuccessClosing = false ;
112
+ protected boolean closed = false ;
113
113
114
114
/**
115
115
* flag determines whether to write unused objects to result document
@@ -751,11 +751,11 @@ public void close() {
751
751
} catch (IOException e ) {
752
752
throw new PdfException (PdfException .CannotCloseDocument , e , this );
753
753
}
754
- isSuccessClosing = true ;
754
+ closed = true ;
755
755
}
756
756
757
- public boolean isSuccessClosing () {
758
- return isSuccessClosing ;
757
+ public boolean isClosed () {
758
+ return closed ;
759
759
}
760
760
761
761
public boolean isTagged () {
@@ -1253,7 +1253,7 @@ protected void flatFields() {
1253
1253
* @throws PdfException
1254
1254
*/
1255
1255
protected void checkClosingStatus (){
1256
- if (isSuccessClosing ){
1256
+ if (closed ){
1257
1257
throw new PdfException (PdfException .DocumentClosedImpossibleExecuteAction );
1258
1258
}
1259
1259
}
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public PageSize rotatePage(PageSize pageSize) {
156
156
* @throws PdfException
157
157
*/
158
158
protected void checkClosingStatus (){
159
- if (getPdfDocument ().isSuccessClosing ()){
159
+ if (getPdfDocument ().isClosed ()){
160
160
throw new PdfException (PdfException .DocumentClosedImpossibleExecuteAction );
161
161
}
162
162
}
You can’t perform that action at this time.
0 commit comments