Exemple #1
0
 protected internal override void CheckPdfNumber(PdfNumber number)
 {
     if (number.HasDecimalPoint())
     {
         if (Math.Abs(number.LongValue()) > GetMaxRealValue())
         {
             throw new PdfAConformanceException(PdfAConformanceException.REAL_NUMBER_IS_OUT_OF_RANGE);
         }
     }
     else
     {
         if (number.LongValue() > GetMaxIntegerValue() || number.LongValue() < GetMinIntegerValue())
         {
             throw new PdfAConformanceException(PdfAConformanceException.INTEGER_NUMBER_IS_OUT_OF_RANGE);
         }
     }
 }