Skip to content

Commit be4f3a8

Browse files
committed
Update cmp files
DEVSIX-2875 DEVSIX-2016
1 parent 37f8bff commit be4f3a8

36 files changed

+13
-11
lines changed

pom.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4+
45
<parent>
56
<groupId>com.itextpdf</groupId>
67
<artifactId>root</artifactId>
78
<version>7.1.7-SNAPSHOT</version>
8-
<relativePath/>
9+
<relativePath />
910
</parent>
11+
1012
<artifactId>html2pdf</artifactId>
1113
<version>2.1.4-SNAPSHOT</version>
14+
1215
<name>pdfHTML</name>
1316
<description>pdfHTML is an iText 7 add-on that lets you to parse (X)HTML snippets and the associated CSS and converts
1417
them to PDF.</description>
18+
1519
<scm>
1620
<connection>scm:git:ssh://git@git.itextsupport.com:7999/i7j/html2pdf.git</connection>
1721
<url>https://git.itextsupport.com/projects/I7J/repos/html2pdf</url>
1822
</scm>
23+
1924
<properties>
2025
<itext.version>${project.parent.version}</itext.version>
2126
</properties>
27+
2228
<repositories>
2329
<repository>
2430
<snapshots>
@@ -37,6 +43,7 @@
3743
<url>https://repo.itextsupport.com/releases</url>
3844
</repository>
3945
</repositories>
46+
4047
<dependencies>
4148
<dependency>
4249
<groupId>com.itextpdf</groupId>
@@ -72,6 +79,7 @@
7279
<scope>test</scope>
7380
</dependency>
7481
</dependencies>
82+
7583
<build>
7684
<resources>
7785
<resource>

src/test/java/com/itextpdf/html2pdf/element/TaggedPdfFormTest.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,11 @@ private void runTest(String name) throws IOException, InterruptedException {
161161

162162
//flatted created tagged PDF with acroform
163163
PdfDocument document = new PdfDocument(new PdfReader(outTaggedPdfPathAcro), new PdfWriter(outTaggedPdfPathFlatted));
164-
PdfAcroForm acroForm = PdfAcroForm.getAcroForm(document, false);
165-
acroForm.flattenFields();
164+
PdfAcroForm.getAcroForm(document, false).flattenFields();
166165
document.close();
167166

168-
//compare with cmp
169-
String compResult1 = new CompareTool().compareByContent(outTaggedPdfPath, cmpPdfPath, destinationFolder, diff1);
170-
String compResult2 = new CompareTool().compareByContent(outTaggedPdfPathAcro, cmpPdfPathAcro, destinationFolder, diff2);
171-
String compResult3 = new CompareTool().compareByContent(outTaggedPdfPathFlatted, cmpPdfPathAcroFlatten, destinationFolder, diff3);
172-
173-
Assert.assertNull(compResult1);
174-
Assert.assertNull(compResult2);
175-
Assert.assertNull(compResult3);
167+
Assert.assertNull(new CompareTool().compareByContent(outTaggedPdfPath, cmpPdfPath, destinationFolder, diff1));
168+
Assert.assertNull(new CompareTool().compareByContent(outTaggedPdfPathAcro, cmpPdfPathAcro, destinationFolder, diff2));
169+
Assert.assertNull(new CompareTool().compareByContent(outTaggedPdfPathFlatted, cmpPdfPathAcroFlatten, destinationFolder, diff3));
176170
}
177171
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)