Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
8
In File:
com/itextpdf/text/pdf/PdfContentByte.java
In Method:
sanityCheck()
Code with Finding:
class PdfContentByte {
public void sanityCheck() {
if (mcDepth != 0) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.marked.content.operators"));
}
if (inText) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.begin.end.text.operators"));
}
if (layerDepth != null && !layerDepth.isEmpty()) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.layer.operators"));
}
if (!stateList.isEmpty()) {
throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("unbalanced.save.restore.state.operators"));
}
}
}