Skip to content

Commit 98294ec

Browse files
committed
[RELEASE] iText 7 Core - 7.1.8
https://github.com/itext/itext7/releases/tag/7.1.8 * release/7.1.8: [RELEASE] 7.1.8-SNAPSHOT -> 7.1.8 Add missing copyright headers Allow font cache to be cleared Implement new pattern color tests Extract PdfCanvasColorTest from PdfCanvasTest Refactor according to findbugs Add unit tests in UriResolverTest. DEVSIX-2880 Purge itext artifacts from local maven repository Exclude xmp from SonarQube analysis Improve some links in javadocs. Add some issues to the findbugs-filter that somehow got into develop Remove commented-out lines making the Quality Gate fail Implement xfdf support Make PdfPolyGeomAnnotation abstract Improve itextcore's javadocs. Update page boundary keys that are used for VIEW_CLIP, PRINT_AREA, PRINT_CLIP constants. Add some PdfViewerPreferences tests. Refactor implementation of building hyphenation trees to avoid StackOverflowErrors Replace Throwable with SecurityException in ResourceUtil Fix javadocs in order in order to make them portable to C# code documentation Wrap System.getenv with SecurityException Rework isIgnoredClassOrPackage method Increase waiting in DataHandlerTest Add hyphenation result test, add todo remark Expose TypographyUtils#isPdfCalligraphAvailable() Do not recalculate table's minmax width once the table has been split. Change structural comparison instead of visual. Add some link tests. Update jacoco plugin version to 0.8.4 Review checked exceptions softening in layout module Fix PdfLayer#getIntents in case of multiple intents; add new PdfLayer tests Add missing copyright headers Cover layer related logic with tests. Remove p tags from tables Remove empty tag Fix Barcodes java docs Separate tiff images testing Add missing copyright headers Add unit tests for font characteristics classes Improve Javadocs of io and styled-xml-parser Move svg path converting tests Update javadoc in FontProgramFactory and PdfFontFactory Add integration tests for BackgroundImage Improve porting of a piece of documentation Cover solid, dashed and dotted lines with tests. Add logmessages into unit tests Add missing copyright headers Move JFreeSvg tests from FT repository Remove unnecessary log message throw. Add new LogMessageConstant. Prevent TableRenderer's applyVerticalAlignment from throwing NPE. Improve Javadocs for some of the members of PdfFormField class Move pie chart test from FT repository Increase timeout for test stage Add functionality to search samples in both main and test directory Add missing copyright headers Add test that produces non-conforming PDF/A Add test that produces non-conforming PDF/A Use local Maven repository Fix javadoc warnings in kernel Use initial bytes to check if byte[] is WmfImage Move svg clipPath Improve detection of a character's location. Refactor Jenkinsfile Remove WrapToTest annotation check. Remove unused IsLookLikeTest method Move svg simple samples Improve documentation and fix a few Javadoc warnings Add slack notifications to #ci channel Move svg ignored tags tests Add clean of workspace in case of successful build Add monthy cron job for master branch Update svg and cmp files Move svg css style tests Move svg elliptical arc Add missing copyright headers Move svg mask tests Don't provide a SonarQube target branch when analyzing the main branch [RELEASE] Update dependency versions Ignore tests related to SNAPSHOT being written to extracted images. Remove redundant TODO in PdfImageXObject#flush() Add missing copyright headers Move svg opacity tests Move svg text converting tests Add missing copyright headers Move svg basic elements tests Add missing copyright headers Move google chart tests
2 parents f82dfe1 + d068ec3 commit 98294ec

File tree

1,210 files changed

+114382
-2379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,210 files changed

+114382
-2379
lines changed

Jenkinsfile

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/usr/bin/env groovy
2+
@Library('pipeline-library')_
3+
4+
def schedule = env.BRANCH_NAME.contains('master') ? '@monthly' : env.BRANCH_NAME == 'develop' ? '@midnight' : ''
5+
def sonarBranchName = env.BRANCH_NAME.contains('master') ? '-Dsonar.branch.name=master' : '-Dsonar.branch.name=' + env.BRANCH_NAME
6+
def sonarBranchTarget = env.BRANCH_NAME.contains('master') ? '' : env.BRANCH_NAME == 'develop' ? '-Dsonar.branch.target=master' : '-Dsonar.branch.target=develop'
27

