Skip to content

Commit 5bc3d32

Browse files
committed
Merge branch 'release/7.0.3'
2 parents b396e8f + 52364dd commit 5bc3d32

File tree

704 files changed

+15466
-5677
lines changed

Some content is hidden

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

704 files changed

+15466
-5677
lines changed

BUILDING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
To build **iText 7 Community**, you need to build `itextsharp/itextcore/iTextCore.sln`.

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at http://itextpdf.com/contact. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
# Contributing to iText 7 Community
2+
3+
We'd love for you to contribute to our source code and to make **iText 7 Community** even better than it is
4+
today! Here are the guidelines we'd like you to follow:
5+
6+
- [Question or Problem?](#question)
7+
- [Issues and Bugs](#issue)
8+
- [New Features](#feature)
9+
- [Submission Guidelines](#submit)
10+
- [Coding Rules](#rules)
11+
- [Commit Message Guidelines](#commit)
12+
- [Signing the iCLA](#cla)
13+
- [Contributor Code of Conduct](#coc)
14+
15+
16+
## <a name="question">Got a Question or Problem?</a>
17+
18+
If you have questions about how to use **iText 7 Community**, please direct these to [Stack Overflow][stackoverflow].
19+
20+
If you are a customer with a [support agreement][support], you also have direct access to our JIRA and our developers.
21+
22+
23+
## <a name="issue">Found an Issue?</a>
24+
If you find a bug in the source code or a mistake in the documentation, you can help us by
25+
submitting a [Pull Request][pull] with a fix.
26+
27+
**Please see the [Submission Guidelines](#submit) below**.
28+
29+
30+
## <a name="feature">Want to implement a Feature?</a>
31+
If you would like to implement a new feature then consider what kind of change it is:
32+
33+
* **Major Changes** that you wish to contribute to the project should be discussed first so that we can better
34+
coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully
35+
accepted into the project. Contact us at [[email protected]](mailto:[email protected]).
36+
* **Small Changes** can be crafted and submitted to the [GitHub Repository][github] as a [Pull Request][pull].
37+
38+
39+
## <a name="submit">Submission Guidelines</a>
40+
41+
### Submitting a Question or an Issue
42+
Before you submit your question or issue, search [Stack Overflow][stackoverflow], maybe your question was already answered.
43+
44+
If your issue appears to be a bug, and hasn't been reported, ask a question on [Stack Overflow][stackoverflow] to verify that is indeed a bug and not a mistake in your own code.
45+
Help us to maximize the effort we can spend fixing issues and adding new
46+
features, by not reporting duplicate issues. Providing the following information will increase the
47+
chances of your issue being dealt with quickly:
48+
49+
* **[How to ask good questions][good-questions]**
50+
* **Overview of the Issue** - if an error is being thrown a non-minified stack trace helps
51+
* **Motivation for or Use Case** - explain why this is a bug for you
52+
* **iText Version(s)** - is it a regression?
53+
* **Operating System** - is this a problem on Windows or Linux, maybe on Mac?
54+
* **Reproduce the Error** - provide a [Short, Self Contained, Correct (Compilable), Example][sscce], also known as a [Minimal, Complete, and Verifiable example][mcve].
55+
* **Related Issues** - has a similar issue been reported before?
56+
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
57+
causing the problem (line of code or commit)
58+
* **Tag the question** - add the tag `itext7` to your question so we can find it.
59+
60+
**If you get help, help others. Good karma rulez!**
61+
62+
63+
### Submitting a Pull Request
64+
Before you submit your pull request consider the following guidelines:
65+
66+
* Search [GitHub][pull] for an open or closed Pull Request
67+
that relates to your submission. You don't want to duplicate effort.
68+
* Verify that your proposed change hasn't already been addressed in the develop branch.
69+
* Don't send a separate pull request for every single file you change.
70+
* Please sign the [iText Contributor License Agreement (iCLA)](#cla) before sending pull
71+
requests for any change of more than 20 significant lines of code (we're not counting curly braces and other syntactical sugar).
72+
We cannot accept code without this agreement.
73+
* Clone **iText 7 Community** to your local machine.
74+
75+
```shell
76+
git clone [email protected]:itext/itext7.git
77+
cd itext7
78+
git fetch origin
79+
git checkout -b develop origin/develop
80+
```
81+
82+
* Make your changes in a new git branch based off the develop branch:
83+
84+
```shell
85+
git checkout -b my-fix-branch develop
86+
```
87+
88+
* Create your patch, **including appropriate test cases**.
89+
* Follow our [Coding Rules](#rules).
90+
* Run the full **iText 7 Community** test suite and ensure that all tests pass.
91+
* Commit your changes using a descriptive commit message that follows our
92+
[commit message conventions](#commit-message-format).
93+
94+
```shell
95+
git commit -a
96+
```
97+
Note: the optional commit `-a` command line option will automatically `add` and `rm` edited files.
98+
99+
* Now would be a good time to fix up your commits (if you want or need to) with `git rebase --interactive`.
100+
* Build your changes locally to ensure all the tests pass.
101+
* Push your branch to your GitHub account:
102+
103+
```shell
104+
git remote add my-remote [email protected]:my-remote/itext7.git
105+
git push my-remote my-fix-branch
106+
```
107+
108+
* In GitHub, send a pull request to `itext7:develop`.
109+
* If we suggest changes then:
110+
* Make the required updates.
111+
* Re-run the **iText 7 Community** test suite to ensure tests are still passing.
112+
* Rebase your branch and force push to your GitHub repository (this will update your Pull Request):
113+
114+
```shell
115+
git fetch origin
116+
git rebase develop -i
117+
git push my-remote my-fix-branch -f
118+
```
119+
120+
That's it! Thank you for your contribution!
121+
122+
#### After your pull request is merged
123+
124+
After your pull request is merged, you can safely delete your branch and pull the changes
125+
from the main (upstream) repository:
126+
127+
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
128+
129+
```shell
130+
git push my-remote --delete my-fix-branch
131+
```
132+
133+
* Check out the develop branch:
134+
135+
```shell
136+
git checkout develop -f
137+
```
138+
139+
* Delete the local branch:
140+
141+
```shell
142+
git branch -D my-fix-branch
143+
```
144+
145+
* Update your develop with the latest upstream version:
146+
147+
```shell
148+
git pull --ff upstream develop
149+
```
150+
151+
152+
## <a name="rules">Coding Rules</a>
153+
To ensure consistency throughout the source code, keep these rules in mind as you are working:
154+
155+
* We develop in Java first, and then port to .NET, so code submissions in Java are preferred.
156+
Nevertheless this shouldn't stop you from making a good pull request to the .NET port.
157+
* All Java code **must** be Java 7. Sorry, no lambda expressions or other Java 8 language features.
158+
* All features or bug fixes **must be tested** by one or more [unit tests][unit-testing].
159+
* All public API methods **must be documented** with JavaDoc. To see how we document our APIs, please check
160+
out the existing [javadocs][javadocs].
161+
* We follow the rules contained in
162+
[Oracle's Code Conventions for the Java Programming Language][java-style-guide], with these additions:
163+
* Wrap all code at **100 characters**.
164+
165+
166+
## <a name="commit">Git Commit Guidelines</a>
167+
168+
We have guidelines on how our git commit messages should be formatted. This leads to **more
169+
readable messages** that are easy to follow when looking through the **project history**. But also,
170+
we use the git commit messages to **generate the iText 7 Community change log**.
171+
172+
### Commit Message Format
173+
Each commit message consists of a **subject**, a **body** and a **footer**:
174+
175+
```
176+
<subject>
177+
<BLANK LINE>
178+
<body>
179+
<BLANK LINE>
180+
<footer>
181+
```
182+
183+
Any line of the commit message should not be longer 70 characters! This allows the message to be easier
184+
to read on GitHub as well as in various git tools.
185+
186+
### Subject
187+
The subject contains succinct description of the change:
188+
189+
* use the imperative, present tense: "change" not "changed" nor "changes"
190+
* don't capitalize first letter
191+
* no dot (.) at the end
192+
* describe what the **change** does, not the actions the developer has done
193+
194+
### Body
195+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
196+
The body should include the motivation for the change and contrast this with previous behavior.
197+
198+
### Footer
199+
The footer should contain any information about **Breaking Changes** and is also the place to
200+
reference JIRA or GitHub issues that this commit **Closes**.
201+
202+
203+
## <a name="cla">Signing the iCLA</a>
204+
205+
Please sign the **iText Contributor License Agreement (iCLA)** before sending pull requests. For any larger code
206+
changes (more than 20 lines of significant code) to be accepted, the iCLA must be signed. It's a quick process, we promise!
207+
208+
We'll need you to [(digitally) sign and then email, fax or mail the form][cla].
209+
210+
211+
## <a name="coc">Contributor Code of Conduct</a>
212+
Please note that this project is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms.
213+
214+
We use the [Stack Exchange][stackoverflow] network for free support and [GitHub][github] for code hosting. By using these services, you agree to abide by their terms:
215+
216+
* StackExchange: [http://stackexchange.com/legal](http://stackexchange.com/legal)
217+
* Github: [https://help.github.com/articles/github-terms-of-service/](https://help.github.com/articles/github-terms-of-service/)
218+
219+
[cla]: http://itextpdf.com/policy
220+
[coc]: CODE_OF_CONDUCT.md
221+
[github]: https://github.com/itext/itext7
222+
[java-style-guide]: http://www.oracle.com/technetwork/java/codeconvtoc-136057.html
223+
[javadocs]: http://itextpdf.com/api
224+
[pull]: https://github.com/itext/itext7/pulls
225+
[sscce]: http://sscce.org/
226+
[stackoverflow]: http://stackoverflow.com/questions/tagged/itext7
227+
[good-questions]: http://stackoverflow.com/help/how-to-ask
228+
[mcve]: http://stackoverflow.com/help/mcve
229+
[support]: http://itextpdf.com/support
230+
[unit-testing]: http://junit.org/

README.md

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,59 @@
1-
This repository contains the .NET port of iText 7 Core.
1+
**[iText 7 Community][itext]** for .NET consists of several dlls.
2+
3+
The **iText 7 Core/Community** release contains:
4+
5+
- ```kernel.dll```: low-level functionality
6+
- ```io.dll```: low-level functionality
7+
- ```layout.dll```: high-level functionality
8+
- ```forms.dll```: AcroForms
9+
- ```pdfa.dll```: PDF/A-specific functionality
10+
- ```pdftest.dll```: test helper classes
11+
- ```barcode.dll```: use this if you want to create bar codes
12+
- ```hyph.dll```: use this if you want text to be hyphenated
13+
- ```font-asian.dll```: use this is you need CJK functionality (Chinese / Japanese / Korean)
14+
- ```sign.dll```: use this if you need support for digital signatures
15+
16+
The **iText 7 Community** source code is hosted on [Github][github], where you can also [download the latest releases][latest].
17+
18+
*We strongly recommend that you use [NuGet][nuget] to add **iText 7 Community** to your project:*
19+
20+
Install-Package itext7
21+
22+
You can also [build iText 7 Community from source][building].
23+
24+
We also have a Java tool that can help you debug PDFs:
25+
26+
- ```itext-rups-x.y.z.jar```
27+
28+
RUPS is also hosted on [Github][github-rups].
29+
30+
If you have an idea on how to improve **iText 7 Community** and you want to submit code,
31+
please read our [Contribution Guidelines][contributing].
32+
33+
**iText 7** is dual licensed as [AGPL][agpl]/[Commercial software][sales].
34+
35+
AGPL is a free / open source software license.
36+
37+
This doesn't mean the software is [gratis][gratis]!
38+
39+
Buying a license is mandatory as soon as you develop commercial activities
40+
distributing the iText software inside your product or deploying it on a network
41+
without disclosing the source code of your own applications under the AGPL license.
42+
These activities include:
43+
44+
- offering paid services to customers as an ASP
45+
- serving PDFs on the fly in the cloud or in a web application
46+
- shipping iText with a closed source product
47+
48+
Contact [sales] for more info.
49+
50+
[agpl]: LICENSE.md
51+
[building]: BUILDING.md
52+
[contributing]: CONTRIBUTING.md
53+
[itext]: http://itextpdf.com/
54+
[github]: https://github.com/itext/itext7-dotnet
55+
[github-rups]: http://github.com/itext/rups
56+
[latest]: https://github.com/itext/itext7-dotnet/releases/latest
57+
[nuget]: https://www.nuget.org/packages/itext7
58+
[sales]: http://itextpdf.com/sales
59+
[gratis]: https://en.wikipedia.org/wiki/Gratis_versus_libre

itext.tests/itext.barcodes.tests/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414

1515
[assembly: Guid("d015a3aa-613c-45d9-b908-7d47c4b613af")]
1616

17-
[assembly: AssemblyVersion("7.0.2.0")]
18-
[assembly: AssemblyFileVersion("7.0.2.0")]
17+
[assembly: AssemblyVersion("7.0.3.0")]
18+
[assembly: AssemblyFileVersion("7.0.3.0")]
19+
[assembly: AssemblyInformationalVersion("7.0.3")]
1920

2021
#if !NETSTANDARD1_6
2122
[assembly: NUnit.Framework.Timeout(300000)]

itext.tests/itext.barcodes.tests/itext/barcodes/Barcode128Test.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,11 @@ public virtual void Barcode02Test() {
9999
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + filename, sourceFolder
100100
+ "cmp_" + filename, destinationFolder, "diff_"));
101101
}
102+
103+
[NUnit.Framework.Test]
104+
public virtual void BarcodeRawValueGenerationTest01() {
105+
NUnit.Framework.Assert.AreEqual(iText.IO.Util.JavaUtil.GetStringForBytes(new byte[] { 103, 17, 18, 19, 20,
106+
21, 17, 18, 19, 20, 21 }), Barcode128.GetRawText("1234512345", false, Barcode128.Barcode128CodeSet.A));
107+
}
102108
}
103109
}

0 commit comments

Comments
 (0)