Skip to content

Commit a02011a

Browse files
committed
[RELEASE] iText 7 pdfHTML 4.0.2
2 parents b944d5a + 12343b9 commit a02011a

File tree

2,691 files changed

+3427
-2897
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,691 files changed

+3427
-2897
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<parent>
66
<groupId>com.itextpdf</groupId>
77
<artifactId>root</artifactId>
8-
<version>7.2.1</version>
8+
<version>7.2.2</version>
99
<relativePath />
1010
</parent>
1111

1212
<artifactId>html2pdf</artifactId>
13-
<version>4.0.1</version>
13+
<version>4.0.2</version>
1414

1515
<name>pdfHTML</name>
1616
<description>pdfHTML is an iText 7 add-on that lets you to parse (X)HTML snippets and the associated CSS and converts

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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/ProcessorContextCreator.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

src/main/java/com/itextpdf/html2pdf/actions/data/PdfHtmlProductData.java

Lines changed: 3 additions & 3 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -30,9 +30,9 @@ This file is part of the iText (R) project.
3030
*/
3131
public final class PdfHtmlProductData {
3232
private static final String PDF_HTML_PUBLIC_PRODUCT_NAME = "pdfHTML";
33-
private static final String PDF_HTML_VERSION = "4.0.1";
33+
private static final String PDF_HTML_VERSION = "4.0.2";
3434
private static final int PDF_HTML_COPYRIGHT_SINCE = 2000;
35-
private static final int PDF_HTML_COPYRIGHT_TO = 2021;
35+
private static final int PDF_HTML_COPYRIGHT_TO = 2022;
3636

3737
private static final ProductData PDF_HTML_PRODUCT_DATA = new ProductData(PDF_HTML_PUBLIC_PRODUCT_NAME,
3838
ProductNameConstant.PDF_HTML, PDF_HTML_VERSION, PDF_HTML_COPYRIGHT_SINCE, PDF_HTML_COPYRIGHT_TO);

src/main/java/com/itextpdf/html2pdf/actions/events/PdfHtmlProductEvent.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/ProcessorContext.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/State.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/DefaultHtmlProcessor.java

Lines changed: 2 additions & 3 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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
@@ -134,7 +134,6 @@ public class DefaultHtmlProcessor implements IHtmlProcessor {
134134
TagConstants.LINK,
135135
TagConstants.META,
136136
TagConstants.TITLE,
137-
// Content from <tr> is thrown upwards to parent, in other cases CSS is inherited anyway
138137
TagConstants.TR)));
139138

140139
/**
@@ -145,7 +144,7 @@ public class DefaultHtmlProcessor implements IHtmlProcessor {
145144
TagConstants.LINK,
146145
TagConstants.META,
147146
TagConstants.SCRIPT,
148-
TagConstants.TITLE // TODO implement
147+
TagConstants.TITLE
149148
)));
150149

151150
/**

src/main/java/com/itextpdf/html2pdf/attach/impl/DefaultTagWorkerFactory.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/DefaultTagWorkerMapping.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/HtmlMetaInfoContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

src/main/java/com/itextpdf/html2pdf/attach/impl/LinkContext.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/OutlineHandler.java

Lines changed: 8 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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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
@@ -42,6 +42,7 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.html2pdf.attach.impl;
4444

45+
import com.itextpdf.html2pdf.html.TagConstants;
4546
import com.itextpdf.html2pdf.logs.Html2PdfLogMessageConstant;
4647
import com.itextpdf.html2pdf.attach.ITagWorker;
4748
import com.itextpdf.html2pdf.attach.ProcessorContext;
@@ -116,12 +117,12 @@ public class OutlineHandler {
116117
*/
117118
public static OutlineHandler createStandardHandler() {
118119
OutlineHandler handler = new OutlineHandler();
119-
handler.putTagPriorityMapping("h1", 1);
120-
handler.putTagPriorityMapping("h2", 2);
121-
handler.putTagPriorityMapping("h3", 3);
122-
handler.putTagPriorityMapping("h4", 4);
123-
handler.putTagPriorityMapping("h5", 5);
124-
handler.putTagPriorityMapping("h6", 6);
120+
handler.putTagPriorityMapping(TagConstants.H1, 1);
121+
handler.putTagPriorityMapping(TagConstants.H2, 2);
122+
handler.putTagPriorityMapping(TagConstants.H3, 3);
123+
handler.putTagPriorityMapping(TagConstants.H4, 4);
124+
handler.putTagPriorityMapping(TagConstants.H5, 5);
125+
handler.putTagPriorityMapping(TagConstants.H6, 6);
125126
return handler;
126127
}
127128

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/BodyHtmlStylesContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/DimensionContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/HeightDimensionContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/Html2PdfProperty.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/HtmlBodyStylesApplierHandler.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/HtmlDocument.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/HtmlDocumentRenderer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/HtmlPageBreak.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/HtmlPageBreakType.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageContextProcessor.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageContextProperties.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageCountElement.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageCountRenderer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageCountType.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageMarginBoxBuilder.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/PageSizeParser.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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/impl/layout/PageTargetCountElement.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/PageTargetCountRenderer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/RunningElement.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/RunningElementContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/WidthDimensionContainer.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/form/element/AbstractSelectField.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/form/element/Button.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

src/main/java/com/itextpdf/html2pdf/attach/impl/layout/form/element/CheckBox.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-2021 iText Group NV
3+
Copyright (c) 1998-2022 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)