38
pipeline {
49

@@ -14,12 +19,12 @@ pipeline {
1419
parallelsAlwaysFailFast()
1520
retry(1)
1621
skipStagesAfterUnstable()
17-
timeout(time: 60, unit: 'MINUTES')
22+
timeout(time: 2, unit: 'HOURS')
1823
timestamps()
1924
}
2025

2126
triggers {
22-
cron(env.BRANCH_NAME == 'develop' ? '@midnight' : '')
27+
cron(schedule)
2328
}
2429

2530
tools {
@@ -33,32 +38,30 @@ pipeline {
3338
timeout(time: 5, unit: 'MINUTES')
3439
}
3540
steps {
36-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
41+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
3742
sh 'mvn clean'
43+
sh 'mvn dependency:purge-local-repository -Dinclude=com.itextpdf -DresolutionFuzziness=groupId -DreResolve=false'
3844
}
3945
}
4046
}
4147
stage('Compile') {
4248
options {
43-
timeout(time: 5, unit: 'MINUTES')
49+
timeout(time: 10, unit: 'MINUTES')
4450
}
4551
steps {
46-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
47-
sh 'mvn compile test-compile'
52+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
53+
sh 'mvn compile test-compile package -Dmaven.test.skip=true -Dmaven.javadoc.failOnError=false'
4854
}
4955
}
5056
}
5157
stage('Run Tests') {
5258
options {
53-
timeout(time: 30, unit: 'MINUTES')
54-
}
55-
environment {
56-
SONAR_BRANCH_TARGET= sh (returnStdout: true, script: '[ $BRANCH_NAME = master ] && echo master || echo develop').trim()
59+
timeout(time: 1, unit: 'HOURS')
5760
}
5861
steps {
59-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
62+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
6063
withSonarQubeEnv('Sonar') {
61-
sh 'mvn --activate-profiles test test verify org.jacoco:jacoco-maven-plugin:prepare-agent org.jacoco:jacoco-maven-plugin:report sonar:sonar -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true -Dsonar.branch.name="${BRANCH_NAME}" -Dsonar.branch.target="${SONAR_BRANCH_TARGET}"'
64+
sh 'mvn --activate-profiles test -DgsExec="${gsExec}" -DcompareExec="${compareExec}" -Dmaven.test.skip=false -Dmaven.test.failure.ignore=false -Dmaven.javadoc.skip=true org.jacoco:jacoco-maven-plugin:prepare-agent verify org.jacoco:jacoco-maven-plugin:report sonar:sonar ' + sonarBranchName + ' ' + sonarBranchTarget
6265
}
6366
}
6467
}
@@ -68,7 +71,7 @@ pipeline {
6871
timeout(time: 30, unit: 'MINUTES')
6972
}
7073
steps {
71-
withMaven(jdk: "${JDK_VERSION}", maven: 'M3') {
74+
withMaven(jdk: "${JDK_VERSION}", maven: 'M3', mavenLocalRepo: '.repository') {
7275
sh 'mvn --activate-profiles qa verify -Dpmd.analysisCache=true'
7376
}
7477
}
@@ -108,7 +111,7 @@ pipeline {
108111
timeout(time: 5, unit: 'MINUTES')
109112
}
110113
steps {
111-
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar'
114+
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar, **/*.pom', excludes: '**/fb-contrib-*.jar, **/findsecbugs-plugin-*.jar'
112115
}
113116
}
114117
}
@@ -119,6 +122,7 @@ pipeline {
119122
}
120123
success {
121124
echo 'I succeeeded! \u263A'
125+
cleanWs deleteDirs: true
122126
}
123127
unstable {
124128
echo 'I am unstable \uD83D\uDE2E'
@@ -129,6 +133,20 @@ pipeline {
129133
changed {
130134
echo 'Things were different before... \uD83E\uDD14'
131135
}
136+
fixed {
137+
script {
138+
if (env.BRANCH_NAME.contains('master') || env.BRANCH_NAME.contains('develop')) {
139+
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - Back to normal")
140+
}
141+
}
142+
}
143+
regression {
144+
script {
145+
if (env.BRANCH_NAME.contains('master') || env.BRANCH_NAME.contains('develop')) {
146+
slackNotifier("#ci", currentBuild.currentResult, "${env.BRANCH_NAME} - First failure")
147+
}
148+
}
149+
}
132150
}
133151

134152
}

