public void setVisibleSignature ( Rectangle pageRect , int page , String fieldName ) { if ( fieldName != null ) { if ( fieldName . indexOf ( ' ' ) >= 0 ) throw new IllegalArgumentException ( "Field names cannot contain a dot." ) ; AcroFields af = writer . getAcroFields ( ) ; AcroFields . Item item = af . getFieldItem ( fieldName ) ; if ( item != null ) throw new IllegalArgumentException ( "The field " + fieldName + " already exists." ) ; this . fieldName = fieldName ; } if ( page < 1 || page > writer . reader . getNumberOfPages ( ) ) throw new IllegalArgumentException ( "Invalid page number: " + page ) ; this . pageRect = new Rectangle ( pageRect ) ; this . pageRect . normalize ( ) ; rect = new Rectangle ( this . pageRect . getWidth ( ) , this . pageRect . getHeight ( ) ) ; this . page = page ; newField = true ; }
Sets the signature to be visible . It creates a new visible signature field .