6.5.  New Logo on each Page

Initial Situation

Two companies merge.

Problem

Some documents need a new logo. This should be visible on each page.

Solution Approach

The new logo exists as an image file. PDFUnit uses this file for tests.

Solution

@Test
public void verifyNewLogoOnEveryPage() throws Exception {
  String filename = "documentUnderTest.pdf";
  String newLogoImage = "images/newLogo.png";
  
  AssertThat.document(filename)
            .containsImage(newLogoImage)
  ; 
}