10.3.  Authorized Signature of the new CEO

Initial Situation

The board of executives has changed.

Problem

PDF documents which are used for contracts need to have a valid (visible) signature. So the signature of the new CEO must be used.

The new and the old signature exist as files, but you have to give them the same file name. Otherwise, all programs have to be recompiled the next time the CEO changes.

Solution Approach

The image file is compared byte-wise with the signature image from the PDF documents.

Solution

<!-- 
  Situation: two companies combine.
  This sample shows how to verify that the new signature is used.
-->
<testcase name="verifyNewSignatureOnLastPage">
  <assertThat testDocument="images/imagesWithSameImagesOnOnePage.pdf">
    <containsImage file="images/CEO-signature.png" 
                   on="LAST_PAGE"
    />
  </assertThat>
</testcase>