PDF documents and other files have to be found by the Java process (PDFUnit-Java) in the classpath.
lives_ok { my $pdfUnderTest = "$resources_dir/XXX.pdf"; # error, file does not exist AssertThat->document($pdfUnderTest) ->hasText() ; } "typical error, file not found";;