barcodes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.itextpdf</groupId>
66
<artifactId>root</artifactId>
7-
<version>7.1.7</version>
7+
<version>7.1.8</version>
88
</parent>
99
<artifactId>barcodes</artifactId>
1010
<name>iText 7 - barcodes</name>

barcodes/src/main/java/com/itextpdf/barcodes/Barcode128.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -548,31 +548,31 @@ public Rectangle getBarcodeSize() {
548548
* translation matrix to move it elsewhere.<p>
549549
* The bars and text are written in the following colors:
550550
* <br>
551-
* <TABLE BORDER=1 SUMMARY="barcode properties">
551+
* <TABLE BORDER="1" SUMMARY="barcode properties">
552552
* <TR>
553-
* <TH><P><CODE>barColor</CODE></TH>
554-
* <TH><P><CODE>textColor</CODE></TH>
555-
* <TH><P>Result</TH>
553+
* <TH><CODE>barColor</CODE></TH>
554+
* <TH><CODE>textColor</CODE></TH>
555+
* <TH>Result</TH>
556556
* </TR>
557557
* <TR>
558-
* <TD><P><CODE>null</CODE></TD>
559-
* <TD><P><CODE>null</CODE></TD>
560-
* <TD><P>bars and text painted with current fill color</TD>
558+
* <TD><CODE>null</CODE></TD>
559+
* <TD><CODE>null</CODE></TD>
560+
* <TD>bars and text painted with current fill color</TD>
561561
* </TR>
562562
* <TR>
563-
* <TD><P><CODE>barColor</CODE></TD>
564-
* <TD><P><CODE>null</CODE></TD>
565-
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
563+
* <TD><CODE>barColor</CODE></TD>
564+
* <TD><CODE>null</CODE></TD>
565+
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
566566
* </TR>
567567
* <TR>
568-
* <TD><P><CODE>null</CODE></TD>
569-
* <TD><P><CODE>textColor</CODE></TD>
570-
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
568+
* <TD><CODE>null</CODE></TD>
569+
* <TD><CODE>textColor</CODE></TD>
570+
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
571571
* </TR>
572572
* <TR>
573-
* <TD><P><CODE>barColor</CODE></TD>
574-
* <TD><P><CODE>textColor</CODE></TD>
575-
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
573+
* <TD><CODE>barColor</CODE></TD>
574+
* <TD><CODE>textColor</CODE></TD>
575+
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
576576
* </TR>
577577
* </TABLE>
578578
*

barcodes/src/main/java/com/itextpdf/barcodes/Barcode1D.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -424,31 +424,31 @@ public void setCodeType(int codeType) {
424424
* translation matrix to move it elsewhere.<p>
425425
* The bars and text are written in the following colors:
426426
* <br>
427-
* <TABLE BORDER=1 SUMMARY="barcode properties">
427+
* <TABLE BORDER="1" SUMMARY="barcode properties">
428428
* <TR>
429-
* <TH><P><CODE>barColor</CODE></TH>
430-
* <TH><P><CODE>textColor</CODE></TH>
431-
* <TH><P>Result</TH>
429+
* <TH><CODE>barColor</CODE></TH>
430+
* <TH><CODE>textColor</CODE></TH>
431+
* <TH>Result</TH>
432432
* </TR>
433433
* <TR>
434-
* <TD><P><CODE>null</CODE></TD>
435-
* <TD><P><CODE>null</CODE></TD>
436-
* <TD><P>bars and text painted with current fill color</TD>
434+
* <TD><CODE>null</CODE></TD>
435+
* <TD><CODE>null</CODE></TD>
436+
* <TD>bars and text painted with current fill color</TD>
437437
* </TR>
438438
* <TR>
439-
* <TD><P><CODE>barColor</CODE></TD>
440-
* <TD><P><CODE>null</CODE></TD>
441-
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
439+
* <TD><CODE>barColor</CODE></TD>
440+
* <TD><CODE>null</CODE></TD>
441+
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
442442
* </TR>
443443
* <TR>
444-
* <TD><P><CODE>null</CODE></TD>
445-
* <TD><P><CODE>textColor</CODE></TD>
446-
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
444+
* <TD><CODE>null</CODE></TD>
445+
* <TD><CODE>textColor</CODE></TD>
446+
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
447447
* </TR>
448448
* <TR>
449-
* <TD><P><CODE>barColor</CODE></TD>
450-
* <TD><P><CODE>textColor</CODE></TD>
451-
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
449+
* <TD><CODE>barColor</CODE></TD>
450+
* <TD><CODE>textColor</CODE></TD>
451+
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
452452
* </TR>
453453
* </TABLE>
454454
*

barcodes/src/main/java/com/itextpdf/barcodes/Barcode39.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,31 +269,31 @@ public Rectangle getBarcodeSize() {
269269
* translation matrix to move it elsewhere.<p>
270270
* The bars and text are written in the following colors:
271271
* <br>
272-
* <TABLE BORDER=1 SUMMARY="barcode properties">
272+
* <TABLE BORDER="1" SUMMARY="barcode properties">
273273
* <TR>
274-
* <TH><P><CODE>barColor</CODE></TH>
275-
* <TH><P><CODE>textColor</CODE></TH>
276-
* <TH><P>Result</TH>
274+
* <TH><CODE>barColor</CODE></TH>
275+
* <TH><CODE>textColor</CODE></TH>
276+
* <TH>Result</TH>
277277
* </TR>
278278
* <TR>
279-
* <TD><P><CODE>null</CODE></TD>
280-
* <TD><P><CODE>null</CODE></TD>
281-
* <TD><P>bars and text painted with current fill color</TD>
279+
* <TD><CODE>null</CODE></TD>
280+
* <TD><CODE>null</CODE></TD>
281+
* <TD>bars and text painted with current fill color</TD>
282282
* </TR>
283283
* <TR>
284-
* <TD><P><CODE>barColor</CODE></TD>
285-
* <TD><P><CODE>null</CODE></TD>
286-
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
284+
* <TD><CODE>barColor</CODE></TD>
285+
* <TD><CODE>null</CODE></TD>
286+
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
287287
* </TR>
288288
* <TR>
289-
* <TD><P><CODE>null</CODE></TD>
290-
* <TD><P><CODE>textColor</CODE></TD>
291-
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
289+
* <TD><CODE>null</CODE></TD>
290+
* <TD><CODE>textColor</CODE></TD>
291+
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
292292
* </TR>
293293
* <TR>
294-
* <TD><P><CODE>barColor</CODE></TD>
295-
* <TD><P><CODE>textColor</CODE></TD>
296-
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
294+
* <TD><CODE>barColor</CODE></TD>
295+
* <TD><CODE>textColor</CODE></TD>
296+
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
297297
* </TR>
298298
* </TABLE>
299299
*

barcodes/src/main/java/com/itextpdf/barcodes/BarcodeCodabar.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -205,31 +205,31 @@ public Rectangle getBarcodeSize() {
205205
* translation matrix to move it elsewhere.<p>
206206
* The bars and text are written in the following colors:
207207
* <br>
208-
* <TABLE BORDER=1 SUMMARY="barcode properties">
208+
* <TABLE BORDER="1" SUMMARY="barcode properties">
209209
* <TR>
210-
* <TH><P><CODE>barColor</CODE></TH>
211-
* <TH><P><CODE>textColor</CODE></TH>
212-
* <TH><P>Result</TH>
210+
* <TH><CODE>barColor</CODE></TH>
211+
* <TH><CODE>textColor</CODE></TH>
212+
* <TH>Result</TH>
213213
* </TR>
214214
* <TR>
215-
* <TD><P><CODE>null</CODE></TD>
216-
* <TD><P><CODE>null</CODE></TD>
217-
* <TD><P>bars and text painted with current fill color</TD>
215+
* <TD><CODE>null</CODE></TD>
216+
* <TD><CODE>null</CODE></TD>
217+
* <TD>bars and text painted with current fill color</TD>
218218
* </TR>
219219
* <TR>
220-
* <TD><P><CODE>barColor</CODE></TD>
221-
* <TD><P><CODE>null</CODE></TD>
222-
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
220+
* <TD><CODE>barColor</CODE></TD>
221+
* <TD><CODE>null</CODE></TD>
222+
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
223223
* </TR>
224224
* <TR>
225-
* <TD><P><CODE>null</CODE></TD>
226-
* <TD><P><CODE>textColor</CODE></TD>
227-
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
225+
* <TD><CODE>null</CODE></TD>
226+
* <TD><CODE>textColor</CODE></TD>
227+
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
228228
* </TR>
229229
* <TR>
230-
* <TD><P><CODE>barColor</CODE></TD>
231-
* <TD><P><CODE>textColor</CODE></TD>
232-
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
230+
* <TD><CODE>barColor</CODE></TD>
231+
* <TD><CODE>textColor</CODE></TD>
232+
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
233233
* </TR>
234234
* </TABLE>
235235
*

barcodes/src/main/java/com/itextpdf/barcodes/BarcodeEAN.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -554,31 +554,31 @@ public Rectangle getBarcodeSize() {
554554
* translation matrix to move it elsewhere.<p>
555555
* The bars and text are written in the following colors:
556556
* <br>
557-
* <TABLE BORDER=1 SUMMARY="barcode properties">
557+
* <TABLE BORDER="1" SUMMARY="barcode properties">
558558
* <TR>
559-
* <TH><P><CODE>barColor</CODE></TH>
560-
* <TH><P><CODE>textColor</CODE></TH>
561-
* <TH><P>Result</TH>
559+
* <TH><CODE>barColor</CODE></TH>
560+
* <TH><CODE>textColor</CODE></TH>
561+
* <TH>Result</TH>
562562
* </TR>
563563
* <TR>
564-
* <TD><P><CODE>null</CODE></TD>
565-
* <TD><P><CODE>null</CODE></TD>
566-
* <TD><P>bars and text painted with current fill color</TD>
564+
* <TD><CODE>null</CODE></TD>
565+
* <TD><CODE>null</CODE></TD>
566+
* <TD>bars and text painted with current fill color</TD>
567567
* </TR>
568568
* <TR>
569-
* <TD><P><CODE>barColor</CODE></TD>
570-
* <TD><P><CODE>null</CODE></TD>
571-
* <TD><P>bars and text painted with <CODE>barColor</CODE></TD>
569+
* <TD><CODE>barColor</CODE></TD>
570+
* <TD><CODE>null</CODE></TD>
571+
* <TD>bars and text painted with <CODE>barColor</CODE></TD>
572572
* </TR>
573573
* <TR>
574-
* <TD><P><CODE>null</CODE></TD>
575-
* <TD><P><CODE>textColor</CODE></TD>
576-
* <TD><P>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
574+
* <TD><CODE>null</CODE></TD>
575+
* <TD><CODE>textColor</CODE></TD>
576+
* <TD>bars painted with current color<br>text painted with <CODE>textColor</CODE></TD>
577577
* </TR>
578578
* <TR>
579-
* <TD><P><CODE>barColor</CODE></TD>
580-
* <TD><P><CODE>textColor</CODE></TD>
581-
* <TD><P>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
579+
* <TD><CODE>barColor</CODE></TD>
580+
* <TD><CODE>textColor</CODE></TD>
581+
* <TD>bars painted with <CODE>barColor</CODE><br>text painted with <CODE>textColor</CODE></TD>
582582
* </TR>
583583
* </TABLE>
584584
*

0 commit comments

Comments
 (0)