Skip to content

Commit

Permalink
[RELEASE] iText 8.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
iText-CI committed Apr 18, 2024
2 parents f1cff09 + 78f1884 commit 5e81e0b
Show file tree
Hide file tree
Showing 714 changed files with 30,733 additions and 1,989 deletions.
2 changes: 1 addition & 1 deletion doxyfile
Expand Up @@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
# title of most generated pages and in a few other places.
# The default value is: My Project.

PROJECT_NAME = "iText 8.0.3 API"
PROJECT_NAME = "iText 8.0.4 API"

# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
Expand Down
6 changes: 3 additions & 3 deletions itext.nuspec
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>itext</id>
<version>8.0.3</version>
<version>8.0.4</version>
<title>iText Community</title>
<authors>Apryse Software</authors>
<owners>Apryse Software</owners>
Expand All @@ -19,11 +19,11 @@
<repository type="git" url="https://github.com/itext/itext7-dotnet.git" />
<dependencies>
<group targetFramework="net461">
<dependency id="itext.commons" version="8.0.3" />
<dependency id="itext.commons" version="8.0.4" />
<dependency id="Microsoft.Extensions.Logging" version="5.0.0" />
</group>
<group targetFramework="netstandard2.0">
<dependency id="itext.commons" version="8.0.3" />
<dependency id="itext.commons" version="8.0.4" />
<dependency id="Microsoft.Extensions.Logging" version="5.0.0" />
<dependency id="System.Diagnostics.Process" version="4.3.0" />
<dependency id="System.Globalization.Extensions" version="4.3.0" />
Expand Down
6 changes: 3 additions & 3 deletions itext.tests/itext.barcodes.tests/Properties/AssemblyInfo.cs
Expand Up @@ -14,9 +14,9 @@

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

[assembly: AssemblyVersion("8.0.3.0")]
[assembly: AssemblyFileVersion("8.0.3.0")]
[assembly: AssemblyInformationalVersion("8.0.3")]
[assembly: AssemblyVersion("8.0.4.0")]
[assembly: AssemblyFileVersion("8.0.4.0")]
[assembly: AssemblyInformationalVersion("8.0.4")]

#if !NETSTANDARD2_0
[assembly: NUnit.Framework.Timeout(300000)]
Expand Down
6 changes: 3 additions & 3 deletions itext.tests/itext.commons.tests/Properties/AssemblyInfo.cs
Expand Up @@ -15,9 +15,9 @@

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

[assembly: AssemblyVersion("8.0.3.0")]
[assembly: AssemblyFileVersion("8.0.3.0")]
[assembly: AssemblyInformationalVersion("8.0.3")]
[assembly: AssemblyVersion("8.0.4.0")]
[assembly: AssemblyFileVersion("8.0.4.0")]
[assembly: AssemblyInformationalVersion("8.0.4")]

#if !NETSTANDARD2_0
[assembly: NUnit.Framework.Timeout(300000)]
Expand Down
6 changes: 3 additions & 3 deletions itext.tests/itext.forms.tests/Properties/AssemblyInfo.cs
Expand Up @@ -14,9 +14,9 @@

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

[assembly: AssemblyVersion("8.0.3.0")]
[assembly: AssemblyFileVersion("8.0.3.0")]
[assembly: AssemblyInformationalVersion("8.0.3")]
[assembly: AssemblyVersion("8.0.4.0")]
[assembly: AssemblyFileVersion("8.0.4.0")]
[assembly: AssemblyInformationalVersion("8.0.4")]

