public class PdfVisualTester extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PdfVisualTester.PdfCompareResult |
static class |
PdfVisualTester.ProblemType |
static class |
PdfVisualTester.TestImage |
| Constructor and Description |
|---|
PdfVisualTester() |
| Modifier and Type | Method and Description |
|---|---|
static List<PdfVisualTester.PdfCompareResult> |
comparePdfDocuments(byte[] expected,
byte[] actual,
String testName,
boolean keepSameImages)
Compares two PDF documents by rendering each page to an image and comparing pixel by pixel.
|
static BufferedImage |
createDiffImage(BufferedImage img1,
BufferedImage img2) |
public static List<PdfVisualTester.PdfCompareResult> comparePdfDocuments(byte[] expected, byte[] actual, String testName, boolean keepSameImages) throws IOException
expected - actual - testName - keepSameImages - Whether to return the images in the case they are good (ie. the same).PdfVisualTester.PdfCompareResult instances describing differences.IOExceptionpublic static BufferedImage createDiffImage(BufferedImage img1, BufferedImage img2)
Copyright © 2004–2025. All rights reserved.