diff --git a/itext.tests/itext.io.tests/itext/io/image/Jpeg2000Test.cs b/itext.tests/itext.io.tests/itext/io/image/Jpeg2000Test.cs
index f58aeed8a..77b1a229b 100644
--- a/itext.tests/itext.io.tests/itext/io/image/Jpeg2000Test.cs
+++ b/itext.tests/itext.io.tests/itext/io/image/Jpeg2000Test.cs
@@ -35,7 +35,7 @@ public class Jpeg2000Test : ExtendedITextTest {
public virtual void OpenJpeg2000_1() {
try {
// Test a more specific entry point
- ImageDataFactory.CreateJpeg2000(UrlUtil.ToURL(sourceFolder + "WP_20140410_001.JP2"));
+ ImageDataFactory.CreateJpeg2000(UrlUtil.ToURL(sourceFolder + "bee.jp2"));
}
catch (iText.IO.Exceptions.IOException e) {
NUnit.Framework.Assert.AreEqual(IoExceptionMessageConstant.UNSUPPORTED_BOX_SIZE_EQ_EQ_0, e.Message);
@@ -44,10 +44,10 @@ public virtual void OpenJpeg2000_1() {
[NUnit.Framework.Test]
public virtual void OpenJpeg2000_2() {
- ImageData img = ImageDataFactory.Create(sourceFolder + "WP_20140410_001.JPC");
- NUnit.Framework.Assert.AreEqual(2592, img.GetWidth(), 0);
- NUnit.Framework.Assert.AreEqual(1456, img.GetHeight(), 0);
- NUnit.Framework.Assert.AreEqual(8, img.GetBpc());
+ ImageData img = ImageDataFactory.Create(sourceFolder + "bee.jpc");
+ NUnit.Framework.Assert.AreEqual(640, img.GetWidth(), 0);
+ NUnit.Framework.Assert.AreEqual(800, img.GetHeight(), 0);
+ NUnit.Framework.Assert.AreEqual(7, img.GetBpc());
}
}
}
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/CC0-1.0.txt b/itext.tests/itext.io.tests/resources/itext/io/image/CC0-1.0.txt
new file mode 100644
index 000000000..af469a003
--- /dev/null
+++ b/itext.tests/itext.io.tests/resources/itext/io/image/CC0-1.0.txt
@@ -0,0 +1,29 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
+i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
+ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
+iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
+v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
+vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
+vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
+2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
+3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
+4. Limitations and Disclaimers.
+a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
+b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
+c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
+d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
\ No newline at end of file
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/NOTICE.txt b/itext.tests/itext.io.tests/resources/itext/io/image/NOTICE.txt
new file mode 100644
index 000000000..7eab8c4ad
--- /dev/null
+++ b/itext.tests/itext.io.tests/resources/itext/io/image/NOTICE.txt
@@ -0,0 +1,3 @@
+This software uses the following test resources under the following licenses:
+| bee.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
+| bee.jpc | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JP2 b/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JP2
deleted file mode 100644
index c00449a4d..000000000
Binary files a/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JP2 and /dev/null differ
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JPC b/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JPC
deleted file mode 100644
index 21cf15d83..000000000
Binary files a/itext.tests/itext.io.tests/resources/itext/io/image/WP_20140410_001.JPC and /dev/null differ
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/bee.jp2 b/itext.tests/itext.io.tests/resources/itext/io/image/bee.jp2
new file mode 100644
index 000000000..09d7b1ea9
Binary files /dev/null and b/itext.tests/itext.io.tests/resources/itext/io/image/bee.jp2 differ
diff --git a/itext.tests/itext.io.tests/resources/itext/io/image/bee.jpc b/itext.tests/itext.io.tests/resources/itext/io/image/bee.jpc
new file mode 100644
index 000000000..09d7b1ea9
Binary files /dev/null and b/itext.tests/itext.io.tests/resources/itext/io/image/bee.jpc differ
diff --git a/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs b/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs
index 4179e756f..9fdca01ec 100644
--- a/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs
+++ b/itext.tests/itext.kernel.tests/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest.cs
@@ -65,8 +65,8 @@ public virtual void InlineImagesTest01() {
460, 100, 14.16f), true);
canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(sourceFolder + "0047478.jpg"), new Rectangle(36
, 300, 100, 141.41f), true);
- canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(sourceFolder + "map.jp2"), new Rectangle(36, 200
- , 100, 76.34f), true);
+ canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(sourceFolder + "bee.jp2"), new Rectangle(36, 200
+ , 60, 76.34f), true);
canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(sourceFolder + "amb.jb2"), new Rectangle(36, 30
, 100, 150), true);
document.Close();
@@ -109,10 +109,10 @@ public virtual void InlineImagesTest02() {
StreamUtil.TransferBytes(stream, baos);
canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(baos.ToArray()), new Rectangle(36, 300, 100, 141.41f
), true);
- stream = UrlUtil.OpenStream(UrlUtil.ToURL(sourceFolder + "map.jp2"));
+ stream = UrlUtil.OpenStream(UrlUtil.ToURL(sourceFolder + "bee.jp2"));
baos = new ByteArrayOutputStream();
StreamUtil.TransferBytes(stream, baos);
- canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(baos.ToArray()), new Rectangle(36, 200, 100, 76.34f
+ canvas.AddImageFittedIntoRectangle(ImageDataFactory.Create(baos.ToArray()), new Rectangle(36, 200, 60, 76.34f
), true);
stream = UrlUtil.OpenStream(UrlUtil.ToURL(sourceFolder + "amb.jb2"));
baos = new ByteArrayOutputStream();
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/CC0-1.0.txt b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/CC0-1.0.txt
new file mode 100644
index 000000000..af469a003
--- /dev/null
+++ b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/CC0-1.0.txt
@@ -0,0 +1,29 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
+i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
+ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
+iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
+v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
+vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
+vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
+2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
+3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
+4. Limitations and Disclaimers.
+a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
+b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
+c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
+d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
\ No newline at end of file
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/NOTICE.txt b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/NOTICE.txt
new file mode 100644
index 000000000..eeafffc17
--- /dev/null
+++ b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/NOTICE.txt
@@ -0,0 +1,2 @@
+This software uses the following test resources under the following licenses:
+| bee.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/bee.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/bee.jp2
new file mode 100644
index 000000000..09d7b1ea9
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/bee.jp2 differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf
index 343899eb4..81f42a914 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages01.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf
index 45cdf37bc..896fe09ec 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/cmp_inlineImages02.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/map.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/map.jp2
deleted file mode 100644
index 3fd75ae7d..000000000
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/canvas/PdfCanvasInlineImagesTest/map.jp2 and /dev/null differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CC0-1.0.txt b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CC0-1.0.txt
new file mode 100644
index 000000000..af469a003
--- /dev/null
+++ b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CC0-1.0.txt
@@ -0,0 +1,29 @@
+Creative Commons Legal Code
+
+CC0 1.0 Universal
+
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
+
+Statement of Purpose
+
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
+
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
+i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
+ii. moral rights retained by the original author(s) and/or performer(s);
+iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
+iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
+v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
+vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
+vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
+2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
+3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
+4. Limitations and Disclaimers.
+a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
+b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
+c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
+d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
\ No newline at end of file
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.jp2
index 92b7af9a3..59a1e57d0 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.jp2 and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.jp2 differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.pdf
index 554532a5c..a7c0737bc 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/CMYKJpxF2.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.jp2
index e41b5c714..59a1e57d0 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.jp2 and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.jp2 differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.pdf
index 0ce26a821..494069ae5 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/JPXDecode.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/NOTICE.txt b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/NOTICE.txt
index fa78429cc..46bf63168 100644
--- a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/NOTICE.txt
+++ b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/NOTICE.txt
@@ -1,2 +1,5 @@
-JPXDecode.jp2 is originally developed by Algo Vision Technology GmbH, Aware Inc., Kodak Inc., and Ricoh Innovations Inc.
-See copyright/copyright.html
\ No newline at end of file
+This software uses the following test resources under the following licenses:
+| JPXDecode.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
+| RGBJpxF0.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
+| CMYKJpxF2.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
+| RGBJpxF2.jp2 | CC0-1.0 | CC0-1.0.txt | (2023/10/10) https://unsplash.com/photos/tuQGZ6U7P2A
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.jp2
index 92b7af9a3..59a1e57d0 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.jp2 and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.jp2 differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.pdf
index 51db8b2a6..68f985b61 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF0.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.jp2 b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.jp2
index 92b7af9a3..59a1e57d0 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.jp2 and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.jp2 differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.pdf
index fb9bc7e42..1eaafab23 100644
Binary files a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.pdf and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/xobject/GetImageBytesTest/RGBJpxF2.pdf differ
diff --git a/itext.tests/itext.pdfa.tests/resources/itext/pdfa/jpeg2000/NOTICE.txt b/itext.tests/itext.pdfa.tests/resources/itext/pdfa/jpeg2000/NOTICE.txt
new file mode 100644
index 000000000..e474c3e4c
--- /dev/null
+++ b/itext.tests/itext.pdfa.tests/resources/itext/pdfa/jpeg2000/NOTICE.txt
@@ -0,0 +1,14 @@
+This software uses the following test resources under the following licenses:
+| file1.jp2 | (2023/07/25) cpyrght.htm |
+| file2.jp2 | (2023/07/25) cpyrght.htm |
+| file3.jp2 | (2023/07/25) cpyrght.htm |
+| file4.jp2 | (2023/07/25) cpyrght.htm |
+| file5.jp2 | (2023/07/25) cpyrght.htm |
+| file6.jp2 | (2023/07/25) cpyrght.htm |
+| file7.jp2 | (2023/07/25) cpyrght.htm |
+| file8.jp2 | (2023/07/25) cpyrght.htm |
+| file9.jp2 | (2023/07/25) cpyrght.htm |
+| p0_01.j2k | (2023/07/25) cpyrght.htm |
+| p0_02.j2k | (2023/07/25) cpyrght.htm |
+| p1_01.j2k | (2023/07/25) cpyrght.htm |
+| p1_02.j2k | (2023/07/25) cpyrght.htm |
\ No newline at end of file
diff --git a/itext.tests/itext.sign.tests/itext/signatures/sign/PdfPadesAdvancedTest.cs b/itext.tests/itext.sign.tests/itext/signatures/sign/PdfPadesAdvancedTest.cs
new file mode 100644
index 000000000..e26e500af
--- /dev/null
+++ b/itext.tests/itext.sign.tests/itext/signatures/sign/PdfPadesAdvancedTest.cs
@@ -0,0 +1,168 @@
+/*
+This file is part of the iText (R) project.
+Copyright (c) 1998-2023 Apryse Group NV
+Authors: Apryse Software.
+
+This program is offered under a commercial and under the AGPL license.
+For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
+
+AGPL licensing:
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+*/
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using iText.Bouncycastleconnector;
+using iText.Commons.Bouncycastle;
+using iText.Commons.Bouncycastle.Cert;
+using iText.Commons.Bouncycastle.Crypto;
+using iText.Commons.Utils;
+using iText.Kernel.Geom;
+using iText.Kernel.Pdf;
+using iText.Signatures;
+using iText.Signatures.Testutils;
+using iText.Signatures.Testutils.Builder;
+using iText.Signatures.Testutils.Client;
+using iText.Test;
+using iText.Test.Attributes;
+
+namespace iText.Signatures.Sign {
+ [NUnit.Framework.Category("BouncyCastleIntegrationTest")]
+ [NUnit.Framework.TestFixtureSource("CreateParametersTestFixtureData")]
+ public class PdfPadesAdvancedTest : ExtendedITextTest {
+ private static readonly IBouncyCastleFactory FACTORY = BouncyCastleFactoryCreator.GetFactory();
+
+ private static readonly bool FIPS_MODE = "BCFIPS".Equals(FACTORY.GetProviderName());
+
+ private static readonly String CERTS_SRC = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
+ .CurrentContext.TestDirectory) + "/resources/itext/signatures/sign/PdfPadesAdvancedTest/certs/";
+
+ private static readonly String SOURCE_FOLDER = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext
+ .CurrentContext.TestDirectory) + "/resources/itext/signatures/sign/PdfPadesAdvancedTest/";
+
+ private static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory
+ + "/test/itext/signatures/sign/PdfPadesAdvancedTest/";
+
+ private static readonly char[] PASSWORD = "testpassphrase".ToCharArray();
+
+ private readonly String signingCertName;
+
+ private readonly String rootCertName;
+
+ private readonly bool? isOcspRevoked;
+
+ private readonly String cmpFilePostfix;
+
+ [NUnit.Framework.OneTimeSetUp]
+ public static void Before() {
+ CreateOrClearDestinationFolder(DESTINATION_FOLDER);
+ }
+
+ public PdfPadesAdvancedTest(Object signingCertName, Object rootCertName, Object isOcspRevoked, Object cmpFilePostfix
+ ) {
+ this.signingCertName = (String)signingCertName;
+ this.rootCertName = (String)rootCertName;
+ this.isOcspRevoked = (bool?)isOcspRevoked;
+ this.cmpFilePostfix = (String)cmpFilePostfix;
+ }
+
+ public PdfPadesAdvancedTest(Object[] array)
+ : this(array[0], array[1], array[2], array[3]) {
+ }
+
+ public static IEnumerable