#if !NETSTANDARD2_0
[assembly: NUnit.Framework.Timeout(300000)]
Expand Down
12 changes: 6 additions & 6 deletions itext.tests/itext.forms.tests/itext/forms/PdfChoiceFieldTest.cs
Expand Up @@ -56,27 +56,27 @@ public class PdfChoiceFieldTest : ExtendedITextTest {
pdfDoc.AddNewPage();
// 规
PdfFormField field = new ChoiceFormFieldBuilder(pdfDoc, "combo1").SetWidgetRectangle(new Rectangle(36, 666
, 40, 80)).SetOptions(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateComboBox().
SetValue("\u89c4");
, 40, 80)).SetOptions(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateComboBox
().SetValue("\u89c4");
field.SetFont(font);
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
form.AddField(field);
// 觉
field = new ChoiceFormFieldBuilder(pdfDoc, "combo2").SetWidgetRectangle(new Rectangle(136, 666, 40, 80)).SetOptions
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateComboBox();
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateComboBox();
field.SetValue("\u89c4").SetFont(font);
field.SetValue("\u89c9");
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
form.AddField(field);
// 规
field = new ChoiceFormFieldBuilder(pdfDoc, "list1").SetWidgetRectangle(new Rectangle(236, 666, 50, 80)).SetOptions
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateList().SetValue("\u89c4");
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateList().SetValue("\u89c4");
field.SetFont(font);
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
form.AddField(field);
// 觉
field = new ChoiceFormFieldBuilder(pdfDoc, "list2").SetWidgetRectangle(new Rectangle(336, 666, 50, 80)).SetOptions
(new String[] { "\u89c4", "\u89c9" }).SetConformanceLevel(null).CreateList();
(new String[] { "\u89c4", "\u89c9" }).SetGenericConformanceLevel(null).CreateList();
field.SetValue("\u89c4").SetFont(font);
field.SetValue("\u89c9");
field.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
Expand Down Expand Up @@ -146,7 +146,7 @@ public class PdfChoiceFieldTest : ExtendedITextTest {
document.AddNewPage();
PdfAcroForm form = PdfFormCreator.GetAcroForm(document, true);
PdfChoiceFormField choice = (PdfChoiceFormField)new ChoiceFormFieldBuilder(document, "choice").SetWidgetRectangle
(new Rectangle(336, 666, 50, 80)).SetOptions(new String[] { "one", "two", "three", "four" }).SetConformanceLevel
(new Rectangle(336, 666, 50, 80)).SetOptions(new String[] { "one", "two", "three", "four" }).SetGenericConformanceLevel
(null).CreateList().SetValue("two").SetFont(null);
choice.GetFirstFormAnnotation().SetBorderColor(ColorConstants.BLACK);
choice.SetMultiSelect(true);
Expand Down
Expand Up @@ -70,7 +70,7 @@ public class CheckBoxFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateCheckBoxWithConformanceLevelTest() {
PdfButtonFormField checkBoxFormField = new CheckBoxFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateCheckBox();
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateCheckBox();
CompareCheckBoxes(checkBoxFormField, true);
}

Expand Down
Expand Up @@ -110,7 +110,7 @@ public class ChoiceFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateComboBoxWithConformanceLevelTest() {
PdfChoiceFormField choiceFormField = new ChoiceFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateComboBox();
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateComboBox();
CompareChoices(new PdfDictionary(), choiceFormField, true);
}

Expand Down Expand Up @@ -150,7 +150,7 @@ public class ChoiceFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateListWithConformanceLevelTest() {
PdfChoiceFormField choiceFormField = new ChoiceFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateList();
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateList();
PdfDictionary expectedDictionary = new PdfDictionary();
expectedDictionary.Put(PdfName.Ff, new PdfNumber(0));
CompareChoices(expectedDictionary, choiceFormField, true);
Expand Down
Expand Up @@ -42,12 +42,28 @@ public class FormFieldBuilderTest : ExtendedITextTest {

[NUnit.Framework.Test]
public virtual void GetSetConformanceLevelTest() {
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
);
builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A);
NUnit.Framework.Assert.AreSame(PdfAConformanceLevel.PDF_A_1A, builder.GetGenericConformanceLevel());
}

[NUnit.Framework.Test]
public virtual void GetSetConformanceLevelDepreceatedTest() {
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
);
builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A);
NUnit.Framework.Assert.AreSame(PdfAConformanceLevel.PDF_A_1A, builder.GetConformanceLevel());
}

[NUnit.Framework.Test]
public virtual void GetSetConformanceLevelDifferentTest() {
FormFieldBuilderTest.TestBuilder builder = new FormFieldBuilderTest.TestBuilder(DUMMY_DOCUMENT, DUMMY_NAME
);
builder.SetGenericConformanceLevel(PdfUAConformanceLevel.PDFUA_1);
NUnit.Framework.Assert.IsNull(builder.GetConformanceLevel());
}

