diff --git a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUACanvasTest.cs b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUACanvasTest.cs index c15a3e01e5..e8344cbee0 100644 --- a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUACanvasTest.cs +++ b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUACanvasTest.cs @@ -39,6 +39,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Pdfa; namespace iText.Pdfua { + // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) [NUnit.Framework.Category("UnitTest")] public class PdfUACanvasTest : ExtendedITextTest { private static readonly String FONT = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext @@ -84,7 +85,7 @@ public virtual void CheckPoint_01_005_TextContentIsCorrectlyTaggedAsContent() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_TextContentIsCorrectlyTaggedAsContent.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -121,7 +122,7 @@ public virtual void CheckPoint_01_005_TextArtifactIsNotInTagTree() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_TextArtifactIsNotInTagTree.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -177,7 +178,7 @@ public virtual void CheckPoint_01_005_TextGlyphLineContentIsArtifact() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_TextGlyphLineContentIsArtifact.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -197,7 +198,7 @@ public virtual void CheckPoint_01_005_TextGlyphLineContentIsContentCorrect() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_TextGlyphLineContentIsContentCorrect.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -216,7 +217,7 @@ public virtual void CheckPoint_01_005_allowPureBmcInArtifact() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_allowPureBmcInArtifact.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -235,7 +236,7 @@ public virtual void CheckPoint_01_005_allowNestedPureBmcInArtifact() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_allowNestedPureBmcInArtifact.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -280,7 +281,7 @@ public virtual void CheckPoint_01_005_LineContentThatIsMarkedAsArtifact() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_LineContentThatIsMarkedAsArtifact.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -309,7 +310,7 @@ public virtual void CheckPoint_01_005_RectangleMarkedArtifact() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_RectangleMarkedArtifact.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -341,7 +342,7 @@ public virtual void CheckPoint_01_005_RectangleMarkedContent() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_RectangleMarkedContent.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -357,7 +358,7 @@ public virtual void CheckPoint_01_004_bezierMarkedAsContent() { ).SetStrokeColor(ColorConstants.RED).Arc(400, 400, 500, 500, 30, 50).Stroke().CloseTag().RestoreState( ); pdfDoc.Close(); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_004_bezierCurveShouldBeTagged.pdf" , DESTINATION_FOLDER, "diff_")); @@ -373,7 +374,7 @@ public virtual void CheckPoint_01_004_bezierMarkedAsArtifact() { (5).SetStrokeColor(ColorConstants.RED).Arc(400, 400, 500, 500, 30, 50).Stroke().CloseTag().RestoreState (); pdfDoc.Close(); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_004_bezierMarkedAsArtifact.pdf" , DESTINATION_FOLDER, "diff_")); @@ -405,7 +406,7 @@ public virtual void CheckPoint_01_005_RandomOperationsWithoutActuallyAddingConte pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_01_005_RandomOperationsWithoutActuallyAddingContent.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -448,7 +449,7 @@ public virtual void CheckPoint_validRoleAddedInsideMarkedContent() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_validRoleAddedInsideMarkedContent.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -469,7 +470,7 @@ public virtual void CheckPoint_validRoleAddedInsideMarkedContentMultiple() { , 12).MoveText(200, 200).ShowText("Hello World!").EndText().EndMarkedContent().BeginMarkedContent(PdfName .H1).BeginText().ShowText("Hello but nested").EndText().EndMarkedContent().RestoreState().CloseTag(); pdfDoc.Close(); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_validRoleAddedInsideMarkedContentMultiple.pdf" , DESTINATION_FOLDER, "diff_")); @@ -494,7 +495,7 @@ public virtual void CheckPoint_validRoleAddedInsideMarkedContentMCR_IN_MCR() { )).BeginMarkedContent(PdfName.H1).BeginText().ShowText("Hello but nested").EndText().EndMarkedContent( ).CloseTag().RestoreState().CloseTag(); pdfDoc.Close(); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_validRoleAddedInsideMarkedContentMCR_IN_MCR.pdf" , DESTINATION_FOLDER, "diff_")); diff --git a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUALayoutTest.cs b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUALayoutTest.cs index f496d10de6..e1a85f0845 100644 --- a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUALayoutTest.cs +++ b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUALayoutTest.cs @@ -35,6 +35,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Pdfa; namespace iText.Pdfua { + // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) [NUnit.Framework.Category("IntegrationTest")] public class PdfUALayoutTest : ExtendedITextTest { private static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory @@ -64,7 +65,7 @@ public virtual void SimpleParagraphTest() { doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, DESTINATION_FOLDER, "diff_" )); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -82,7 +83,7 @@ public virtual void SimpleBorderTest() { } NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, DESTINATION_FOLDER, "diff" )); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -101,7 +102,7 @@ public virtual void SimpleTableTest() { doc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, DESTINATION_FOLDER, "diff_" )); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) } diff --git a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUARoleMappingTest.cs b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUARoleMappingTest.cs index d037fe3ccd..1a411d5e14 100644 --- a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUARoleMappingTest.cs +++ b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUARoleMappingTest.cs @@ -36,6 +36,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Pdfa; namespace iText.Pdfua { + // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) [NUnit.Framework.Category("IntegrationTest")] public class PdfUARoleMappingTest : ExtendedITextTest { private static readonly String FONT = iText.Test.TestUtil.GetParentProjectDirectory(NUnit.Framework.TestContext @@ -145,7 +146,7 @@ public virtual void StandardMappingViaTagTreePointer_02_001_Test() { pdfDoc.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, DESTINATION_FOLDER, "diff_" )); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) diff --git a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUATest.cs b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUATest.cs index 12b7e2651c..056a436859 100644 --- a/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUATest.cs +++ b/itext.tests/itext.pdfua.tests/itext/pdfua/PdfUATest.cs @@ -35,6 +35,7 @@ You should have received a copy of the GNU Affero General Public License using iText.Test.Pdfa; namespace iText.Pdfua { + // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) [NUnit.Framework.Category("IntegrationTest")] public class PdfUATest : ExtendedITextTest { private static readonly String DESTINATION_FOLDER = NUnit.Framework.TestContext.CurrentContext.TestDirectory @@ -95,7 +96,7 @@ public virtual void EmptyPageDocument() { } NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_emptyPageDocument.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) @@ -148,7 +149,7 @@ public virtual void ManualPdfUaCreation() { document.Close(); NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, SOURCE_FOLDER + "cmp_manualPdfUaCreation.pdf" , DESTINATION_FOLDER, "diff_")); - NUnit.Framework.Assert.IsNull(new UAVeraPdfValidator().Validate(outPdf)); + NUnit.Framework.Assert.IsNull(new VeraPdfValidator().Validate(outPdf)); } // Android-Conversion-Skip-Line (TODO DEVSIX-7377 introduce pdf/ua validation on Android) } diff --git a/itext/itext.pdftest/itext/test/pdfa/UAVeraPdfValidator.cs b/itext/itext.pdftest/itext/test/pdfa/UAVeraPdfValidator.cs deleted file mode 100644 index 9f3a27890e..0000000000 --- a/itext/itext.pdftest/itext/test/pdfa/UAVeraPdfValidator.cs +++ /dev/null @@ -1,28 +0,0 @@ -/* - 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 . - */ - -namespace iText.Test.Pdfa { - public class UAVeraPdfValidator : VeraPdfValidator { - - } -} \ No newline at end of file diff --git a/port-hash b/port-hash index f35038423f..90de19c49b 100644 --- a/port-hash +++ b/port-hash @@ -1 +1 @@ -4a450b052fd7754561a7ced40a191e407ac5585b +3301bc3cd557931586ed42359df42fab31ad4419