Skip to content

Commit f6098a4

Browse files
committed
[RELEASE] iText 7 7.2.5
2 parents 03020c7 + e86cbb2 commit f6098a4

File tree

2,401 files changed

+5367
-3521
lines changed

Some content is hidden

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

2,401 files changed

+5367
-3521
lines changed

doxyfile

Lines changed: 1 addition & 1 deletion
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.2.4 API"
35+
PROJECT_NAME = "iText 7 7.2.5 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.tests/itext.barcodes.tests/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
[assembly: AssemblyConfiguration("")]
77
[assembly: AssemblyCompany("iText Group NV")]
88
[assembly: AssemblyProduct("iText")]
9-
[assembly: AssemblyCopyright("Copyright (c) 1998-2022 iText Group NV")]
9+
[assembly: AssemblyCopyright("Copyright (c) 1998-2023 iText Group NV")]
1010
[assembly: AssemblyTrademark("")]
1111
[assembly: AssemblyCulture("")]
1212

1313
[assembly: ComVisible(false)]
1414

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

17-
[assembly: AssemblyVersion("7.2.4.0")]
18-
[assembly: AssemblyFileVersion("7.2.4.0")]
19-
[assembly: AssemblyInformationalVersion("7.2.4")]
17+
[assembly: AssemblyVersion("7.2.5.0")]
18+
[assembly: AssemblyFileVersion("7.2.5.0")]
19+
[assembly: AssemblyInformationalVersion("7.2.5")]
2020

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ source product.
4848
using iText.Test;
4949

