Skip to content

Commit 0b5f10c

Browse files
committed
[RELEASE] iText 7 pdfHTML - 2.1.2
https://github.com/itext/i7j-pdfhtml/releases/tag/2.1.2 * release/2.1.2: [RELEASE] 2.1.2-SNAPSHOT -> 2.1.2 Edit compare files for SVG grouping behavior Update cmps related to chunk processing. Add missing copyright headers Resolve list item's padding considering the direction. Add missing copyright headers Move page margin box processing into a separate class Fix bug in distribution, add tests Don't create renderer with zero dimension. Update cmp Improvements in dimensions counting Clear up todos Change area of visibility of classes/methods and order of methods Handle cases with fix dimensions. Fill spaces between boxes. Update tests Add tests with image content in margin boxes Move inner classes out Limit calculated dimensions by available value Fix handling of max-dimensions and auto dimensions and calculating of max-height attribute. Add tests for max dimensions Add java test file for fixed dimension Add tests for edge cases Implement skeleton for algorithm. Add tests Change visibility of AbstractRenderer#getMinMaxWidth method Fix radio group processing in RadioRenderer Introduce #setFontFamily methods for setting preferred font families on elements Add support to li value property of ordered list ol Add a new test demonstrating a bug with handling text-decoration CSS property Add missing copyright headers Support a table's caption. Add some new tests. Support background from inline parent element for nested inline elements Handle "overflow" property values "auto" and "scroll" as "hidden" Add missing copyright headers Support SVG as background images Support SVG images as base64 sources and in several CSS properties Add missing copyright headers Take line indent in account during intrinsic widths calculations only for the first child in the line Introduce default value for FONT_FAMILY in SXP in order to resolve INITIAL and INHERIT values of CSS properties Add w3c tests for `text` sub-module Implement support of nowrap property; add and update tests Add another test demonstrating background bug for inner inline elements Handle div with inline style as span Support "!important" in inline css Consider a direction while table processing. Add some tests for image's border-radius. Update some cmps. Add new test demonstrating the bug of losing absolutely positioned elements Add missing copyright headers Add new ignored test demonstrating the problem of case sensitivity rules handling Add tests for broken page rule css Add .mailmap file Update tests Change test files Add missing copyright headers Add test. DEVSIX-2332 [RELEASE] 2.1.1-SNAPSHOT -> 2.1.2-SNAPSHOT Remove some outdated TODOs.
2 parents 2bd011a + f29526b commit 0b5f10c

File tree

2,177 files changed

+36784
-1529
lines changed

Some content is hidden

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

2,177 files changed

+36784
-1529
lines changed

