try { if (writer != null) { if (catalog.isFlushed()) { throw new PdfException(PdfException.CannotCloseDocumentWithAlreadyFlushedPdfCatalog);
try { if (writer != null) { if (catalog.isFlushed()) { throw new PdfException(PdfException.CannotCloseDocumentWithAlreadyFlushedPdfCatalog);