Skip to content

Commit 196af4a

Browse files
committed
Merge branch 'release_branch_DEVSIX-5576' into master-rc
2 parents 96657ab + 0b8b55c commit 196af4a

File tree

1,724 files changed

+42556
-26351
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,724 files changed

+42556
-26351
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The **iText 7 Core/Community** release contains:
1414
- ```sign.dll```: use this if you need support for digital signatures
1515
- ```styled-xml-parser.dll```: use this if you need support for SVG or html2pdf
1616
- ```svg.dll```: SVG support
17+
- ```commons.dll```: commons module
1718

1819
The **iText 7 Community** source code is hosted on [Github][github], where you can also [download the latest releases][latest].
1920

doxyfile

Lines changed: 3 additions & 5 deletions
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 7 7.1.16 API"
35+
PROJECT_NAME = "iText 7 7.2.0 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
@@ -914,12 +914,10 @@ EXCLUDE_PATTERNS = */.git/* \
914914
*/bin/* \
915915
*/obj/* \
916916
*/itext.tests/* \
917-
*/itext.pdftest/* \
918-
*/bouncycastle/* \
917+
*/itext.pdftest/* \
919918
*/itext/itext.io/itext/io/util/zlib/* \
920919
*/KeyVersionAttribute.cs \
921-
*/TypographyVersionAttribute.cs \
922-
*/LayoutRect.cs
920+
*/TypographyVersionAttribute.cs \
923921

924922
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
925923
# (namespaces, classes, functions, etc.) that should be excluded from the

iTextCore.netstandard.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "itext.svg.tests.netstandard
4747
EndProject
4848
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.pdftest.tests.netstandard", "itext.tests\itext.pdftest.tests\itext.pdftest.tests.netstandard.csproj", "{46C393D2-BFAB-473A-AF06-E5FB586493FD}"
4949
EndProject
50+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.commons.netstandard", "itext\itext.commons\itext.commons.netstandard.csproj", "{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}"
51+
EndProject
52+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.commons.tests.netstandard", "itext.tests\itext.commons.tests\itext.commons.tests.netstandard.csproj", "{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}"
53+
EndProject
5054
Global
5155
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5256
Debug|Any CPU = Debug|Any CPU
@@ -321,6 +325,30 @@ Global
321325
{46C393D2-BFAB-473A-AF06-E5FB586493FD}.Release|x64.Build.0 = Release|Any CPU
322326
{46C393D2-BFAB-473A-AF06-E5FB586493FD}.Release|x86.ActiveCfg = Release|Any CPU
323327
{46C393D2-BFAB-473A-AF06-E5FB586493FD}.Release|x86.Build.0 = Release|Any CPU
328+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
329+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|Any CPU.Build.0 = Debug|Any CPU
330+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|x64.ActiveCfg = Debug|Any CPU
331+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|x64.Build.0 = Debug|Any CPU
332+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|x86.ActiveCfg = Debug|Any CPU
333+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Debug|x86.Build.0 = Debug|Any CPU
334+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|Any CPU.ActiveCfg = Release|Any CPU
335+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|Any CPU.Build.0 = Release|Any CPU
336+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|x64.ActiveCfg = Release|Any CPU
337+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|x64.Build.0 = Release|Any CPU
338+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|x86.ActiveCfg = Release|Any CPU
339+
{6DBE9C11-7C0D-4039-B8B1-01AC743D5309}.Release|x86.Build.0 = Release|Any CPU
340+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
341+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|Any CPU.Build.0 = Debug|Any CPU
342+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|x64.ActiveCfg = Debug|Any CPU
343+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|x64.Build.0 = Debug|Any CPU
344+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|x86.ActiveCfg = Debug|Any CPU
345+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Debug|x86.Build.0 = Debug|Any CPU
346+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|Any CPU.ActiveCfg = Release|Any CPU
347+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|Any CPU.Build.0 = Release|Any CPU
348+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|x64.ActiveCfg = Release|Any CPU
349+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|x64.Build.0 = Release|Any CPU
350+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|x86.ActiveCfg = Release|Any CPU
351+
{726AEDB2-0B0D-45B8-A744-BFFEE36A187E}.Release|x86.Build.0 = Release|Any CPU
324352
EndGlobalSection
325353
GlobalSection(SolutionProperties) = preSolution
326354
HideSolutionNode = FALSE

