Example #1
0
 protected override void CheckForm(PdfWriter writer, int key, Object obj1)
 {
     if (obj1 is PdfAcroForm)
     {
         PdfAcroForm form            = (PdfAcroForm)obj1;
         PdfBoolean  needAppearances = form.GetAsBoolean(PdfName.NEEDAPPEARANCES);
         if (needAppearances != null && needAppearances.BooleanValue)
         {
             throw new PdfAConformanceException(obj1, MessageLocalization.GetComposedMessage("needappearances.flag.of.the.interactive.form.dictionary.shall.either.not.be.present.or.shall.be.false"));
         }
     }
 }