class SigFlag extends Flag
{
    private final PDDocument document;
    private final COSDictionary acroFormDictionary;

    /**
     * Constructor
     *
     * @param acroFormDictionary COSDictionary instance.
     */
    SigFlag(PDDocument document, COSDictionary acroFormDictionary)
    {
        this.document = document;
        this.acroFormDictionary = acroFormDictionary;
    }

    @Override
    String getFlagType()
    {
        return "Signature flag";
    }

    @Override
    String getFlagValue()
    {
        return "Flag value: " + acroFormDictionary.getInt(COSName.SIG_FLAGS);
    }

    @Override
    Object[][] getFlagBits()
    {<FILL_FUNCTION_BODY>}
}

        PDAcroForm acroForm = new PDAcroForm(document, acroFormDictionary);
        return new Object[][]{
                new Object[]{1, "SignaturesExist", acroForm.isSignaturesExist()},
                new Object[]{2, "AppendOnly", acroForm.isAppendOnly()},
        };
    
<no_super_class>