Skip to content

Commit 6b5a4b8

Browse files
committed
[RELEASE] merging 'release/1.0.0' into 'master'
2 parents 08fdc2f + f45b163 commit 6b5a4b8

File tree

1,473 files changed

+92022
-0
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,473 files changed

+92022
-0
lines changed

pom.xml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>com.itextpdf</groupId>
9+
<artifactId>root</artifactId>
10+
<version>7.0.2</version>
11+
<relativePath />
12+
</parent>
13+
14+
<artifactId>html2pdf</artifactId>
15+
<version>1.0.0</version>
16+
17+
<name>pdfHTML</name>
18+
<url>http://itextpdf.com/</url>
19+
20+
<properties>
21+
<itext.version>7.0.2</itext.version>
22+
</properties>
23+
24+
<dependencies>
25+
<dependency>
26+
<groupId>com.itextpdf</groupId>
27+
<artifactId>layout</artifactId>
28+
<version>${itext.version}</version>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.itextpdf</groupId>
32+
<artifactId>pdftest</artifactId>
33+
<version>${itext.version}</version>
34+
<scope>test</scope>
35+
</dependency>
36+
<dependency>
37+
<groupId>com.itextpdf</groupId>
38+
<artifactId>pdfa</artifactId>
39+
<version>${itext.version}</version>
40+
<scope>test</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>com.itextpdf</groupId>
44+
<artifactId>hyph</artifactId>
45+
<version>${itext.version}</version>
46+
<scope>test</scope>
47+
</dependency>
48+
</dependencies>
49+
50+
<repositories>
51+
<repository>
52+
<id>itext-snapshot</id>
53+
<name>iText Repository - snapshots</name>
54+
<url>https://repo.itextsupport.com/snapshot</url>
55+
<snapshots>
56+
<enabled>true</enabled>
57+
</snapshots>
58+
</repository>
59+
<repository>
60+
<id>itext-releases</id>
61+
<name>iText Repository - releases</name>
62+
<url>https://repo.itextsupport.com/releases</url>
63+
<snapshots>
64+
<enabled>false</enabled>
65+
</snapshots>
66+
</repository>
67+
</repositories>
68+
69+
<build>
70+
<plugins>
71+
<plugin>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-surefire-plugin</artifactId>
74+
<version>2.19.1</version>
75+
<configuration>
76+
<groups>${unittests}</groups>
77+
</configuration>
78+
</plugin>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-failsafe-plugin</artifactId>
82+
<version>2.19.1</version>
83+
<configuration>
84+
<includes>
85+
<include>**/*Test.java</include>
86+
</includes>
87+
<groups>${integrationtests}</groups>
88+
</configuration>
89+
</plugin>
90+
<plugin>
91+
<groupId>org.pitest</groupId>
92+
<artifactId>pitest-maven</artifactId>
93+
<version>1.1.11</version>
94+
<configuration>
95+
<skip>true</skip>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-source-plugin</artifactId>
101+
<version>3.0.0</version>
102+
<configuration>
103+
<excludes>
104+
<exclude>**</exclude>
105+
</excludes>
106+
</configuration>
107+
</plugin>
108+
<plugin>
109+
<groupId>org.revapi</groupId>
110+
<artifactId>revapi-maven-plugin</artifactId>
111+
<version>0.8.2</version>
112+
<configuration>
113+
<skip>true</skip>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>external.atlassian.jgitflow</groupId>
118+
<artifactId>jgitflow-maven-plugin</artifactId>
119+
<version>1.0-m5.1</version>
120+
</plugin>
121+
</plugins>
122+
<resources>
123+
<resource>
124+
<directory>src/main/java</directory>
125+
<includes>
126+
<include>**/*.properties</include>
127+
</includes>
128+
</resource>
129+
<resource>
130+
<directory>src/main/resources</directory>
131+
<includes>
132+
<include>**/*.css</include>
133+
<include>**/*.ttf</include>
134+
</includes>
135+
</resource>
136+
</resources>
137+
</build>
138+
139+
</project>
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2017 iText Group NV
4+
Authors: iText Software.
5+
6+
This program is free software; you can redistribute it and/or modify
7+
it under the terms of the GNU Affero General Public License version 3
8+
as published by the Free Software Foundation with the addition of the
9+
following permission added to Section 15 as permitted in Section 7(a):
10+
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
11+
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
12+
OF THIRD PARTY RIGHTS
13+
14+
This program is distributed in the hope that it will be useful, but
15+
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16+
or FITNESS FOR A PARTICULAR PURPOSE.
17+
See the GNU Affero General Public License for more details.
18+
You should have received a copy of the GNU Affero General Public License
19+
along with this program; if not, see http://www.gnu.org/licenses or write to
20+
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21+
Boston, MA, 02110-1301 USA, or download the license from the following URL:
22+
http://itextpdf.com/terms-of-use/
23+
24+
The interactive user interfaces in modified source and object code versions
25+
of this program must display Appropriate Legal Notices, as required under
26+
Section 5 of the GNU Affero General Public License.
27+
28+
In accordance with Section 7(b) of the GNU Affero General Public License,
29+
a covered work must retain the producer line in every PDF that is created
30+
or manipulated using iText.
31+
32+
You can be released from the requirements of the license by purchasing
33+
a commercial license. Buying such a license is mandatory as soon as you
34+
develop commercial activities involving the iText software without
35+
disclosing the source code of your own applications.
36+
These activities include: offering paid services to customers as an ASP,
37+
serving PDFs on the fly in a web application, shipping iText with a closed
38+
source product.
39+
40+
For more information, please contact iText Software Corp. at this
41+
42+
*/
43+
package com.itextpdf.html2pdf;
44+
45+
import com.itextpdf.html2pdf.attach.ITagWorkerFactory;
46+
import com.itextpdf.html2pdf.css.apply.ICssApplierFactory;
47+
import com.itextpdf.html2pdf.css.media.MediaDeviceDescription;
48+
import com.itextpdf.layout.font.FontProvider;
49+
50+
public class ConverterProperties {
51+
52+
private MediaDeviceDescription mediaDeviceDescription;
53+
private FontProvider fontProvider;
54+
private ITagWorkerFactory tagWorkerFactory;
55+
private ICssApplierFactory cssApplierFactory;
56+
private String baseUri;
57+
58+
public ConverterProperties() {
59+
}
60+
61+
public ConverterProperties(ConverterProperties other) {
62+
this.mediaDeviceDescription = other.mediaDeviceDescription;
63+
this.fontProvider = other.fontProvider;
64+
this.tagWorkerFactory = other.tagWorkerFactory;
65+
this.cssApplierFactory = other.cssApplierFactory;
66+
this.baseUri = other.baseUri;
67+
}
68+
69+
public MediaDeviceDescription getMediaDeviceDescription() {
70+
return mediaDeviceDescription;
71+
}
72+
73+
public ConverterProperties setMediaDeviceDescription(MediaDeviceDescription mediaDeviceDescription) {
74+
this.mediaDeviceDescription = mediaDeviceDescription;
75+
return this;
76+
}
77+
78+
public FontProvider getFontProvider() {
79+
return fontProvider;
80+
}
81+
82+
public ConverterProperties setFontProvider(FontProvider fontProvider) {
83+
this.fontProvider = fontProvider;
84+
return this;
85+
}
86+
87+
public ITagWorkerFactory getTagWorkerFactory() {
88+
return tagWorkerFactory;
89+
}
90+
91+
public ConverterProperties setTagWorkerFactory(ITagWorkerFactory tagWorkerFactory) {
92+
this.tagWorkerFactory = tagWorkerFactory;
93+
return this;
94+
}
95+
96+
public ICssApplierFactory getCssApplierFactory() {
97+
return cssApplierFactory;
98+
}
99+
100+
public ConverterProperties setCssApplierFactory(ICssApplierFactory cssApplierFactory) {
101+
this.cssApplierFactory = cssApplierFactory;
102+
return this;
103+
}
104+
105+
public String getBaseUri() {
106+
return baseUri;
107+
}
108+
109+
public ConverterProperties setBaseUri(String baseUri) {
110+
this.baseUri = baseUri;
111+
return this;
112+
}
113+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
This file is part of the iText (R) project.
3+
Copyright (c) 1998-2017 iText Group NV
4+
Authors: Bruno Lowagie, Paulo Soares, et al.
5+
6+
This program is free software; you can redistribute it and/or modify
7+
it under the terms of the GNU Affero General Public License version 3
8+
as published by the Free Software Foundation with the addition of the
9+
following permission added to Section 15 as permitted in Section 7(a):
10+
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
11+
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
12+
OF THIRD PARTY RIGHTS
13+
14+
This program is distributed in the hope that it will be useful, but
15+
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16+
or FITNESS FOR A PARTICULAR PURPOSE.
17+
See the GNU Affero General Public License for more details.
18+
You should have received a copy of the GNU Affero General Public License
19+
along with this program; if not, see http://www.gnu.org/licenses or write to
20+
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21+
Boston, MA, 02110-1301 USA, or download the license from the following URL:
22+
http://itextpdf.com/terms-of-use/
23+
24+
The interactive user interfaces in modified source and object code versions
25+
of this program must display Appropriate Legal Notices, as required under
26+
Section 5 of the GNU Affero General Public License.
27+
28+
In accordance with Section 7(b) of the GNU Affero General Public License,
29+
a covered work must retain the producer line in every PDF that is created
30+
or manipulated using iText.
31+
32+
You can be released from the requirements of the license by purchasing
33+
a commercial license. Buying such a license is mandatory as soon as you
34+
develop commercial activities involving the iText software without
35+
disclosing the source code of your own applications.
36+
These activities include: offering paid services to customers as an ASP,
37+
serving PDFs on the fly in a web application, shipping iText with a closed
38+
source product.
39+
40+
For more information, please contact iText Software Corp. at this
41+
42+
*/
43+
44+
package com.itextpdf.html2pdf;
45+
46+
/**
47+
* Product info about this iText add-on.
48+
*/
49+
// TODO refactor? move to local fields in order to hide it?
50+
public class Html2PdfProductInfo {
51+
52+
/** The product name. */
53+
public static final String PRODUCT_NAME = "pdfHtml";
54+
55+
/** The major version number. */
56+
public static final int MAJOR_VERSION = 1;
57+
58+
/** The minor version number. */
59+
public static final int MINOR_VERSION = 0;
60+
}

0 commit comments

Comments
 (0)