Skip to content

Commit 5e81e0b

Browse files
committed
[RELEASE] iText 8.0.4
2 parents f1cff09 + 78f1884 commit 5e81e0b

File tree

714 files changed

+30733
-1989
lines changed

Some content is hidden

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

714 files changed

+30733
-1989
lines changed

doxyfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "iText 8.0.3 API"
35+
PROJECT_NAME = "iText 8.0.4 API"
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version

itext.nuspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
33
<metadata>
44
<id>itext</id>
5-
<version>8.0.3</version>
5+
<version>8.0.4</version>
66
<title>iText Community</title>
77
<authors>Apryse Software</authors>
88
<owners>Apryse Software</owners>
@@ -19,11 +19,11 @@
1919
<repository type="git" url="https://github.com/itext/itext7-dotnet.git" />
2020
<dependencies>
2121
<group targetFramework="net461">
22-
<dependency id="itext.commons" version="8.0.3" />
22+
<dependency id="itext.commons" version="8.0.4" />
2323
<dependency id="Microsoft.Extensions.Logging" version="5.0.0" />
2424
</group>
2525
<group targetFramework="netstandard2.0">
26-
<dependency id="itext.commons" version="8.0.3" />
26+
<dependency id="itext.commons" version="8.0.4" />
2727
<dependency id="Microsoft.Extensions.Logging" version="5.0.0" />
2828
<dependency id="System.Diagnostics.Process" version="4.3.0" />
2929
<dependency id="System.Globalization.Extensions" version="4.3.0" />

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

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

17-
[assembly: AssemblyVersion("8.0.3.0")]
18-
[assembly: AssemblyFileVersion("8.0.3.0")]
19-
[assembly: AssemblyInformationalVersion("8.0.3")]
17+
[assembly: AssemblyVersion("8.0.4.0")]
18+
[assembly: AssemblyFileVersion("8.0.4.0")]
19+
[assembly: AssemblyInformationalVersion("8.0.4")]
2020

2121
#if !NETSTANDARD2_0
2222
[assembly: NUnit.Framework.Timeout(300000)]

itext.tests/itext.commons.tests/Properties/AssemblyInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
[assembly: Guid("502eda37-c014-4822-8e5c-4e5d21b085e9")]
1717

18-
[assembly: AssemblyVersion("8.0.3.0")]
19-
[assembly: AssemblyFileVersion("8.0.3.0")]
20-
[assembly: AssemblyInformationalVersion("8.0.3")]
18+
[assembly: AssemblyVersion("8.0.4.0")]
19+
[assembly: AssemblyFileVersion("8.0.4.0")]
20+
[assembly: AssemblyInformationalVersion("8.0.4")]
2121

2222
#if !NETSTANDARD2_0
2323
[assembly: NUnit.Framework.Timeout(300000)]

itext.tests/itext.forms.tests/Properties/AssemblyInfo.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
[assembly: Guid("6fe2f714-6b3e-4b20-8c70-28bfce084ed2")]
1616

17-
[assembly: AssemblyVersion("8.0.3.0")]
18-
[assembly: AssemblyFileVersion("8.0.3.0")]
19-
[assembly: AssemblyInformationalVersion("8.0.3")]
17+
[assembly: AssemblyVersion("8.0.4.0")]
18+
[assembly: AssemblyFileVersion("8.0.4.0")]
19+
[assembly: AssemblyInformationalVersion("8.0.4")]
2020

2121
#if !NETSTANDARD2_0
2222
[assembly: NUnit.Framework.Timeout(300000)]

