fail("failed to read fixture: pdf/fake_memo.pdf"); } $result = Kreuzberg::renderPdfPageToPng($pdf_bytesBytes, 0); $this->assertGreaterThanOrEqual(100, strlen($result)); } /** render_pdf_page_to_png: page out of range */ public function test_render_pdf_page_out_of_range(): void { $this->expectException(\Exception::class); $pdf_bytesBytes = file_get_contents("pdf/fake_memo.pdf"); if ($pdf_bytesBytes === false) { $this->fail("failed to read fixture: pdf/fake_memo.pdf"); } Kreuzberg::renderPdfPageToPng($pdf_bytesBytes, 999); } }