private class TestBuilder : FormFieldBuilder<FormFieldBuilderTest.TestBuilder> {
protected internal TestBuilder(PdfDocument document, String formFieldName)
: base(document, formFieldName) {
Expand Down
Expand Up @@ -69,7 +69,7 @@ public class PushButtonFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreatePushButtonWithConformanceLevelTest() {
PdfButtonFormField pushButtonFormField = new PushButtonFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreatePushButton();
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreatePushButton();
ComparePushButtons(pushButtonFormField, true);
}

Expand Down
Expand Up @@ -149,7 +149,7 @@ public class RadioFormFieldBuilderTest : ExtendedITextTest {
public virtual void CreateRadioButtonWithConformanceLevelTest() {
RadioFormFieldBuilder builder = new RadioFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME);
PdfButtonFormField radioGroup = builder.CreateRadioGroup();
PdfFormAnnotation radioAnnotation = builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
PdfFormAnnotation radioAnnotation = builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
(DUMMY_APPEARANCE_NAME, DUMMY_RECTANGLE);
CompareRadioButtons(radioAnnotation, radioGroup, false);
}
Expand All @@ -158,7 +158,7 @@ public class RadioFormFieldBuilderTest : ExtendedITextTest {
public virtual void CreateRadioButtonWithConformanceLevelAddedToGroupTest() {
RadioFormFieldBuilder builder = new RadioFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME);
PdfButtonFormField radioGroup = builder.CreateRadioGroup();
PdfFormAnnotation radioAnnotation = builder.SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
PdfFormAnnotation radioAnnotation = builder.SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateRadioButton
(DUMMY_APPEARANCE_NAME, DUMMY_RECTANGLE);
radioGroup.AddKid(radioAnnotation);
CompareRadioButtons(radioAnnotation, radioGroup, true);
Expand Down Expand Up @@ -235,7 +235,7 @@ public class RadioFormFieldBuilderTest : ExtendedITextTest {
));
}
}
if (radioButtonFormField.pdfAConformanceLevel != null) {
if (radioButtonFormField.pdfConformanceLevel != null) {
PutIfAbsent(expectedDictionary, PdfName.F, new PdfNumber(PdfAnnotation.PRINT));
}
// 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
Expand Down
Expand Up @@ -62,7 +62,7 @@ public class SignatureFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateSignatureWithConformanceLevelTest() {
PdfSignatureFormField signatureFormField = new SignatureFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle
(DUMMY_RECTANGLE).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateSignature();
(DUMMY_RECTANGLE).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateSignature();
CompareSignatures(signatureFormField, true);
}

Expand Down
Expand Up @@ -65,7 +65,7 @@ public class TextFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateTextWithConformanceLevelTest() {
PdfTextFormField textFormField = new TextFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle(DUMMY_RECTANGLE
).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateText();
).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateText();
PdfDictionary expectedDictionary = new PdfDictionary();
expectedDictionary.Put(PdfName.Ff, new PdfNumber(0));
CompareTexts(expectedDictionary, textFormField, true);
Expand All @@ -92,7 +92,7 @@ public class TextFormFieldBuilderTest : ExtendedITextTest {
[NUnit.Framework.Test]
public virtual void CreateMultilineTextWithConformanceLevelTest() {
PdfTextFormField textFormField = new TextFormFieldBuilder(DUMMY_DOCUMENT, DUMMY_NAME).SetWidgetRectangle(DUMMY_RECTANGLE
).SetConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateMultilineText();
).SetGenericConformanceLevel(PdfAConformanceLevel.PDF_A_1A).CreateMultilineText();
PdfDictionary expectedDictionary = new PdfDictionary();
expectedDictionary.Put(PdfName.Ff, new PdfNumber(PdfTextFormField.FF_MULTILINE));
CompareTexts(expectedDictionary, textFormField, true);
Expand Down

0 comments on commit 5e81e0b

Please sign in to comment.