.mailmap

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
Alan Goo <alangoo@hancom.com> <behumble@hanjava.net>
2+
Alexander Chingarev <alexander.chingarev@duallab.com> <alexander.chingarev@itextpdf.com>
3+
Alexander Chingarev <alexander.chingarev@svaps.com> <alexander.chingarev@gmail.com>
4+
Alexander Chingarev <alexander.chingarev@svaps.com> <alexander.chingarev@svaps.com>
5+
Alexey Subach <alexey.subach@duallab.com> <alexey.subach@gmail.com>
6+
Alexey Subach <alexey.subach@duallab.com> <alexey.subach@itextpdf.com>
7+
Amedee Van Gasse <amedee.vangasse@itextpdf.com> <amedee-github@amedee.be>
8+
Amedee Van Gasse <amedee.vangasse@itextpdf.com> <amedee@vangasse.eu>
9+
Andrew Panfilov <andrew@panfilov.tel> <andrew@panfilov.tel>
10+
Bart De Meyer <bart@bartdemeyer.be> <bart@itextpdf.com>
11+
Benoît Lagae <benoit.lagae@itextpdf.com> <benoit@iText-blagae>
12+
Benoît Lagae <benoit.lagae@itextpdf.com> <benoit.lagae@itextpdf.com>
13+
Benoît Lagae <benoit.lagae@itextpdf.com> <benoit.lagae.s6547@student.hogent.be>
14+
Bruno Lowagie <bruno.lowagie@itextpdf.com> <bruno_000@192.168.1.3>
15+
Bruno Lowagie <bruno.lowagie@itextpdf.com> <bruno.lowagie@itextpdf.com>
16+
Bruno Lowagie <bruno.lowagie@itextpdf.com> <iText@Catullus>
17+
Bryan <bryan@hancom.com> <bryan@192.168.152.124>
18+
Dimitry Alexandrov <dimzon541@gmail.com> <dimzon541@gmail.com>
19+
Dmitry Trusevich <dmitry.trusevich@duallab.com> <dmitry.trusevich@duallab.com>
20+
Dmitry Trusevich <dmitry.trusevich@duallab> <dmitry.trusevich@duallab>
21+
Dominik Helm <dominik.helm@stud.tu-darmstadt.de> <dominik.helm@stud.tu-darmstadt.de>
22+
gothinkfree <tyoh@hancom.com> <tyoh@hancom.com>
23+
Ilya Idamkin <ilya.idamkin@duallab.com> <ilya.idamkin@TeamCity>
24+
iText Software <development@itextpdf.com> <community@itextpdf.com>
25+
iText Software <development@itextpdf.com> <development@itextpdf.com>
26+
iText Software <development@itextpdf.com> <jenkins@itextpdf.com>
27+
iText Software <development@itextpdf.com> <jenkins@jenkins.itextsupport.com>
28+
iText Software <development@itextpdf.com> <leeroy@itextpdf.com>
29+
iText Software <development@itextpdf.com> <teamcity.bot@TeamCity>
30+
iText Software <development@itextpdf.com> <teamcity@duallab.com>
31+
iText Software <development@itextpdf.com> <teamcity@itextpdf.com>
32+
Jeff Monson <jeff@advizr.co> <jeff@advizr.co>
33+
Joris Schellekens <joris.schellekens@itextpdf.com> <joris.schellekens@itextpdf.com>
34+
Kevin Day <kevin@trumpetinc.com> <kevin@melville.trumpetinc.local>
35+
Kevin Day <kevin@trumpetinc.com> <kevin@trumpetinc.com>
36+
Kevin Willems <kevin.willems@itextpdf.com> <kevin.willems1993@gmail.com>
37+
Kevin Willems <kevin.willems@itextpdf.com> <kevin.willems1993@gmail.com>
38+
LaughingMan <LingMan@users.noreply.github.com> <LingMan@users.noreply.github.com>
39+
Markus Wernig <markus.wernig@xfer.ch> <markus.wernig@xfer.ch>
40+
Marvin Wichmann <marvin@fam-wichmann.de> <marvin@fam-wichmann.de>
41+
Marvin Wichmann <marvin.wichmann@fusion-hub.com> <marvin.wichmann@fusion-hub.com>
42+
Marvin Wichmann <marvin.wichmann@unic.com> <marvin.wichmann@unic.com>
43+
Michaël Demey <michael.demey@itextpdf.com> michael.demey <>
44+
Michaël Demey <michael.demey@itextpdf.com> <michael.demey@itextpdf.com>
45+
Michaël Demey <michael.demey@itextpdf.com> <michael.demey@TeamCity>
46+
Michaël Demey <michael.demey@itextpdf.com> <mikkeldemey@gmail.com>
47+
Michael Glazunoff <michael.glazunoff@gmail.com> <michael.glazunoff@gmail.com>
48+
Michael Klink <klink@csi.com> <klink@csi.com>
49+
Michael Klink <mkl@wir-sind-cool.org> <mkl@wir-sind-cool.org>
50+
Nadia Ivaniukovich <nadia.ivaniuckovich@duallab.com> <nadia.ivaniuckovich@duallab.com>
51+
Nadia Ivaniukovich <nadia.ivaniukovich@duallab.com> <nadia.ivaniukovich@duallab.com>
52+
Nadja Sych <nadja.sych@duallab.com> <nadja.sych@duallab.com>
53+
Olivier Blaise <olivier@blaise.name> <olivier@blaise.name>
54+
Orabi Nakhla <orabi.nakhla@itextpdf.com> <orabi.nakhla@itextpdf.com>
55+
Orabi Nakhla <orabi.nakhla@itextpdf.com> <orabi.nakhleh@gmail.com>
56+
Paulo Soares <pgpsoares@gmail.com> <pgpsoares@gmail.com>
57+
Paulo Soares <psoares@gmail.com> <psoares@gmail.com>
58+
Pavel Alay <pavel.alay@duallab.com> pavel.alay <>
59+
Pavel Alay <pavel.alay@duallab.com> <pavel.alay@gmail.com>
60+
Pavel Alay <pavel.alay@duallab.com> <pavel.alay@TeamCity>
61+
Pavel Morozov <pavel.morozov@duallab.com> <pavel.morozov@duallab.com>
62+
Pavel Morozov <pavel.morozov@duallab.com> <p.morozov@i-pnt.ru>
63+
Peter Goodman <pete@petegoo.com> <github@petegoo.com>
64+
Peter Goodman <pete@petegoo.com> <pete@petegoo.com>
65+
Peter Goodman <pete@petegoo.com> <peter.goodman@pushpay.com>
66+
Peter Kjuak <peter.kjuak@itextpdf.com> <peter.kjuak@itextpdf.com>
67+
Richard Cohn <rcohn@adobe.com> <richard@cohns.org>
68+
Richard Schwark <richard.schwark@planet.de> <richard.schwark@planet.de>
69+
Roman Leonov <roman.leonov@duallab.com> <roman.leonov@duallab.com>
70+
Roman Nadvodny <roman.nadvodniuk@duallab.com> <roman.nadvodniuk@duallab.com>
71+
Sasha Kalykhan <alexander.kalykhan@duallab.com> <alexander.kalykhan@duallab.com>
72+
Sasha Kalykhan <alexander.kalykhan@duallab.com> <alexanderkalykhan@gmail.com>
73+
Semen Yakushev <semen.yakushev@duallab.com> <semen.yakushev@duallab.com>
74+
Valera <7691262@mail.ru> <7691262@mail.ru>
75+
Veronika Lisovskaya <veronika.lisovskaya@duallab.com> <veronika.lisovskaya@TeamCity>
76+
Vit Nemecky <vit.nemecky@asseco-ce.com> <vit.nemecky@asseco-ce.com>
77+
Yanina Cheremisina <yanina.cheremisina@svaps.com> <yanina.cheremisina@svaps.com>
78+
Yulian Gaponenko <yulian.gaponenko@duallab.com> <duallab@DESKTOP-PG4L5J1>
79+
Yulian Gaponenko <yulian.gaponenko@duallab.com> <yulian.gaponenko@TeamCity>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<parent>
55
<groupId>com.itextpdf</groupId>
66
<artifactId>root</artifactId>
7-
<version>7.1.4</version>
7+
<version>7.1.5</version>
88
<relativePath/>
99
</parent>
1010
<artifactId>html2pdf</artifactId>
11-
<version>2.1.1</version>
11+
<version>2.1.2</version>
1212
<name>pdfHTML</name>
1313
<description>pdfHTML is an iText 7 add-on that lets you to parse (X)HTML snippets and the associated CSS and converts
1414
them to PDF.</description>