iTextCore.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.svg", "itext\itext.sv
4545
EndProject
4646
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.svg.tests", "itext.tests\itext.svg.tests\itext.svg.tests.csproj", "{EA3251AA-1452-3815-1A43-0041AEDEA112}"
4747
EndProject
48+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.commons", "itext\itext.commons\itext.commons.csproj", "{339569D2-3BA2-41CC-972C-70B05E4C4FCD}"
49+
EndProject
50+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "itext.commons.tests", "itext.tests\itext.commons.tests\itext.commons.tests.csproj", "{502EDA37-C014-4822-8E5C-4E5D21B085E9}"
51+
EndProject
4852
Global
4953
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5054
Debug|Any CPU = Debug|Any CPU
@@ -135,6 +139,14 @@ Global
135139
{EA3251AA-1452-3815-1A43-0041AEDEA112}.Debug|Any CPU.Build.0 = Debug|Any CPU
136140
{EA3251AA-1452-3815-1A43-0041AEDEA112}.Release|Any CPU.ActiveCfg = Release|Any CPU
137141
{EA3251AA-1452-3815-1A43-0041AEDEA112}.Release|Any CPU.Build.0 = Release|Any CPU
142+
{339569D2-3BA2-41CC-972C-70B05E4C4FCD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
143+
{339569D2-3BA2-41CC-972C-70B05E4C4FCD}.Debug|Any CPU.Build.0 = Debug|Any CPU
144+
{339569D2-3BA2-41CC-972C-70B05E4C4FCD}.Release|Any CPU.ActiveCfg = Release|Any CPU
145+
{339569D2-3BA2-41CC-972C-70B05E4C4FCD}.Release|Any CPU.Build.0 = Release|Any CPU
146+
{502EDA37-C014-4822-8E5C-4E5D21B085E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
147+
{502EDA37-C014-4822-8E5C-4E5D21B085E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
148+
{502EDA37-C014-4822-8E5C-4E5D21B085E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
149+
{502EDA37-C014-4822-8E5C-4E5D21B085E9}.Release|Any CPU.Build.0 = Release|Any CPU
138150
EndGlobalSection
139151
GlobalSection(SolutionProperties) = preSolution
140152
HideSolutionNode = FALSE

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

Lines changed: 3 additions & 3 deletions
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("7.1.16.0")]
18-
[assembly: AssemblyFileVersion("7.1.16.0")]
19-
[assembly: AssemblyInformationalVersion("7.1.16")]
17+
[assembly: AssemblyVersion("7.2.0.0")]
18+
[assembly: AssemblyFileVersion("7.2.0.0")]
19+
[assembly: AssemblyInformationalVersion("7.2.0")]
2020

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

itext.tests/itext.barcodes.tests/itext.barcodes.tests.csproj

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<AssemblyName>itext.barcodes.tests</AssemblyName>
11-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<TargetFrameworkProfile />
1414
<ProductVersion>8.0.30703</ProductVersion>
@@ -36,11 +36,69 @@
3636
<NoWarn>CS1591;CS1570;CS1572;CS1573;CS1574;CS1580;CS1584;CS1658</NoWarn>
3737
</PropertyGroup>
3838
<ItemGroup>
39+
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
40+
<HintPath>$(SolutionDir)\packages\Microsoft.Bcl.AsyncInterfaces.5.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
41+
<Private>True</Private>
42+
</Reference>
43+
<Reference Include="Microsoft.Extensions.DependencyInjection, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
44+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.DependencyInjection.5.0.0\lib\net461\Microsoft.Extensions.DependencyInjection.dll</HintPath>
45+
<Private>True</Private>
46+
</Reference>
47+
<Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
48+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.DependencyInjection.Abstractions.5.0.0\lib\net461\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath>
49+
<Private>True</Private>
50+
</Reference>
51+
<Reference Include="Microsoft.Extensions.Logging, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
52+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.Logging.5.0.0\lib\net461\Microsoft.Extensions.Logging.dll</HintPath>
53+
<Private>True</Private>
54+
</Reference>
55+
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
56+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.Logging.Abstractions.5.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
57+
<Private>True</Private>
58+
</Reference>
59+
<Reference Include="Microsoft.Extensions.Options, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
60+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.Options.5.0.0\lib\net461\Microsoft.Extensions.Options.dll</HintPath>
61+
<Private>True</Private>
62+
</Reference>
63+
<Reference Include="Microsoft.Extensions.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60">
64+
<HintPath>$(SolutionDir)\packages\Microsoft.Extensions.Primitives.5.0.0\lib\net461\Microsoft.Extensions.Primitives.dll</HintPath>
65+
<Private>True</Private>
66+
</Reference>
67+
<Reference Include="mscorlib" />
3968
<Reference Include="nunit.framework, Version=3.7.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
4069
<HintPath>$(SolutionDir)\packages\NUnit.3.7.1\lib\net45\nunit.framework.dll</HintPath>
4170
</Reference>
4271
<Reference Include="System" />
72+
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
73+
<HintPath>$(SolutionDir)\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
74+
<Private>True</Private>
75+
</Reference>
4376
<Reference Include="System.Core" />
77+
<Reference Include="System.Diagnostics.DiagnosticSource, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
78+
<HintPath>$(SolutionDir)\packages\System.Diagnostics.DiagnosticSource.5.0.0\lib\net46\System.Diagnostics.DiagnosticSource.dll</HintPath>
79+
<Private>True</Private>
80+
</Reference>
81+
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
82+
<HintPath>$(SolutionDir)\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
83+
<Private>True</Private>
84+
</Reference>
85+
<Reference Include="System.Numerics" />
86+
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
87+
<HintPath>$(SolutionDir)\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
88+
<Private>True</Private>
89+
</Reference>
90+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
91+
<HintPath>$(SolutionDir)\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
92+
<Private>True</Private>
93+
</Reference>
94+
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
95+
<HintPath>$(SolutionDir)\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
96+
<Private>True</Private>
97+
</Reference>
98+
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51">
99+
<HintPath>$(SolutionDir)\packages\System.ValueTuple.4.5.0\lib\net461\System.ValueTuple.dll</HintPath>
100+
<Private>True</Private>
101+
</Reference>
44102
</ItemGroup>
45103
<ItemGroup>
46104
<Compile Include="itext\barcodes\**\*.cs" />
@@ -55,6 +113,10 @@
55113
<Project>{CEE5E7E1-1BF0-4BE1-9941-903262CE2F83}</Project>
56114
<Name>itext.io</Name>
57115
</ProjectReference>
116+
<ProjectReference Include="..\..\itext\itext.commons\itext.commons.csproj">
117+
<Project>{339569D2-3BA2-41CC-972C-70B05E4C4FCD}</Project>
118+
<Name>itext.commons</Name>
119+
</ProjectReference>
58120
<ProjectReference Include="..\..\itext\itext.kernel\itext.kernel.csproj">
59121
<Project>{4E7819E8-7555-4E2E-9A01-D8718A2CFDDA}</Project>
60122
<Name>itext.kernel</Name>

itext.tests/itext.barcodes.tests/itext.barcodes.tests.netstandard.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<WarningLevel>4</WarningLevel>
66
</PropertyGroup>
77
<PropertyGroup>
8-
<TargetFrameworks>netcoreapp2.0;net45</TargetFrameworks>
8+
<TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
99
</PropertyGroup>
10-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
10+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461' ">
1111
<OutputType>library</OutputType>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' ">
@@ -28,7 +28,7 @@
2828
<PropertyGroup>
2929
<NoWarn>1701;1702;1591;1570;1572;1573;1574;1580;1584;1658</NoWarn>
3030
</PropertyGroup>
31-
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
31+
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
3232
<Reference Include="System" />
3333
<Reference Include="System.Core" />
3434
</ItemGroup>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ public virtual void Barcode02Test() {
9696

9797
[NUnit.Framework.Test]
9898
public virtual void BarcodeRawValueGenerationTest01() {
99-
NUnit.Framework.Assert.AreEqual(iText.IO.Util.JavaUtil.GetStringForBytes(new byte[] { 103, 17, 18, 19, 20,
100-
21, 17, 18, 19, 20, 21 }), Barcode128.GetRawText("1234512345", false, Barcode128.Barcode128CodeSet.A));
99+
NUnit.Framework.Assert.AreEqual(iText.Commons.Utils.JavaUtil.GetStringForBytes(new byte[] { 103, 17, 18, 19
100+
, 20, 21, 17, 18, 19, 20, 21 }), Barcode128.GetRawText("1234512345", false, Barcode128.Barcode128CodeSet
101+
.A));
101102
}
102103
}
103104
}

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeCodabarTest.cs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ source product.
4141
4242
*/
4343
using System;
44+
using System.IO;
45+
using iText.Barcodes.Exceptions;
4446
using iText.Kernel.Pdf;
4547
using iText.Kernel.Pdf.Canvas;
4648
using iText.Kernel.Utils;
@@ -74,5 +76,49 @@ public virtual void Barcode01Test() {
7476
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(destinationFolder + filename, sourceFolder
7577
+ "cmp_" + filename, destinationFolder, "diff_"));
7678
}
79+
80+
[NUnit.Framework.Test]
81+
public virtual void BarcodeHasNoAbcdAsStartCharacterTest() {
82+
NUnit.Framework.Assert.That(() => {
83+
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
84+
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
85+
BarcodeCodabar.GetBarsCodabar("qbcd");
86+
}
87+
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
88+
;
89+
}
90+
91+
[NUnit.Framework.Test]
92+
public virtual void BarcodeHasNoAbcdAsStopCharacterTest() {
93+
NUnit.Framework.Assert.That(() => {
94+
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
95+
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
96+
BarcodeCodabar.GetBarsCodabar("abcf");
97+
}
98+
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
99+
;
100+
}
101+
102+
[NUnit.Framework.Test]
103+
public virtual void BarcodeHasNoAbcdAsStartAndStopCharacterTest() {
104+
NUnit.Framework.Assert.That(() => {
105+
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
106+
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
107+
BarcodeCodabar.GetBarsCodabar("qbcq");
108+
}
109+
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_ONE_ABCD_AS_START_STOP_CHARACTER))
110+
;
111+
}
112+
113+
[NUnit.Framework.Test]
114+
public virtual void BarcodeHasNoStartAndStopCharacterTest() {
115+
NUnit.Framework.Assert.That(() => {
116+
PdfDocument pdfDocument = new PdfDocument(new PdfWriter(new MemoryStream()));
117+
BarcodeCodabar codabar = new BarcodeCodabar(pdfDocument);
118+
BarcodeCodabar.GetBarsCodabar("");
119+
}
120+
, NUnit.Framework.Throws.InstanceOf<ArgumentException>().With.Message.EqualTo(BarcodeExceptionMessageConstant.CODABAR_MUST_HAVE_AT_LEAST_START_AND_STOP_CHARACTER))
121+
;
122+
}
77123
}
78124
}

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeEANUnitTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ source product.
4242
*/
4343
using System;
4444
using System.IO;
45-
using iText.Kernel;
45+
using iText.Kernel.Exceptions;
4646
using iText.Kernel.Geom;
4747
using iText.Kernel.Pdf;
4848
using iText.Test;

0 commit comments

Comments
 (0)