itext.tests/itext.forms.tests/itext/forms/PdfChoiceFieldTest.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,27 @@ public virtual void ChoiceFieldsWithUnicodeTest() {
5656
pdfDoc.AddNewPage();
5757
// 规
5858
PdfFormField field = new ChoiceFormFieldBuilder(pdfDoc, "combo1").SetWidgetRectangle(new Rectangle(36, 666
59-
, 40, 80)).SetOptions(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateComboBox().
60-
SetValue("\u89c4");
59+
, 40, 80)).SetOptions(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateComboBox
60+
().SetValue("\u89c4");
6161
field.SetFont(font);
6262
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
6363
form.AddField(field);
6464
// 觉
6565
field = new ChoiceFormFieldBuilder(pdfDoc, "combo2").SetWidgetRectangle(new Rectangle(136, 666, 40, 80)).SetOptions
66-
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateComboBox();
66+
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateComboBox();
6767
field.SetValue("\u89c4").SetFont(font);
6868
field.SetValue("\u89c9");
6969
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
7070
form.AddField(field);
7171
// 规
7272
field = new ChoiceFormFieldBuilder(pdfDoc, "list1").SetWidgetRectangle(new Rectangle(236, 666, 50, 80)).SetOptions
73-
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateList().SetValue("\u89c4");
73+
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateList().SetValue("\u89c4");
7474
field.SetFont(font);
7575
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
7676
form.AddField(field);
7777
// 觉
7878
field = new ChoiceFormFieldBuilder(pdfDoc, "list2").SetWidgetRectangle(new Rectangle(336, 666, 50, 80)).SetOptions
79-
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateList();
79+
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateList();
8080
field.SetValue("\u89c4").SetFont(font);
8181
field.SetValue("\u89c9");
8282
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
@@ -146,7 +146,7 @@ public virtual void MultiSelectByValueTest() {
146146
document.AddNewPage();
147147
PdfAcroForm form = PdfFormCreator.GetAcroForm(document, true);
148148
PdfChoiceFormField choice = (PdfChoiceFormField)new ChoiceFormFieldBuilder(document, "choice").SetWidgetRectangle
149-
(new Rectangle(336, 666, 50, 80)).SetOptions(new String[] { "one", "two", "three", "four" }).SetConformanceLevel
149+
(new Rectangle(336, 666, 50, 80)).SetOptions(new String[] { "one", "two", "three", "four" }).SetGenericConformanceLevel
150150
(null).CreateList().SetValue("two").SetFont(null);
151151
choice.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
152152
choice.SetMultiSelect(true);

itext.tests/itext.forms.tests/itext/forms/fields/CheckBoxFormFieldBuilderTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public virtual void CreateCheckBoxWithoutWidgetTest() {
7070
[NUnit.Framework.Test]
7171
public virtual void CreateCheckBoxWithConformanceLevelTest() {
7272
PdfButtonFormField checkBoxFormField = new CheckBoxFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
73-
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateCheckBox();
73+
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateCheckBox();
7474
CompareCheckBoxes(checkBoxFormField, true);
7575
}
7676

itext.tests/itext.forms.tests/itext/forms/fields/ChoiceFormFieldBuilderTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public virtual void CreateComboBoxWithoutWidgetTest() {
110110
[NUnit.Framework.Test]
111111
public virtual void CreateComboBoxWithConformanceLevelTest() {
112112
PdfChoiceFormField choiceFormField = new ChoiceFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
113-
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateComboBox();
113+
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateComboBox();
114114
CompareChoices(new PdfDictionary(), choiceFormField, true);
115115
}
116116

@@ -150,7 +150,7 @@ public virtual void CreateListWithoutWidgetTest() {
150150
[NUnit.Framework.Test]
151151
public virtual void CreateListWithConformanceLevelTest() {
152152
PdfChoiceFormField choiceFormField = new ChoiceFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
153-
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateList();
153+
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateList();
154154
PdfDictionary expectedDictionary = new PdfDictionary();
155155
expectedDictionary.Put(PdfName.Ff, new PdfNumber(0));
156156
CompareChoices(expectedDictionary, choiceFormField, true);

itext.tests/itext.forms.tests/itext/forms/fields/FormFieldBuilderTest.cs

+16
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,28 @@ public virtual void ConstructorTest() {
4242

4343
[NUnit.Framework.Test]
4444
public virtual void GetSetConformanceLevelTest() {
45+
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
46+
);
47+
builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A);
48+
NUnit.Framework.Assert.AreSame(PdfAConformanceLevel.PDF_A_1A, builder.GetGenericConformanceLevel());
49+
}
50+
51+
[NUnit.Framework.Test]
52+
public virtual void GetSetConformanceLevelDepreceatedTest() {
4553
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
4654
);
4755
builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A);
4856
NUnit.Framework.Assert.AreSame(PdfAConformanceLevel.PDF_A_1A, builder.GetConformanceLevel());
4957
}
5058

59+
[NUnit.Framework.Test]
60+
public virtual void GetSetConformanceLevelDifferentTest() {
61+
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
62+
);
63+
builder.SetGenericConformanceLevel(PdfUAConformanceLevel.PDFUA_1);
64+
NUnit.Framework.Assert.IsNull(builder.GetConformanceLevel());
65+
}
66+
5167
private class TestBuilder : FormFieldBuilder<FormFieldBuilderTest.TestBuilder> {
5268
protected internal TestBuilder(PdfDocument document, String formFieldName)
5369
: base(document, formFieldName) {

itext.tests/itext.forms.tests/itext/forms/fields/PushButtonFormFieldBuilderTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public virtual void CreatePushButtonWithoutWidgetTest() {
6969
[NUnit.Framework.Test]
7070
public virtual void CreatePushButtonWithConformanceLevelTest() {
7171
PdfButtonFormField pushButtonFormField = new PushButtonFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
72-
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreatePushButton();
72+
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreatePushButton();
7373
ComparePushButtons(pushButtonFormField, true);
7474
}
7575

itext.tests/itext.forms.tests/itext/forms/fields/RadioFormFieldBuilderTest.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public virtual void CreateRadioButtonWithoutWidgetThrowsExceptionTest() {
149149
public virtual void CreateRadioButtonWithConformanceLevelTest() {
150150
RadioFormFieldBuilder builder = new RadioFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME);
151151
PdfButtonFormField radioGroup = builder.CreateRadioGroup();
152-
PdfFormAnnotation radioAnnotation = builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
152+
PdfFormAnnotation radioAnnotation = builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
153153
(DUMMY_APPEARANCE_NAME, DUMMY_RECTANGLE);
154154
CompareRadioButtons(radioAnnotation, radioGroup, false);
155155
}
@@ -158,7 +158,7 @@ public virtual void CreateRadioButtonWithConformanceLevelTest() {
158158
public virtual void CreateRadioButtonWithConformanceLevelAddedToGroupTest() {
159159
RadioFormFieldBuilder builder = new RadioFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME);
160160
PdfButtonFormField radioGroup = builder.CreateRadioGroup();
161-
PdfFormAnnotation radioAnnotation = builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
161+
PdfFormAnnotation radioAnnotation = builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
162162
(DUMMY_APPEARANCE_NAME, DUMMY_RECTANGLE);
163163
radioGroup.AddKid(radioAnnotation);
164164
CompareRadioButtons(radioAnnotation, radioGroup, true);
@@ -235,7 +235,7 @@ private static void CompareRadioButtons(PdfFormAnnotation radioButtonFormField,
235235
));
236236
}
237237
}
238-
if (radioButtonFormField.pdfAConformanceLevel != null) {
238+
if (radioButtonFormField.pdfConformanceLevel != null) {
239239
PutIfAbsent(expectedDictionary, PdfName.F, new PdfNumber(PdfAnnotation.PRINT));
240240
}
241241
// for the AS key if it's added to the group we expect it to be off or the value if the radiogroup was selected

itext.tests/itext.forms.tests/itext/forms/fields/SignatureFormFieldBuilderTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public virtual void CreateSignatureWithoutWidgetTest() {
6262
[NUnit.Framework.Test]
6363
public virtual void CreateSignatureWithConformanceLevelTest() {
6464
PdfSignatureFormField signatureFormField = new SignatureFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
65-
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateSignature();
65+
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateSignature();
6666
CompareSignatures(signatureFormField, true);
6767
}
6868

itext.tests/itext.forms.tests/itext/forms/fields/TextFormFieldBuilderTest.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public virtual void CreateTextWithoutWidgetTest() {
6565
[NUnit.Framework.Test]
6666
public virtual void CreateTextWithConformanceLevelTest() {
6767
PdfTextFormField textFormField = new TextFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle(DUMMY_RECTANGLE
68-
).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateText();
68+
).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateText();
6969
PdfDictionary expectedDictionary = new PdfDictionary();
7070
expectedDictionary.Put(PdfName.Ff, new PdfNumber(0));
7171
CompareTexts(expectedDictionary, textFormField, true);
@@ -92,7 +92,7 @@ public virtual void CreateMultilineTextWithoutWidgetTest() {
9292
[NUnit.Framework.Test]
9393
public virtual void CreateMultilineTextWithConformanceLevelTest() {
9494
PdfTextFormField textFormField = new TextFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle(DUMMY_RECTANGLE
95-
).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateMultilineText();
95+
).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateMultilineText();
9696
PdfDictionary expectedDictionary = new PdfDictionary();
9797
expectedDictionary.Put(PdfName.Ff, new PdfNumber(PdfTextFormField.FF_MULTILINE));
9898
CompareTexts(expectedDictionary, textFormField, true);

0 commit comments

Comments
 (0)