src/main/java/com/itextpdf/html2pdf/ConverterProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/Html2PdfProductInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/HtmlConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/LogMessageConstant.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify
@@ -65,10 +65,12 @@ public final class LogMessageConstant {
6565
/** The Constant ERROR_WHILE_LAYOUT_OF_FORM_FIELD_WITH_TYPE. */
6666
public static final String ERROR_WHILE_LAYOUT_OF_FORM_FIELD_WITH_TYPE = "Error during layout of form filed with type {0}.";
6767
/** The Constant HEIGHT_VALUE_IN_PERCENT_NOT_SUPPORTED. */
68+
@Deprecated
6869
public static final String HEIGHT_VALUE_IN_PERCENT_NOT_SUPPORTED = "Height value in percent not supported";
6970
/** The Constant INPUT_FIELD_DOES_NOT_FIT. */
7071
public static final String INPUT_FIELD_DOES_NOT_FIT = "Input field doesn't fit in outer object. It will be clipped";
7172
/** The Constant INPUT_SUPPORTS_ONLY_POINT_WIDTH. */
73+
@Deprecated
7274
public static final String INPUT_SUPPORTS_ONLY_POINT_WIDTH = "Input field supports only point width";
7375
/** The Constant INPUT_TYPE_IS_NOT_SUPPORTED. */
7476
public static final String INPUT_TYPE_IS_NOT_SUPPORTED = "Input type {0} is not supported";
@@ -94,21 +96,25 @@ public final class LogMessageConstant {
9496
public static final String PAGE_MARGIN_BOX_SOME_PROPERTIES_NOT_PROCESSED = "Page margin box margin, padding, height and width properties are not processed. Passed styles container shall be of PageMarginBoxContextNode type.";
9597
/** The Constant PAGE_SIZE_VALUE_IS_INVALID. */
9698
public static final String PAGE_SIZE_VALUE_IS_INVALID = "Page size value {0} is invalid.";
99+
/** The Constant PDF_DOCUMENT_NOT_PRESENT */
100+
public static final String PDF_DOCUMENT_NOT_PRESENT = "PdfDocument is not present";
97101
/** The Constant QUOTES_PROPERTY_INVALID. */
98102
public static final String QUOTES_PROPERTY_INVALID = "Quote property \"{0}\" is invalid. It should contain even number of <string> values.";
99103
/** The Constant RULE_IS_NOT_SUPPORTED. */
100104
public static final String RULE_IS_NOT_SUPPORTED = "The rule @{0} is unsupported. All selectors in this rule will be ignored.";
101105
/** The Constant TEXT_DECORATION_BLINK_NOT_SUPPORTED. */
102106
public static final String TEXT_DECORATION_BLINK_NOT_SUPPORTED = "text-decoration: blink not supported";
103107
/** The Constant TEXT_WAS_NOT_PROCESSED. */
108+
@Deprecated
104109
public static final String TEXT_WAS_NOT_PROCESSED = "Text was not processed: {0}";
105110
/** The Constant UNABLE_TO_PROCESS_EXTERNAL_CSS_FILE. */
106111
public static final String UNABLE_TO_PROCESS_EXTERNAL_CSS_FILE = "Unable to process external css file";
107112
/** The Constant UNABLE_TO_PROCESS_IMAGE_AS_SVG*/
108-
public static final String UNABLE_TO_PROCESS_IMAGE_AS_SVG="Unable to process image found at {0} as an SVG";
113+
public static final String UNABLE_TO_PROCESS_IMAGE_AS_SVG = "Unable to process image found at {0} as an SVG";
109114
/** The Constant UNABLE_TO_RESOLVE_COUNTER. */
110115
public static final String UNABLE_TO_RESOLVE_COUNTER = "Unable to resolve counter \"{0}\"";
111116
/** The Constant UNABLE_TO_RESOLVE_FONT. */
117+
@Deprecated
112118
public static final String UNABLE_TO_RESOLVE_FONT = "Unable to resolve font: {0}. The default one will be used instead";
113119
/** The Constant UNABLE_TO_RETRIEVE_FONT. */
114120
public static final String UNABLE_TO_RETRIEVE_FONT = "Unable to retrieve font:\n {0}";
@@ -122,11 +128,7 @@ public final class LogMessageConstant {
122128
public static final String WORKER_UNABLE_TO_PROCESS_IT_S_TEXT_CONTENT = "Worker of type {0} unable to process it's text content";
123129
/** The Constant WORKER_UNABLE_TO_PROCESS_OTHER_WORKER. */
124130
public static final String WORKER_UNABLE_TO_PROCESS_OTHER_WORKER = "Worker of type {0} unable to process {1}";
125-
/** The Constant PDF_DOCUMENT_NOT_PRESENT */
126-
public static final String PDF_DOCUMENT_NOT_PRESENT = "PdfDocument is not present";
127-
/**
128-
* Instantiates a new log message constant.
129-
*/
131+
130132
private LogMessageConstant() {
131133
}
132134

src/main/java/com/itextpdf/html2pdf/attach/Attacher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/IHtmlProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/ITagWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/ITagWorkerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2018 iText Group NV
3+
Copyright (c) 1998-2019 iText Group NV
44
Authors: Bruno Lowagie, Paulo Soares, et al.
55
66
This program is free software; you can redistribute it and/or modify

0 commit comments

Comments
 (0)