5050
namespace iText.Barcodes {
51-
[NUnit.Framework.Category("Integration test")]
51+
[NUnit.Framework.Category("IntegrationTest")]
5252
public class Barcode128Test : ExtendedITextTest {
5353
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5454
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/Barcode39Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -49,7 +49,7 @@ source product.
4949
using iText.Test;
5050

5151
namespace iText.Barcodes {
52-
[NUnit.Framework.Category("Integration test")]
52+
[NUnit.Framework.Category("IntegrationTest")]
5353
public class Barcode39Test : ExtendedITextTest {
5454
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5555
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -49,7 +49,7 @@ source product.
4949
using iText.Test;
5050

5151
namespace iText.Barcodes {
52-
[NUnit.Framework.Category("Integration test")]
52+
[NUnit.Framework.Category("IntegrationTest")]
5353
public class BarcodeCodabarTest : ExtendedITextTest {
5454
private static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5555
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeDataMatrixTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ source product.
4848
using iText.Test;
4949

5050
namespace iText.Barcodes {
51-
[NUnit.Framework.Category("Integration test")]
51+
[NUnit.Framework.Category("IntegrationTest")]
5252
public class BarcodeDataMatrixTest : ExtendedITextTest {
5353
public static readonly String destinationFolder = NUnit.Framework.TestContext.CurrentContext.TestDirectory
5454
+ "/test/itext/barcodes/BarcodeDataMatrix/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeEANTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ source product.
4848
using iText.Test;
4949

5050
namespace iText.Barcodes {
51-
[NUnit.Framework.Category("Integration test")]
51+
[NUnit.Framework.Category("IntegrationTest")]
5252
public class BarcodeEANTest : ExtendedITextTest {
5353
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5454
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ source product.
4848
using iText.Test;
4949

5050
namespace iText.Barcodes {
51-
[NUnit.Framework.Category("Unit test")]
51+
[NUnit.Framework.Category("UnitTest")]
5252
public class BarcodeEANUnitTest : ExtendedITextTest {
5353
public const float EPS = 0.0001f;
5454

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeInter25Test.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -48,7 +48,7 @@ source product.
4848
using iText.Test;
4949

5050
namespace iText.Barcodes {
51-
[NUnit.Framework.Category("Integration test")]
51+
[NUnit.Framework.Category("IntegrationTest")]
5252
public class BarcodeInter25Test : ExtendedITextTest {
5353
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5454
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeMSITest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -49,7 +49,7 @@ source product.
4949
using iText.Test;
5050

5151
namespace iText.Barcodes {
52-
[NUnit.Framework.Category("Integration test")]
52+
[NUnit.Framework.Category("IntegrationTest")]
5353
public class BarcodeMSITest : ExtendedITextTest {
5454
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5555
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeMultiThreadingTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodePDF417Test.cs

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -43,6 +43,8 @@ source product.
4343
using System;
4444
using System.IO;
4545
using iText.Barcodes.Exceptions;
46+
using iText.IO.Codec;
47+
using iText.IO.Image;
4648
using iText.Kernel.Colors;
4749
using iText.Kernel.Exceptions;
4850
using iText.Kernel.Pdf;
@@ -52,7 +54,7 @@ source product.
5254
using iText.Test;
5355

5456
namespace iText.Barcodes {
55-
[NUnit.Framework.Category("Integration test")]
57+
[NUnit.Framework.Category("IntegrationTest")]
5658
public class BarcodePDF417Test : ExtendedITextTest {
5759
private static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5860
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";
@@ -357,6 +359,27 @@ public virtual void LenCodewordsMoreThanMaxDataCodewordsTest() {
357359
NUnit.Framework.Assert.AreEqual(BarcodeExceptionMessageConstant.INVALID_CODEWORD_SIZE, exception.Message);
358360
}
359361

362+
[NUnit.Framework.Test]
363+
public virtual void CcittImageFromBarcodeTest() {
364+
String filename = "ccittImage01.pdf";
365+
PdfWriter writer = new PdfWriter(DESTINATION_FOLDER + filename);
366+
PdfDocument document = new PdfDocument(writer);
367+
PdfPage page = document.AddNewPage();
368+
PdfCanvas canvas = new PdfCanvas(page);
369+
String text = "Call me Ishmael. Some years ago--never mind how long " + "precisely --having little or no money in my purse, and nothing "
370+
+ "particular to interest me on shore, I thought I would sail about " + "a little and see the watery part of the world.";
371+
BarcodePDF417 barcode = new BarcodePDF417();
372+
barcode.SetCode(text);
373+
barcode.PaintCode();
374+
byte[] g4 = CCITTG4Encoder.Compress(barcode.GetOutBits(), barcode.GetBitColumns(), barcode.GetCodeRows());
375+
ImageData img = ImageDataFactory.Create(barcode.GetBitColumns(), barcode.GetCodeRows(), false, RawImageData
376+
.CCITTG4, 0, g4, null);
377+
canvas.AddImageAt(img, 100, 100, false);
378+
document.Close();
379+
NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(DESTINATION_FOLDER + filename, SOURCE_FOLDER
380+
+ "cmp_" + filename, DESTINATION_FOLDER, "diff_"));
381+
}
382+
360383
private PdfFormXObject CreateMacroBarcodePart(PdfDocument document, String text, float mh, float mw, int segmentId
361384
) {
362385
BarcodePDF417 pf = new BarcodePDF417();

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodePDF417UnitTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -44,7 +44,7 @@ source product.
4444
using iText.Test;
4545

4646
namespace iText.Barcodes {
47-
[NUnit.Framework.Category("Unit test")]
47+
[NUnit.Framework.Category("UnitTest")]
4848
public class BarcodePDF417UnitTest : ExtendedITextTest {
4949
[NUnit.Framework.Test]
5050
public virtual void Barcode417CodeRowsTest() {

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodePostnetTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -47,7 +47,7 @@ source product.
4747
using iText.Test;
4848

4949
namespace iText.Barcodes {
50-
[NUnit.Framework.Category("Integration test")]
50+
[NUnit.Framework.Category("IntegrationTest")]
5151
public class BarcodePostnetTest : ExtendedITextTest {
5252
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5353
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeQRCodeTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is free software; you can redistribute it and/or modify
@@ -50,7 +50,7 @@ source product.
5050
using iText.Test;
5151

5252
namespace iText.Barcodes {
53-
[NUnit.Framework.Category("Integration test")]
53+
[NUnit.Framework.Category("IntegrationTest")]
5454
public class BarcodeQRCodeTest : ExtendedITextTest {
5555
public static readonly String sourceFolder = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
5656
.CurrentContext.TestDirectory) + "/resources/itext/barcodes/";

itext.tests/itext.barcodes.tests/itext/barcodes/BarcodeUnitTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -26,7 +26,7 @@ You should have received a copy of the GNU Affero General Public License
2626
using iText.Test;
2727

2828
namespace iText.Barcodes {
29-
[NUnit.Framework.Category("Unit test")]
29+
[NUnit.Framework.Category("UnitTest")]
3030
public class BarcodeUnitTest : ExtendedITextTest {
3131
private const double EPS = 0.0001;
3232

Binary file not shown.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
[assembly: AssemblyConfiguration("")]
88
[assembly: AssemblyCompany("iText Group NV")]
99
[assembly: AssemblyProduct("iText")]
10-
[assembly: AssemblyCopyright("Copyright (c) 1998-2022 iText Group NV")]
10+
[assembly: AssemblyCopyright("Copyright (c) 1998-2023 iText Group NV")]
1111
[assembly: AssemblyTrademark("")]
1212
[assembly: AssemblyCulture("")]
1313

1414
[assembly: ComVisible(false)]
1515

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

18-
[assembly: AssemblyVersion("7.2.4.0")]
19-
[assembly: AssemblyFileVersion("7.2.4.0")]
20-
[assembly: AssemblyInformationalVersion("7.2.4")]
18+
[assembly: AssemblyVersion("7.2.5.0")]
19+
[assembly: AssemblyFileVersion("7.2.5.0")]
20+
[assembly: AssemblyInformationalVersion("7.2.5")]
2121

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

itext.tests/itext.commons.tests/itext/commons/actions/AbstractContextBasedEventHandlerTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -26,7 +26,7 @@ You should have received a copy of the GNU Affero General Public License
2626
using iText.Test;
2727

2828
namespace iText.Commons.Actions {
29-
[NUnit.Framework.Category("Unit test")]
29+
[NUnit.Framework.Category("UnitTest")]
3030
public class AbstractContextBasedEventHandlerTest : ExtendedITextTest {
3131
[NUnit.Framework.Test]
3232
public virtual void CoreEventProcessedByHandlerTest() {

itext.tests/itext.commons.tests/itext/commons/actions/AbstractContextBasedITextEventTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -26,7 +26,7 @@ You should have received a copy of the GNU Affero General Public License
2626
using iText.Test;
2727

2828
namespace iText.Commons.Actions {
29-
[NUnit.Framework.Category("Unit test")]
29+
[NUnit.Framework.Category("UnitTest")]
3030
public class AbstractContextBasedITextEventTest : ExtendedITextTest {
3131
[NUnit.Framework.Test]
3232
public virtual void SetMetaInfoTest() {

itext.tests/itext.commons.tests/itext/commons/actions/AbstractITextConfigurationEventTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -29,7 +29,7 @@ You should have received a copy of the GNU Affero General Public License
2929
using iText.Test;
3030

3131
namespace iText.Commons.Actions {
32-
[NUnit.Framework.Category("Unit test")]
32+
[NUnit.Framework.Category("UnitTest")]
3333
public class AbstractITextConfigurationEventTest : ExtendedITextTest {
3434
[NUnit.Framework.TearDown]
3535
public virtual void After() {

itext.tests/itext.commons.tests/itext/commons/actions/AbstractProductITextEventTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
This file is part of the iText (R) project.
3-
Copyright (c) 1998-2022 iText Group NV
3+
Copyright (c) 1998-2023 iText Group NV
44
Authors: iText Software.
55
66
This program is offered under a commercial and under the AGPL license.
@@ -25,7 +25,7 @@ You should have received a copy of the GNU Affero General Public License
2525
using iText.Test;
2626

2727
namespace iText.Commons.Actions {
28-
[NUnit.Framework.Category("Unit test")]
28+
[NUnit.Framework.Category("UnitTest")]
2929
public class AbstractProductITextEventTest : ExtendedITextTest {
3030
[NUnit.Framework.Test]
3131
public virtual void NullProductDataTest() {

0 commit comments

Comments
 (0)