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 {
109109
110110 protected boolean isClosing = false ;
111111
112- protected boolean isSuccessClosing = false ;
112+ protected boolean closed = false ;
113113
114114 /**
115115 * flag determines whether to write unused objects to result document
@@ -751,11 +751,11 @@ public void close() {
751751 } catch (IOException e ) {
752752 throw new PdfException (PdfException .CannotCloseDocument , e , this );
753753 }
754- isSuccessClosing = true ;
754+ closed = true ;
755755 }
756756
757- public boolean isSuccessClosing () {
758- return isSuccessClosing ;
757+ public boolean isClosed () {
758+ return closed ;
759759 }
760760
761761 public boolean isTagged () {
@@ -1253,7 +1253,7 @@ protected void flatFields() {
12531253 * @throws PdfException
12541254 */
12551255 protected void checkClosingStatus (){
1256- if (isSuccessClosing ){
1256+ if (closed ){
12571257 throw new PdfException (PdfException .DocumentClosedImpossibleExecuteAction );
12581258 }
12591259 }
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public PageSize rotatePage(PageSize pageSize) {
156156 * @throws PdfException
157157 */
158158 protected void checkClosingStatus (){
159- if (getPdfDocument ().isSuccessClosing ()){
159+ if (getPdfDocument ().isClosed ()){
160160 throw new PdfException (PdfException .DocumentClosedImpossibleExecuteAction );
161161 }
162162 }
You can’t perform that action at this time.
0 commit comments