diff --git a/itext.tests/itext.kernel.tests/itext/kernel/pdf/ParentTreeTest.cs b/itext.tests/itext.kernel.tests/itext/kernel/pdf/ParentTreeTest.cs
index 0560d4bf1e..9b6d650cc5 100644
--- a/itext.tests/itext.kernel.tests/itext/kernel/pdf/ParentTreeTest.cs
+++ b/itext.tests/itext.kernel.tests/itext/kernel/pdf/ParentTreeTest.cs
@@ -309,6 +309,38 @@ public virtual void Test06() {
NUnit.Framework.Assert.IsTrue(CheckParentTree(outFile, cmpFile));
}
+ [NUnit.Framework.Test]
+ public virtual void ObjRefAsStreamTest() {
+ String pdf = sourceFolder + "objRefAsStream.pdf";
+ String outPdf = destinationFolder + "objRefAsStream.pdf";
+ String cmpPdf = sourceFolder + "cmp_objRefAsStream.pdf";
+ PdfDocument taggedPdf = new PdfDocument(new PdfReader(pdf), CompareTool.CreateTestPdfWriter(outPdf));
+ taggedPdf.Close();
+ NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, destinationFolder, "diff"
+ ));
+ }
+
+ [NUnit.Framework.Test]
+ [LogMessage(iText.IO.Logs.IoLogMessageConstant.TAG_STRUCTURE_INIT_FAILED)]
+ public virtual void ObjRefAsInvalidType() {
+ String pdf = sourceFolder + "objRefAsInvalidType.pdf";
+ PdfDocument doc = new PdfDocument(new PdfReader(pdf));
+ NUnit.Framework.Assert.IsNull(doc.GetStructTreeRoot());
+ }
+
+ [NUnit.Framework.Test]
+ public virtual void UnregisterObjRefAsStreamTest() {
+ String pdf = sourceFolder + "objRefAsStream.pdf";
+ String outPdf = destinationFolder + "objRefAsStreamUnregisterMcr.pdf";
+ String cmpPdf = sourceFolder + "cmp_objRefAsStreamUnregisterMcr.pdf";
+ PdfDocument taggedPdf = new PdfDocument(new PdfReader(pdf), CompareTool.CreateTestPdfWriter(outPdf));
+ PdfStructElem elem = (PdfStructElem)taggedPdf.GetStructTreeRoot().GetKids()[0].GetKids()[0];
+ elem.RemoveKid(0);
+ taggedPdf.Close();
+ NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, destinationFolder, "diff"
+ ));
+ }
+
[NUnit.Framework.Test]
[LogMessage(KernelLogMessageConstant.STRUCT_PARENT_INDEX_MISSED_AND_RECREATED, Count = 4)]
public virtual void AllObjRefDontHaveStructParentTest() {
diff --git a/itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfCopyTest.cs b/itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfCopyTest.cs
index 68d6d8b201..c0b7a130a4 100644
--- a/itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfCopyTest.cs
+++ b/itext.tests/itext.kernel.tests/itext/kernel/pdf/PdfCopyTest.cs
@@ -323,6 +323,21 @@ public virtual void CopyPagesLinkAnnotationTest() {
));
}
+ [NUnit.Framework.Test]
+ public virtual void ObjRefAsStreamCopyTest() {
+ String pdf = sourceFolder + "objRefAsStream.pdf";
+ String outPdf = destinationFolder + "objRefAsStreamCopy.pdf";
+ String cmpPdf = sourceFolder + "cmp_objRefAsStreamCopy.pdf";
+ PdfDocument pdfFile = new PdfDocument(new PdfReader(pdf));
+ PdfDocument copiedFile = new PdfDocument(CompareTool.CreateTestPdfWriter(outPdf));
+ copiedFile.SetTagged();
+ pdfFile.CopyPagesTo(1, 1, copiedFile);
+ pdfFile.Close();
+ copiedFile.Close();
+ NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outPdf, cmpPdf, destinationFolder, "diff"
+ ));
+ }
+
[NUnit.Framework.Test]
public virtual void CopyDocWithFullDDictionary() {
String outFileName = destinationFolder + "copyDocWithDDictionary.pdf";
diff --git a/itext.tests/itext.kernel.tests/itext/kernel/pdf/tagging/PdfObjRefUnitTest.cs b/itext.tests/itext.kernel.tests/itext/kernel/pdf/tagging/PdfObjRefUnitTest.cs
new file mode 100644
index 0000000000..5be6138d6b
--- /dev/null
+++ b/itext.tests/itext.kernel.tests/itext/kernel/pdf/tagging/PdfObjRefUnitTest.cs
@@ -0,0 +1,48 @@
+/*
+This file is part of the iText (R) project.
+Copyright (c) 1998-2024 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 iText.Kernel.Pdf;
+using iText.Test;
+
+namespace iText.Kernel.Pdf.Tagging {
+ [NUnit.Framework.Category("UnitTest")]
+ public class PdfObjRefUnitTest : ExtendedITextTest {
+ [NUnit.Framework.Test]
+ public virtual void RefObjAsStreamTest() {
+ PdfDictionary @ref = new PdfStream();
+ @ref.Put(PdfName.Name, new PdfString("reference"));
+ PdfDictionary obj = new PdfDictionary();
+ obj.Put(PdfName.Obj, @ref);
+ PdfObjRef objRef = new PdfObjRef(obj, new PdfStructElem(new PdfDictionary()));
+ NUnit.Framework.Assert.IsTrue(objRef.GetReferencedObject() is PdfStream);
+ NUnit.Framework.Assert.IsTrue(objRef.GetReferencedObject().ContainsKey(PdfName.Name));
+ }
+
+ [NUnit.Framework.Test]
+ public virtual void RefObjAsInvalidTypeTest() {
+ PdfDictionary obj = new PdfDictionary();
+ obj.Put(PdfName.Obj, new PdfString("incorrect type"));
+ PdfObjRef objRef = new PdfObjRef(obj, new PdfStructElem(new PdfDictionary()));
+ NUnit.Framework.Assert.IsNull(objRef.GetReferencedObject());
+ }
+ }
+}
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStream.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStream.pdf
new file mode 100644
index 0000000000..de91b722f8
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStream.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStreamUnregisterMcr.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStreamUnregisterMcr.pdf
new file mode 100644
index 0000000000..5191a0fd36
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/cmp_objRefAsStreamUnregisterMcr.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsInvalidType.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsInvalidType.pdf
new file mode 100644
index 0000000000..3c2e7fa57a
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsInvalidType.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsStream.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsStream.pdf
new file mode 100644
index 0000000000..f452bd86a6
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/ParentTreeTest/objRefAsStream.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/cmp_objRefAsStreamCopy.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/cmp_objRefAsStreamCopy.pdf
new file mode 100644
index 0000000000..3f2f405821
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/cmp_objRefAsStreamCopy.pdf differ
diff --git a/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/objRefAsStream.pdf b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/objRefAsStream.pdf
new file mode 100644
index 0000000000..8de48a7bd4
Binary files /dev/null and b/itext.tests/itext.kernel.tests/resources/itext/kernel/pdf/PdfCopyTest/objRefAsStream.pdf differ
diff --git a/itext.tests/itext.layout.tests/itext/layout/element/GridContainerTest.cs b/itext.tests/itext.layout.tests/itext/layout/element/GridContainerTest.cs
index 352ad502a5..b6d97a18c6 100644
--- a/itext.tests/itext.layout.tests/itext/layout/element/GridContainerTest.cs
+++ b/itext.tests/itext.layout.tests/itext/layout/element/GridContainerTest.cs
@@ -463,6 +463,7 @@ public virtual void ThreeColumnsWithSquareCellAndCellWithExplicitHeightTest() {
templateColumns.Add(GridValue.CreateUnitValue(new UnitValue(UnitValue.POINT, 100.0f)));
using (Document document = new Document(new PdfDocument(new PdfWriter(filename)))) {
GridContainer grid = new GridContainer();
+ grid.SetBackgroundColor(ColorConstants.GREEN);
SolidBorder border = new SolidBorder(ColorConstants.BLUE, 1);
grid.SetProperty(Property.GRID_TEMPLATE_COLUMNS, templateColumns);
Paragraph paragraph1 = new Paragraph("One");
diff --git a/itext.tests/itext.layout.tests/itext/layout/element/gridcontainer/GridContainerLayoutTest.cs b/itext.tests/itext.layout.tests/itext/layout/element/gridcontainer/GridContainerLayoutTest.cs
index faccd949c9..7b8df40040 100644
--- a/itext.tests/itext.layout.tests/itext/layout/element/gridcontainer/GridContainerLayoutTest.cs
+++ b/itext.tests/itext.layout.tests/itext/layout/element/gridcontainer/GridContainerLayoutTest.cs
@@ -31,8 +31,10 @@ You should have received a copy of the GNU Affero General Public License
using iText.Layout;
using iText.Layout.Borders;
using iText.Layout.Element;
+using iText.Layout.Logs;
using iText.Layout.Properties;
using iText.Test;
+using iText.Test.Attributes;
namespace iText.Layout.Element.Gridcontainer {
[NUnit.Framework.Category("IntegrationTest")]
@@ -156,23 +158,38 @@ public virtual void EmptyGridContainerTest() {
, DESTINATION_FOLDER, "diff"));
}
- private GridContainer CreateGridBoxWithSizedDiv() {
- GridContainer gridcontainer0 = new GridContainer();
- gridcontainer0.SetProperty(Property.COLUMN_GAP_BORDER, null);
- gridcontainer0.SetProperty(Property.GRID_TEMPLATE_COLUMNS, JavaUtil.ArraysAsList(new UnitValue(1, 150.0f),
- new UnitValue(1, 150.0f), new UnitValue(1, 150.0f)));
- gridcontainer0.SetProperty(Property.COLUMN_GAP, 12.0f);
- gridcontainer0.SetBackgroundColor(ColorConstants.RED);
- for (int i = 0; i < 4; i++) {
- Div div1 = new Div();
- div1.SetBackgroundColor(ColorConstants.YELLOW);
- div1.SetHeight(20);
- div1.SetWidth(30);
- div1.SetProperty(Property.COLUMN_GAP_BORDER, null);
- div1.SetProperty(Property.COLUMN_GAP, 12.0f);
- gridcontainer0.Add(div1);
- }
- return gridcontainer0;
+ // TODO DEVSIX-8340
+ [NUnit.Framework.Test]
+ public virtual void OverflowGridContainerTest() {
+ String fileName = DESTINATION_FOLDER + "overflowGridContainer.pdf";
+ PdfDocument pdfDocument = new PdfDocument(new PdfWriter(fileName));
+ Document document = new Document(pdfDocument);
+ GridContainer gridcontainer0 = CreateGridBoxWithText();
+ gridcontainer0.SetBackgroundColor(ColorConstants.MAGENTA);
+ gridcontainer0.SetProperty(Property.GRID_TEMPLATE_ROWS, JavaUtil.ArraysAsList(GridValue.CreateUnitValue(new
+ UnitValue(1, 500.0f)), GridValue.CreateUnitValue(new UnitValue(1, 500.0f)), GridValue.CreateUnitValue(
+ new UnitValue(1, 500.0f))));
+ gridcontainer0.Add(new iText.Layout.Element.Image(ImageDataFactory.Create(SOURCE_FOLDER + "rock_texture.jpg"
+ )).SetHeight(150));
+ document.Add(gridcontainer0);
+ document.Close();
+ NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(fileName, SOURCE_FOLDER + "cmp_overflowGridContainer.pdf"
+ , DESTINATION_FOLDER, "diff"));
+ }
+
+ [NUnit.Framework.Test]
+ [LogMessage(LayoutLogMessageConstant.ELEMENT_DOES_NOT_FIT_AREA, LogLevel = LogLevelConstants.WARN)]
+ public virtual void NothingResultTest() {
+ String fileName = DESTINATION_FOLDER + "nothingResult.pdf";
+ PdfDocument pdfDocument = new PdfDocument(new PdfWriter(fileName));
+ Document document = new Document(pdfDocument);
+ GridContainer gridcontainer = new GridContainer();
+ gridcontainer.Add(new iText.Layout.Element.Image(ImageDataFactory.Create(SOURCE_FOLDER + "rock_texture.jpg"
+ )).SetHeight(1200));
+ document.Add(gridcontainer);
+ document.Close();
+ NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(fileName, SOURCE_FOLDER + "cmp_nothingResult.pdf"
+ , DESTINATION_FOLDER, "diff"));
}
private GridContainer CreateGridBoxWithText() {
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicAutoRowsTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicAutoRowsTest.pdf
index ea32d76509..bb5ebfa725 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicAutoRowsTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicAutoRowsTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomColumnAndRowIndexesTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomColumnAndRowIndexesTest.pdf
index f7aceda0ba..ecf52525e4 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomColumnAndRowIndexesTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomColumnAndRowIndexesTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomRowIndexesTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomRowIndexesTest.pdf
index 1e431d4af2..fa24dbbdf9 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomRowIndexesTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithCustomRowIndexesTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithPtAndPercentTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithPtAndPercentTest.pdf
index f73d88a6a0..b8ab9cc67f 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithPtAndPercentTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithPtAndPercentTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithoutColumnEndTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithoutColumnEndTest.pdf
index 488436de40..c1340f6599 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithoutColumnEndTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_basicThreeColumnsWithoutColumnEndTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_bigCellMinContentTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_bigCellMinContentTest.pdf
index 2bb93a1e23..729637d666 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_bigCellMinContentTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_bigCellMinContentTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnFlowWithBigCellsTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnFlowWithBigCellsTest.pdf
index 3eefb31973..ac2c382156 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnFlowWithBigCellsTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnFlowWithBigCellsTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnRowGapTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnRowGapTest.pdf
index a911144b39..35d3bdf919 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnRowGapTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_columnRowGapTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fewBigCellsWithGapTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fewBigCellsWithGapTest.pdf
index f216da1e46..e29fb94c54 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fewBigCellsWithGapTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fewBigCellsWithGapTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fixedColumnRowGoesFirstTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fixedColumnRowGoesFirstTest.pdf
index 9bace163a6..0589467a8b 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fixedColumnRowGoesFirstTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_fixedColumnRowGoesFirstTest.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_nothingResult.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_nothingResult.pdf
new file mode 100644
index 0000000000..f0c9f1266a
Binary files /dev/null and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_nothingResult.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_overflowGridContainer.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_overflowGridContainer.pdf
new file mode 100644
index 0000000000..c06fbf1dac
Binary files /dev/null and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_overflowGridContainer.pdf differ
diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_threeColumnsWithSquareCellAndCellWithExplicitHeightTest.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_threeColumnsWithSquareCellAndCellWithExplicitHeightTest.pdf
index b231f9231c..f382bec744 100644
Binary files a/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_threeColumnsWithSquareCellAndCellWithExplicitHeightTest.pdf and b/itext.tests/itext.layout.tests/resources/itext/layout/GridContainerTest/cmp_threeColumnsWithSquareCellAndCellWithExplicitHeightTest.pdf differ
diff --git a/itext.tests/itext.pdfua.tests/itext/pdfua/checkers/PdfUAFormFieldsTest.cs b/itext.tests/itext.pdfua.tests/itext/pdfua/checkers/PdfUAFormFieldsTest.cs
index 3448777da5..a93ec4c6dc 100644
--- a/itext.tests/itext.pdfua.tests/itext/pdfua/checkers/PdfUAFormFieldsTest.cs
+++ b/itext.tests/itext.pdfua.tests/itext/pdfua/checkers/PdfUAFormFieldsTest.cs
@@ -61,12 +61,12 @@ public virtual void SetUp() {
[NUnit.Framework.Test]
public virtual void TestCheckBox() {
- framework.AddSuppliers(new _Generator_83());
+ framework.AddSuppliers(new _Generator_84());
framework.AssertBothValid("testCheckBox.pdf");
}
- private sealed class _Generator_83 : UaValidationTestFramework.Generator {
- public _Generator_83() {
+ private sealed class _Generator_84 : UaValidationTestFramework.Generator {
+ public _Generator_84() {
}
public IBlockElement Generate() {
@@ -76,12 +76,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxWithCustomAppearance() {
- framework.AddSuppliers(new _Generator_94());
+ framework.AddSuppliers(new _Generator_95());
framework.AssertBothValid("testCheckBoxWithCustomAppearance.pdf");
}
- private sealed class _Generator_94 : UaValidationTestFramework.Generator {
- public _Generator_94() {
+ private sealed class _Generator_95 : UaValidationTestFramework.Generator {
+ public _Generator_95() {
}
public IBlockElement Generate() {
@@ -95,12 +95,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxChecked() {
- framework.AddSuppliers(new _Generator_109());
+ framework.AddSuppliers(new _Generator_110());
framework.AssertBothValid("testCheckBox");
}
- private sealed class _Generator_109 : UaValidationTestFramework.Generator {
- public _Generator_109() {
+ private sealed class _Generator_110 : UaValidationTestFramework.Generator {
+ public _Generator_110() {
}
public IBlockElement Generate() {
@@ -113,12 +113,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxCheckedAlternativeDescription() {
- framework.AddSuppliers(new _Generator_123());
+ framework.AddSuppliers(new _Generator_124());
framework.AssertBothValid("testCheckBoxCheckedAlternativeDescription");
}
- private sealed class _Generator_123 : UaValidationTestFramework.Generator {
- public _Generator_123() {
+ private sealed class _Generator_124 : UaValidationTestFramework.Generator {
+ public _Generator_124() {
}
public IBlockElement Generate() {
@@ -132,12 +132,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxCheckedCustomAppearance() {
- framework.AddSuppliers(new _Generator_138());
+ framework.AddSuppliers(new _Generator_139());
framework.AssertBothValid("testCheckBoxCheckedCustomAppearance");
}
- private sealed class _Generator_138 : UaValidationTestFramework.Generator {
- public _Generator_138() {
+ private sealed class _Generator_139 : UaValidationTestFramework.Generator {
+ public _Generator_139() {
}
public IBlockElement Generate() {
@@ -154,12 +154,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxInteractive() {
- framework.AddSuppliers(new _Generator_156());
+ framework.AddSuppliers(new _Generator_157());
framework.AssertBothValid("testCheckBoxInteractive");
}
- private sealed class _Generator_156 : UaValidationTestFramework.Generator {
- public _Generator_156() {
+ private sealed class _Generator_157 : UaValidationTestFramework.Generator {
+ public _Generator_157() {
}
public IBlockElement Generate() {
@@ -172,12 +172,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxInteractiveCustomAppearance() {
- framework.AddSuppliers(new _Generator_170());
+ framework.AddSuppliers(new _Generator_171());
framework.AssertBothValid("testCheckBoxInteractiveCustomAppearance");
}
- private sealed class _Generator_170 : UaValidationTestFramework.Generator {
- public _Generator_170() {
+ private sealed class _Generator_171 : UaValidationTestFramework.Generator {
+ public _Generator_171() {
}
public IBlockElement Generate() {
@@ -194,12 +194,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxInteractiveCustomAppearanceChecked() {
- framework.AddSuppliers(new _Generator_188());
+ framework.AddSuppliers(new _Generator_189());
framework.AssertBothValid("testCheckBoxInteractiveCustomAppearanceChecked");
}
- private sealed class _Generator_188 : UaValidationTestFramework.Generator {
- public _Generator_188() {
+ private sealed class _Generator_189 : UaValidationTestFramework.Generator {
+ public _Generator_189() {
}
public IBlockElement Generate() {
@@ -217,12 +217,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButton() {
- framework.AddSuppliers(new _Generator_207());
+ framework.AddSuppliers(new _Generator_208());
framework.AssertBothValid("testRadioButton");
}
- private sealed class _Generator_207 : UaValidationTestFramework.Generator {
- public _Generator_207() {
+ private sealed class _Generator_208 : UaValidationTestFramework.Generator {
+ public _Generator_208() {
}
public IBlockElement Generate() {
@@ -232,12 +232,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonChecked() {
- framework.AddSuppliers(new _Generator_218());
+ framework.AddSuppliers(new _Generator_219());
framework.AssertBothValid("testRadioButtonChecked");
}
- private sealed class _Generator_218 : UaValidationTestFramework.Generator {
- public _Generator_218() {
+ private sealed class _Generator_219 : UaValidationTestFramework.Generator {
+ public _Generator_219() {
}
public IBlockElement Generate() {
@@ -249,12 +249,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonCustomAppearance() {
- framework.AddSuppliers(new _Generator_231());
+ framework.AddSuppliers(new _Generator_232());
framework.AssertBothValid("testRadioButtonCustomAppearance");
}
- private sealed class _Generator_231 : UaValidationTestFramework.Generator {
- public _Generator_231() {
+ private sealed class _Generator_232 : UaValidationTestFramework.Generator {
+ public _Generator_232() {
}
public IBlockElement Generate() {
@@ -268,12 +268,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonCustomAppearanceChecked() {
- framework.AddSuppliers(new _Generator_246());
+ framework.AddSuppliers(new _Generator_247());
framework.AssertBothValid("testRadioButtonCustomAppearanceChecked");
}
- private sealed class _Generator_246 : UaValidationTestFramework.Generator {
- public _Generator_246() {
+ private sealed class _Generator_247 : UaValidationTestFramework.Generator {
+ public _Generator_247() {
}
public IBlockElement Generate() {
@@ -288,13 +288,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroup() {
- framework.AddSuppliers(new _Generator_262());
- framework.AddSuppliers(new _Generator_268());
+ framework.AddSuppliers(new _Generator_263());
+ framework.AddSuppliers(new _Generator_269());
framework.AssertBothValid("testRadioButtonGroup");
}
- private sealed class _Generator_262 : UaValidationTestFramework.Generator {
- public _Generator_262() {
+ private sealed class _Generator_263 : UaValidationTestFramework.Generator {
+ public _Generator_263() {
}
public IBlockElement Generate() {
@@ -302,8 +302,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_268 : UaValidationTestFramework.Generator {
- public _Generator_268() {
+ private sealed class _Generator_269 : UaValidationTestFramework.Generator {
+ public _Generator_269() {
}
public IBlockElement Generate() {
@@ -313,13 +313,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroupCustomAppearance() {
- framework.AddSuppliers(new _Generator_280());
- framework.AddSuppliers(new _Generator_290());
+ framework.AddSuppliers(new _Generator_281());
+ framework.AddSuppliers(new _Generator_291());
framework.AssertBothValid("testRadioButtonGroup");
}
- private sealed class _Generator_280 : UaValidationTestFramework.Generator {
- public _Generator_280() {
+ private sealed class _Generator_281 : UaValidationTestFramework.Generator {
+ public _Generator_281() {
}
public IBlockElement Generate() {
@@ -331,8 +331,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_290 : UaValidationTestFramework.Generator {
- public _Generator_290() {
+ private sealed class _Generator_291 : UaValidationTestFramework.Generator {
+ public _Generator_291() {
}
public IBlockElement Generate() {
@@ -346,13 +346,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroupCustomAppearanceChecked() {
- framework.AddSuppliers(new _Generator_305());
- framework.AddSuppliers(new _Generator_315());
+ framework.AddSuppliers(new _Generator_306());
+ framework.AddSuppliers(new _Generator_316());
framework.AssertBothValid("testRadioButtonGroupCustomAppearanceChecked");
}
- private sealed class _Generator_305 : UaValidationTestFramework.Generator {
- public _Generator_305() {
+ private sealed class _Generator_306 : UaValidationTestFramework.Generator {
+ public _Generator_306() {
}
public IBlockElement Generate() {
@@ -364,8 +364,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_315 : UaValidationTestFramework.Generator {
- public _Generator_315() {
+ private sealed class _Generator_316 : UaValidationTestFramework.Generator {
+ public _Generator_316() {
}
public IBlockElement Generate() {
@@ -380,12 +380,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonInteractive() {
- framework.AddSuppliers(new _Generator_332());
+ framework.AddSuppliers(new _Generator_333());
framework.AssertBothValid("testRadioButtonInteractive");
}
- private sealed class _Generator_332 : UaValidationTestFramework.Generator {
- public _Generator_332() {
+ private sealed class _Generator_333 : UaValidationTestFramework.Generator {
+ public _Generator_333() {
}
public IBlockElement Generate() {
@@ -398,12 +398,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonCheckedInteractive() {
- framework.AddSuppliers(new _Generator_346());
+ framework.AddSuppliers(new _Generator_347());
framework.AssertBothValid("testRadioButtonChecked");
}
- private sealed class _Generator_346 : UaValidationTestFramework.Generator {
- public _Generator_346() {
+ private sealed class _Generator_347 : UaValidationTestFramework.Generator {
+ public _Generator_347() {
}
public IBlockElement Generate() {
@@ -417,12 +417,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_361());
+ framework.AddSuppliers(new _Generator_362());
framework.AssertBothValid("testRadioButtonCustomAppearance");
}
- private sealed class _Generator_361 : UaValidationTestFramework.Generator {
- public _Generator_361() {
+ private sealed class _Generator_362 : UaValidationTestFramework.Generator {
+ public _Generator_362() {
}
public IBlockElement Generate() {
@@ -438,12 +438,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonCustomAppearanceCheckedInteractive() {
- framework.AddSuppliers(new _Generator_378());
+ framework.AddSuppliers(new _Generator_379());
framework.AssertBothValid("testRadioButtonCustomAppearanceCheckedInteractive");
}
- private sealed class _Generator_378 : UaValidationTestFramework.Generator {
- public _Generator_378() {
+ private sealed class _Generator_379 : UaValidationTestFramework.Generator {
+ public _Generator_379() {
}
public IBlockElement Generate() {
@@ -460,13 +460,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroupInteractive() {
- framework.AddSuppliers(new _Generator_396());
- framework.AddSuppliers(new _Generator_405());
+ framework.AddSuppliers(new _Generator_397());
+ framework.AddSuppliers(new _Generator_406());
framework.AssertBothValid("testRadioButtonGroupInteractive");
}
- private sealed class _Generator_396 : UaValidationTestFramework.Generator {
- public _Generator_396() {
+ private sealed class _Generator_397 : UaValidationTestFramework.Generator {
+ public _Generator_397() {
}
public IBlockElement Generate() {
@@ -477,8 +477,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_405 : UaValidationTestFramework.Generator {
- public _Generator_405() {
+ private sealed class _Generator_406 : UaValidationTestFramework.Generator {
+ public _Generator_406() {
}
public IBlockElement Generate() {
@@ -491,13 +491,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroupCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_420());
- framework.AddSuppliers(new _Generator_432());
+ framework.AddSuppliers(new _Generator_421());
+ framework.AddSuppliers(new _Generator_433());
framework.AssertBothValid("testRadioButtonGroupInteractive");
}
- private sealed class _Generator_420 : UaValidationTestFramework.Generator {
- public _Generator_420() {
+ private sealed class _Generator_421 : UaValidationTestFramework.Generator {
+ public _Generator_421() {
}
public IBlockElement Generate() {
@@ -511,8 +511,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_432 : UaValidationTestFramework.Generator {
- public _Generator_432() {
+ private sealed class _Generator_433 : UaValidationTestFramework.Generator {
+ public _Generator_433() {
}
public IBlockElement Generate() {
@@ -528,13 +528,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonGroupCustomAppearanceCheckedInteractive() {
- framework.AddSuppliers(new _Generator_449());
- framework.AddSuppliers(new _Generator_461());
+ framework.AddSuppliers(new _Generator_450());
+ framework.AddSuppliers(new _Generator_462());
framework.AssertBothValid("testRadioButtonGroupCustomAppearanceCheckedInteractive");
}
- private sealed class _Generator_449 : UaValidationTestFramework.Generator {
- public _Generator_449() {
+ private sealed class _Generator_450 : UaValidationTestFramework.Generator {
+ public _Generator_450() {
}
public IBlockElement Generate() {
@@ -548,8 +548,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_461 : UaValidationTestFramework.Generator {
- public _Generator_461() {
+ private sealed class _Generator_462 : UaValidationTestFramework.Generator {
+ public _Generator_462() {
}
public IBlockElement Generate() {
@@ -566,12 +566,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButton() {
- framework.AddSuppliers(new _Generator_480(this));
+ framework.AddSuppliers(new _Generator_481(this));
framework.AssertBothValid("testButton");
}
- private sealed class _Generator_480 : UaValidationTestFramework.Generator {
- public _Generator_480(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_481 : UaValidationTestFramework.Generator {
+ public _Generator_481(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -587,12 +587,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomAppearance() {
- framework.AddSuppliers(new _Generator_494(this));
+ framework.AddSuppliers(new _Generator_495(this));
framework.AssertBothValid("testButtonCustomAppearance");
}
- private sealed class _Generator_494 : UaValidationTestFramework.Generator {
- public _Generator_494(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_495 : UaValidationTestFramework.Generator {
+ public _Generator_495(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -610,12 +610,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonSingleLine() {
- framework.AddSuppliers(new _Generator_510(this));
+ framework.AddSuppliers(new _Generator_511(this));
framework.AssertBothValid("testButtonSingleLine");
}
- private sealed class _Generator_510 : UaValidationTestFramework.Generator {
- public _Generator_510(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_511 : UaValidationTestFramework.Generator {
+ public _Generator_511(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -631,12 +631,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomContent() {
- framework.AddSuppliers(new _Generator_524(this));
+ framework.AddSuppliers(new _Generator_525(this));
framework.AssertBothValid("testButtonSingleLine");
}
- private sealed class _Generator_524 : UaValidationTestFramework.Generator {
- public _Generator_524(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_525 : UaValidationTestFramework.Generator {
+ public _Generator_525(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -653,12 +653,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomContentIsAlsoForm() {
- framework.AddSuppliers(new _Generator_539());
+ framework.AddSuppliers(new _Generator_540());
framework.AssertBothValid("testButtonSingleLine");
}
- private sealed class _Generator_539 : UaValidationTestFramework.Generator {
- public _Generator_539() {
+ private sealed class _Generator_540 : UaValidationTestFramework.Generator {
+ public _Generator_540() {
}
public IBlockElement Generate() {
@@ -672,12 +672,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonInteractive() {
- framework.AddSuppliers(new _Generator_554(this));
+ framework.AddSuppliers(new _Generator_555(this));
framework.AssertBothValid("testButtonInteractive");
}
- private sealed class _Generator_554 : UaValidationTestFramework.Generator {
- public _Generator_554(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_555 : UaValidationTestFramework.Generator {
+ public _Generator_555(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -695,12 +695,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_571(this));
+ framework.AddSuppliers(new _Generator_572(this));
framework.AssertBothValid("testButtonCustomAppearanceInteractive");
}
- private sealed class _Generator_571 : UaValidationTestFramework.Generator {
- public _Generator_571(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_572 : UaValidationTestFramework.Generator {
+ public _Generator_572(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -720,12 +720,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonSingleLineInteractive() {
- framework.AddSuppliers(new _Generator_590(this));
+ framework.AddSuppliers(new _Generator_591(this));
framework.AssertBothValid("testButtonSingleLineInteractive");
}
- private sealed class _Generator_590 : UaValidationTestFramework.Generator {
- public _Generator_590(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_591 : UaValidationTestFramework.Generator {
+ public _Generator_591(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -743,12 +743,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomContentInteractive() {
- framework.AddSuppliers(new _Generator_607(this));
+ framework.AddSuppliers(new _Generator_608(this));
framework.AssertBothValid("testButtonSingleLineInteractive");
}
- private sealed class _Generator_607 : UaValidationTestFramework.Generator {
- public _Generator_607(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_608 : UaValidationTestFramework.Generator {
+ public _Generator_608(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -768,12 +768,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonCustomContentIsAlsoFormInteractive() {
- framework.AddSuppliers(new _Generator_625(this));
+ framework.AddSuppliers(new _Generator_626(this));
framework.AssertBothValid("testButtonSingleLineInteractive");
}
- private sealed class _Generator_625 : UaValidationTestFramework.Generator {
- public _Generator_625(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_626 : UaValidationTestFramework.Generator {
+ public _Generator_626(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -795,12 +795,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputField() {
- framework.AddSuppliers(new _Generator_645(this));
+ framework.AddSuppliers(new _Generator_646(this));
framework.AssertBothValid("testInputField");
}
- private sealed class _Generator_645 : UaValidationTestFramework.Generator {
- public _Generator_645(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_646 : UaValidationTestFramework.Generator {
+ public _Generator_646(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -815,12 +815,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithValue() {
- framework.AddSuppliers(new _Generator_658(this));
+ framework.AddSuppliers(new _Generator_659(this));
framework.AssertBothValid("testInputFieldWithValue");
}
- private sealed class _Generator_658 : UaValidationTestFramework.Generator {
- public _Generator_658(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_659 : UaValidationTestFramework.Generator {
+ public _Generator_659(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -836,12 +836,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearance() {
- framework.AddSuppliers(new _Generator_672(this));
+ framework.AddSuppliers(new _Generator_673(this));
framework.AssertBothValid("testInputFieldWithCustomAppearance");
}
- private sealed class _Generator_672 : UaValidationTestFramework.Generator {
- public _Generator_672(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_673 : UaValidationTestFramework.Generator {
+ public _Generator_673(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -858,12 +858,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearanceAndValue() {
- framework.AddSuppliers(new _Generator_687(this));
+ framework.AddSuppliers(new _Generator_688(this));
framework.AssertBothValid("testInputFieldWithCustomAppearanceAndValue");
}
- private sealed class _Generator_687 : UaValidationTestFramework.Generator {
- public _Generator_687(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_688 : UaValidationTestFramework.Generator {
+ public _Generator_688(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -881,12 +881,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearanceAndPlaceHolder() {
- framework.AddSuppliers(new _Generator_703(this));
+ framework.AddSuppliers(new _Generator_704(this));
framework.AssertBothValid("testInputFieldWithCustomAppearanceAndValue");
}
- private sealed class _Generator_703 : UaValidationTestFramework.Generator {
- public _Generator_703(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_704 : UaValidationTestFramework.Generator {
+ public _Generator_704(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -904,12 +904,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldInteractive() {
- framework.AddSuppliers(new _Generator_719(this));
+ framework.AddSuppliers(new _Generator_720(this));
framework.AssertBothValid("testInputFieldInteractive");
}
- private sealed class _Generator_719 : UaValidationTestFramework.Generator {
- public _Generator_719(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_720 : UaValidationTestFramework.Generator {
+ public _Generator_720(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -926,12 +926,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithValueInteractive() {
- framework.AddSuppliers(new _Generator_734(this));
+ framework.AddSuppliers(new _Generator_735(this));
framework.AssertBothValid("testInputFieldWithValueInteractive");
}
- private sealed class _Generator_734 : UaValidationTestFramework.Generator {
- public _Generator_734(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_735 : UaValidationTestFramework.Generator {
+ public _Generator_735(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -949,12 +949,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_750(this));
+ framework.AddSuppliers(new _Generator_751(this));
framework.AssertBothValid("testInputFieldWithCustomAppearanceInteractive");
}
- private sealed class _Generator_750 : UaValidationTestFramework.Generator {
- public _Generator_750(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_751 : UaValidationTestFramework.Generator {
+ public _Generator_751(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -973,12 +973,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearanceAndValueInteractive() {
- framework.AddSuppliers(new _Generator_767(this));
+ framework.AddSuppliers(new _Generator_768(this));
framework.AssertBothValid("testInputFieldWithCustomAppearanceAndValueInteractive");
}
- private sealed class _Generator_767 : UaValidationTestFramework.Generator {
- public _Generator_767(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_768 : UaValidationTestFramework.Generator {
+ public _Generator_768(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -998,12 +998,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldWithCustomAppearanceAndPlaceHolderInteractive() {
- framework.AddSuppliers(new _Generator_785(this));
+ framework.AddSuppliers(new _Generator_786(this));
framework.AssertBothValid("testInputFieldWithCustomAppearanceAndPlaceHolderInteractive");
}
- private sealed class _Generator_785 : UaValidationTestFramework.Generator {
- public _Generator_785(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_786 : UaValidationTestFramework.Generator {
+ public _Generator_786(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1023,12 +1023,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextArea() {
- framework.AddSuppliers(new _Generator_803(this));
+ framework.AddSuppliers(new _Generator_804(this));
framework.AssertBothValid("testTextArea");
}
- private sealed class _Generator_803 : UaValidationTestFramework.Generator {
- public _Generator_803(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_804 : UaValidationTestFramework.Generator {
+ public _Generator_804(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1043,12 +1043,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithValue() {
- framework.AddSuppliers(new _Generator_816(this));
+ framework.AddSuppliers(new _Generator_817(this));
framework.AssertBothValid("testTextAreaWithValue");
}
- private sealed class _Generator_816 : UaValidationTestFramework.Generator {
- public _Generator_816(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_817 : UaValidationTestFramework.Generator {
+ public _Generator_817(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1064,12 +1064,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearance() {
- framework.AddSuppliers(new _Generator_830(this));
+ framework.AddSuppliers(new _Generator_831(this));
framework.AssertBothValid("testTextAreaWithCustomAppearance");
}
- private sealed class _Generator_830 : UaValidationTestFramework.Generator {
- public _Generator_830(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_831 : UaValidationTestFramework.Generator {
+ public _Generator_831(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1086,12 +1086,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearanceAndValue() {
- framework.AddSuppliers(new _Generator_845(this));
+ framework.AddSuppliers(new _Generator_846(this));
framework.AssertBothValid("testTextAreaWithCustomAppearanceAndValue");
}
- private sealed class _Generator_845 : UaValidationTestFramework.Generator {
- public _Generator_845(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_846 : UaValidationTestFramework.Generator {
+ public _Generator_846(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1109,12 +1109,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearanceAndPlaceHolder() {
- framework.AddSuppliers(new _Generator_861(this));
+ framework.AddSuppliers(new _Generator_862(this));
framework.AssertBothValid("testTextAreaWithCustomAppearanceAndValue");
}
- private sealed class _Generator_861 : UaValidationTestFramework.Generator {
- public _Generator_861(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_862 : UaValidationTestFramework.Generator {
+ public _Generator_862(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1132,12 +1132,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaInteractive() {
- framework.AddSuppliers(new _Generator_877(this));
+ framework.AddSuppliers(new _Generator_878(this));
framework.AssertBothValid("testTextAreaInteractive");
}
- private sealed class _Generator_877 : UaValidationTestFramework.Generator {
- public _Generator_877(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_878 : UaValidationTestFramework.Generator {
+ public _Generator_878(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1154,12 +1154,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithValueInteractive() {
- framework.AddSuppliers(new _Generator_892(this));
+ framework.AddSuppliers(new _Generator_893(this));
framework.AssertBothValid("testTextAreaWithValueInteractive");
}
- private sealed class _Generator_892 : UaValidationTestFramework.Generator {
- public _Generator_892(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_893 : UaValidationTestFramework.Generator {
+ public _Generator_893(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1177,12 +1177,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_908(this));
+ framework.AddSuppliers(new _Generator_909(this));
framework.AssertBothValid("testTextAreaWithCustomAppearanceInteractive");
}
- private sealed class _Generator_908 : UaValidationTestFramework.Generator {
- public _Generator_908(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_909 : UaValidationTestFramework.Generator {
+ public _Generator_909(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1201,12 +1201,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearanceAndValueInteractive() {
- framework.AddSuppliers(new _Generator_925(this));
+ framework.AddSuppliers(new _Generator_926(this));
framework.AssertBothValid("testTextAreaWithCustomAppearanceAndValueInteractive");
}
- private sealed class _Generator_925 : UaValidationTestFramework.Generator {
- public _Generator_925(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_926 : UaValidationTestFramework.Generator {
+ public _Generator_926(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1226,12 +1226,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaWithCustomAppearanceAndPlaceHolderInteractive() {
- framework.AddSuppliers(new _Generator_943(this));
+ framework.AddSuppliers(new _Generator_944(this));
framework.AssertBothValid("testTextAreaWithCustomAppearanceAndPlaceHolderInteractive");
}
- private sealed class _Generator_943 : UaValidationTestFramework.Generator {
- public _Generator_943(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_944 : UaValidationTestFramework.Generator {
+ public _Generator_944(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1251,12 +1251,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBox() {
- framework.AddSuppliers(new _Generator_961(this));
+ framework.AddSuppliers(new _Generator_962(this));
framework.AssertBothValid("testListBox");
}
- private sealed class _Generator_961 : UaValidationTestFramework.Generator {
- public _Generator_961(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_962 : UaValidationTestFramework.Generator {
+ public _Generator_962(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1273,12 +1273,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxCustomAppearance() {
- framework.AddSuppliers(new _Generator_976(this));
+ framework.AddSuppliers(new _Generator_977(this));
framework.AssertBothValid("testListBoxCustomAppearance");
}
- private sealed class _Generator_976 : UaValidationTestFramework.Generator {
- public _Generator_976(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_977 : UaValidationTestFramework.Generator {
+ public _Generator_977(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1298,12 +1298,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxCustomAppearanceSelected() {
- framework.AddSuppliers(new _Generator_994(this));
+ framework.AddSuppliers(new _Generator_995(this));
framework.AssertBothValid("testListBoxCustomAppearanceSelected");
}
- private sealed class _Generator_994 : UaValidationTestFramework.Generator {
- public _Generator_994(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_995 : UaValidationTestFramework.Generator {
+ public _Generator_995(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1323,12 +1323,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxInteractive() {
- framework.AddSuppliers(new _Generator_1012(this));
+ framework.AddSuppliers(new _Generator_1013(this));
framework.AssertBothValid("testListBoxInteractive");
}
- private sealed class _Generator_1012 : UaValidationTestFramework.Generator {
- public _Generator_1012(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1013 : UaValidationTestFramework.Generator {
+ public _Generator_1013(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1347,12 +1347,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_1029(this));
+ framework.AddSuppliers(new _Generator_1030(this));
framework.AssertBothValid("testListBoxCustomAppearanceInteractive");
}
- private sealed class _Generator_1029 : UaValidationTestFramework.Generator {
- public _Generator_1029(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1030 : UaValidationTestFramework.Generator {
+ public _Generator_1030(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1374,12 +1374,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxCustomAppearanceSelectedInteractive() {
- framework.AddSuppliers(new _Generator_1049(this));
+ framework.AddSuppliers(new _Generator_1050(this));
framework.AssertBothValid("testListBoxCustomAppearanceSelectedInteractive");
}
- private sealed class _Generator_1049 : UaValidationTestFramework.Generator {
- public _Generator_1049(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1050 : UaValidationTestFramework.Generator {
+ public _Generator_1050(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1401,12 +1401,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBox() {
- framework.AddSuppliers(new _Generator_1069(this));
+ framework.AddSuppliers(new _Generator_1070(this));
framework.AssertBothValid("testComboBox");
}
- private sealed class _Generator_1069 : UaValidationTestFramework.Generator {
- public _Generator_1069(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1070 : UaValidationTestFramework.Generator {
+ public _Generator_1070(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1423,12 +1423,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxCustomAppearance() {
- framework.AddSuppliers(new _Generator_1084(this));
+ framework.AddSuppliers(new _Generator_1085(this));
framework.AssertBothValid("testComboBoxCustomAppearance");
}
- private sealed class _Generator_1084 : UaValidationTestFramework.Generator {
- public _Generator_1084(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1085 : UaValidationTestFramework.Generator {
+ public _Generator_1085(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1448,12 +1448,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxCustomAppearanceSelected() {
- framework.AddSuppliers(new _Generator_1102(this));
+ framework.AddSuppliers(new _Generator_1103(this));
framework.AssertBothValid("testListBoxCustomAppearanceSelected");
}
- private sealed class _Generator_1102 : UaValidationTestFramework.Generator {
- public _Generator_1102(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1103 : UaValidationTestFramework.Generator {
+ public _Generator_1103(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1473,12 +1473,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxInteractive() {
- framework.AddSuppliers(new _Generator_1120(this));
+ framework.AddSuppliers(new _Generator_1121(this));
framework.AssertBothValid("testComboBoxInteractive");
}
- private sealed class _Generator_1120 : UaValidationTestFramework.Generator {
- public _Generator_1120(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1121 : UaValidationTestFramework.Generator {
+ public _Generator_1121(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1497,12 +1497,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxCustomAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_1137(this));
+ framework.AddSuppliers(new _Generator_1138(this));
framework.AssertBothValid("testComboBoxCustomAppearanceInteractive");
}
- private sealed class _Generator_1137 : UaValidationTestFramework.Generator {
- public _Generator_1137(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1138 : UaValidationTestFramework.Generator {
+ public _Generator_1138(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1524,12 +1524,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxCustomAppearanceSelectedInteractive() {
- framework.AddSuppliers(new _Generator_1157(this));
+ framework.AddSuppliers(new _Generator_1158(this));
framework.AssertBothValid("testComboBoxCustomAppearanceSelectedInteractive");
}
- private sealed class _Generator_1157 : UaValidationTestFramework.Generator {
- public _Generator_1157(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1158 : UaValidationTestFramework.Generator {
+ public _Generator_1158(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1551,12 +1551,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearance() {
- framework.AddSuppliers(new _Generator_1177(this));
+ framework.AddSuppliers(new _Generator_1178(this));
framework.AssertBothValid("testSignatureAppearance");
}
- private sealed class _Generator_1177 : UaValidationTestFramework.Generator {
- public _Generator_1177(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1178 : UaValidationTestFramework.Generator {
+ public _Generator_1178(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1572,12 +1572,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceWithSignedAppearanceText() {
- framework.AddSuppliers(new _Generator_1191(this));
+ framework.AddSuppliers(new _Generator_1192(this));
framework.AssertBothValid("testSignatureAppearanceWithSignedAppearanceText");
}
- private sealed class _Generator_1191 : UaValidationTestFramework.Generator {
- public _Generator_1191(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1192 : UaValidationTestFramework.Generator {
+ public _Generator_1192(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1597,12 +1597,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceWithCustomContent() {
- framework.AddSuppliers(new _Generator_1209(this));
+ framework.AddSuppliers(new _Generator_1210(this));
framework.AssertBothValid("testSignatureAppearanceWithSignedAppearanceText");
}
- private sealed class _Generator_1209 : UaValidationTestFramework.Generator {
- public _Generator_1209(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1210 : UaValidationTestFramework.Generator {
+ public _Generator_1210(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1620,12 +1620,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceWithSignedAppearanceAndCustomAppearanceText() {
- framework.AddSuppliers(new _Generator_1226(this));
+ framework.AddSuppliers(new _Generator_1227(this));
framework.AssertBothValid("testSignatureAppearanceWithSignedAppearanceAndCustomAppearanceText");
}
- private sealed class _Generator_1226 : UaValidationTestFramework.Generator {
- public _Generator_1226(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1227 : UaValidationTestFramework.Generator {
+ public _Generator_1227(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1647,12 +1647,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceInteractive() {
- framework.AddSuppliers(new _Generator_1246(this));
+ framework.AddSuppliers(new _Generator_1247(this));
framework.AssertBothValid("testSignatureAppearanceInteractive");
}
- private sealed class _Generator_1246 : UaValidationTestFramework.Generator {
- public _Generator_1246(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1247 : UaValidationTestFramework.Generator {
+ public _Generator_1247(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1670,12 +1670,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceWithSignedAppearanceTextInteractive() {
- framework.AddSuppliers(new _Generator_1262(this));
+ framework.AddSuppliers(new _Generator_1263(this));
framework.AssertBothValid("testSignatureAppearanceWithSignedAppearanceTextInteractive");
}
- private sealed class _Generator_1262 : UaValidationTestFramework.Generator {
- public _Generator_1262(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1263 : UaValidationTestFramework.Generator {
+ public _Generator_1263(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1697,12 +1697,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceWithCustomContentInteractive() {
- framework.AddSuppliers(new _Generator_1283(this));
+ framework.AddSuppliers(new _Generator_1284(this));
framework.AssertBothValid("testSignatureAppearanceWithSignedAppearanceTextInteractive");
}
- private sealed class _Generator_1283 : UaValidationTestFramework.Generator {
- public _Generator_1283(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1284 : UaValidationTestFramework.Generator {
+ public _Generator_1284(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1722,12 +1722,12 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignedAndCustomAppearanceTextInteractive() {
- framework.AddSuppliers(new _Generator_1303(this));
+ framework.AddSuppliers(new _Generator_1304(this));
framework.AssertBothValid("testSignedAndCustomAppearanceTextInteractive");
}
- private sealed class _Generator_1303 : UaValidationTestFramework.Generator {
- public _Generator_1303(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1304 : UaValidationTestFramework.Generator {
+ public _Generator_1304(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1751,13 +1751,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveCheckBoxNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1325());
+ framework.AddSuppliers(new _Generator_1326());
framework.AssertBothFail("testInteractiveCheckBoxNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1325 : UaValidationTestFramework.Generator {
- public _Generator_1325() {
+ private sealed class _Generator_1326 : UaValidationTestFramework.Generator {
+ public _Generator_1326() {
}
public IBlockElement Generate() {
@@ -1770,13 +1770,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveRadioButtonNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1340());
+ framework.AddSuppliers(new _Generator_1341());
framework.AssertBothFail("testInteractiveRadioButtonNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1340 : UaValidationTestFramework.Generator {
- public _Generator_1340() {
+ private sealed class _Generator_1341 : UaValidationTestFramework.Generator {
+ public _Generator_1341() {
}
public IBlockElement Generate() {
@@ -1788,13 +1788,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveButtonNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1354(this));
+ framework.AddSuppliers(new _Generator_1355(this));
framework.AssertBothFail("testInteractiveButtonNoAlternativeDescription", PdfUAExceptionMessageConstants.MISSING_FORM_FIELD_DESCRIPTION
);
}
- private sealed class _Generator_1354 : UaValidationTestFramework.Generator {
- public _Generator_1354(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1355 : UaValidationTestFramework.Generator {
+ public _Generator_1355(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1810,13 +1810,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveInputFieldNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1369(this));
+ framework.AddSuppliers(new _Generator_1370(this));
framework.AssertBothFail("testInteractiveInputFieldNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1369 : UaValidationTestFramework.Generator {
- public _Generator_1369(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1370 : UaValidationTestFramework.Generator {
+ public _Generator_1370(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1832,13 +1832,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveTextAreaNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1384(this));
+ framework.AddSuppliers(new _Generator_1385(this));
framework.AssertBothFail("testInteractiveTextAreaNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1384 : UaValidationTestFramework.Generator {
- public _Generator_1384(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1385 : UaValidationTestFramework.Generator {
+ public _Generator_1385(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1854,13 +1854,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveListBoxNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1399(this));
+ framework.AddSuppliers(new _Generator_1400(this));
framework.AssertBothFail("testInteractiveListBoxNoAlternativeDescription", PdfUAExceptionMessageConstants.
MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1399 : UaValidationTestFramework.Generator {
- public _Generator_1399(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1400 : UaValidationTestFramework.Generator {
+ public _Generator_1400(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1876,13 +1876,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveComboBoxNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1414(this));
+ framework.AddSuppliers(new _Generator_1415(this));
framework.AssertBothFail("testInteractiveComboBoxNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1414 : UaValidationTestFramework.Generator {
- public _Generator_1414(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1415 : UaValidationTestFramework.Generator {
+ public _Generator_1415(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1898,13 +1898,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInteractiveSignatureAppearanceNoAlternativeDescription() {
- framework.AddSuppliers(new _Generator_1429(this));
+ framework.AddSuppliers(new _Generator_1430(this));
framework.AssertBothFail("testInteractiveSignatureAppearanceNoAlternativeDescription", PdfUAExceptionMessageConstants
.MISSING_FORM_FIELD_DESCRIPTION);
}
- private sealed class _Generator_1429 : UaValidationTestFramework.Generator {
- public _Generator_1429(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1430 : UaValidationTestFramework.Generator {
+ public _Generator_1430(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -1920,13 +1920,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestCheckBoxDifferentRole() {
- framework.AddSuppliers(new _Generator_1444());
- framework.AddSuppliers(new _Generator_1454());
+ framework.AddSuppliers(new _Generator_1445());
+ framework.AddSuppliers(new _Generator_1455());
framework.AssertBothValid("testCheckBoxDifferentRole");
}
- private sealed class _Generator_1444 : UaValidationTestFramework.Generator {
- public _Generator_1444() {
+ private sealed class _Generator_1445 : UaValidationTestFramework.Generator {
+ public _Generator_1445() {
}
public IBlockElement Generate() {
@@ -1938,8 +1938,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_1454 : UaValidationTestFramework.Generator {
- public _Generator_1454() {
+ private sealed class _Generator_1455 : UaValidationTestFramework.Generator {
+ public _Generator_1455() {
}
public IBlockElement Generate() {
@@ -1952,14 +1952,14 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestRadioButtonDifferentRole() {
- framework.AddSuppliers(new _Generator_1468());
- framework.AddSuppliers(new _Generator_1478());
- framework.AddSuppliers(new _Generator_1488());
+ framework.AddSuppliers(new _Generator_1469());
+ framework.AddSuppliers(new _Generator_1479());
+ framework.AddSuppliers(new _Generator_1489());
framework.AssertBothValid("testRadioButtonDifferentRole");
}
- private sealed class _Generator_1468 : UaValidationTestFramework.Generator {
- public _Generator_1468() {
+ private sealed class _Generator_1469 : UaValidationTestFramework.Generator {
+ public _Generator_1469() {
}
public IBlockElement Generate() {
@@ -1971,8 +1971,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_1478 : UaValidationTestFramework.Generator {
- public _Generator_1478() {
+ private sealed class _Generator_1479 : UaValidationTestFramework.Generator {
+ public _Generator_1479() {
}
public IBlockElement Generate() {
@@ -1984,8 +1984,8 @@ public IBlockElement Generate() {
}
}
- private sealed class _Generator_1488 : UaValidationTestFramework.Generator {
- public _Generator_1488() {
+ private sealed class _Generator_1489 : UaValidationTestFramework.Generator {
+ public _Generator_1489() {
}
public IBlockElement Generate() {
@@ -1997,13 +1997,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestButtonDifferentRole() {
- framework.AddSuppliers(new _Generator_1501(this));
- framework.AddSuppliers(new _Generator_1512(this));
+ framework.AddSuppliers(new _Generator_1502(this));
+ framework.AddSuppliers(new _Generator_1513(this));
framework.AssertBothValid("testButtonDifferentRole");
}
- private sealed class _Generator_1501 : UaValidationTestFramework.Generator {
- public _Generator_1501(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1502 : UaValidationTestFramework.Generator {
+ public _Generator_1502(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2019,8 +2019,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1512 : UaValidationTestFramework.Generator {
- public _Generator_1512(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1513 : UaValidationTestFramework.Generator {
+ public _Generator_1513(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2037,14 +2037,14 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestInputFieldDifferentRole() {
- framework.AddSuppliers(new _Generator_1527(this));
- framework.AddSuppliers(new _Generator_1538(this));
- framework.AddSuppliers(new _Generator_1549(this));
+ framework.AddSuppliers(new _Generator_1528(this));
+ framework.AddSuppliers(new _Generator_1539(this));
+ framework.AddSuppliers(new _Generator_1550(this));
framework.AssertBothValid("testInputFieldDifferentRole");
}
- private sealed class _Generator_1527 : UaValidationTestFramework.Generator {
- public _Generator_1527(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1528 : UaValidationTestFramework.Generator {
+ public _Generator_1528(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2060,8 +2060,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1538 : UaValidationTestFramework.Generator {
- public _Generator_1538(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1539 : UaValidationTestFramework.Generator {
+ public _Generator_1539(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2076,8 +2076,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1549 : UaValidationTestFramework.Generator {
- public _Generator_1549(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1550 : UaValidationTestFramework.Generator {
+ public _Generator_1550(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2094,14 +2094,14 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestTextAreaDifferentRole() {
- framework.AddSuppliers(new _Generator_1564(this));
- framework.AddSuppliers(new _Generator_1574(this));
- framework.AddSuppliers(new _Generator_1583(this));
+ framework.AddSuppliers(new _Generator_1565(this));
+ framework.AddSuppliers(new _Generator_1575(this));
+ framework.AddSuppliers(new _Generator_1584(this));
framework.AssertBothValid("testTextAreaDifferentRole");
}
- private sealed class _Generator_1564 : UaValidationTestFramework.Generator {
- public _Generator_1564(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1565 : UaValidationTestFramework.Generator {
+ public _Generator_1565(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2116,8 +2116,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1574 : UaValidationTestFramework.Generator {
- public _Generator_1574(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1575 : UaValidationTestFramework.Generator {
+ public _Generator_1575(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2131,8 +2131,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1583 : UaValidationTestFramework.Generator {
- public _Generator_1583(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1584 : UaValidationTestFramework.Generator {
+ public _Generator_1584(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2148,13 +2148,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestListBoxDifferentRole() {
- framework.AddSuppliers(new _Generator_1598(this));
- framework.AddSuppliers(new _Generator_1608(this));
+ framework.AddSuppliers(new _Generator_1599(this));
+ framework.AddSuppliers(new _Generator_1609(this));
framework.AssertBothValid("testListBoxDifferentRole");
}
- private sealed class _Generator_1598 : UaValidationTestFramework.Generator {
- public _Generator_1598(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1599 : UaValidationTestFramework.Generator {
+ public _Generator_1599(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2169,8 +2169,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1608 : UaValidationTestFramework.Generator {
- public _Generator_1608(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1609 : UaValidationTestFramework.Generator {
+ public _Generator_1609(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2186,13 +2186,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestComboBoxDifferentRole() {
- framework.AddSuppliers(new _Generator_1624(this));
- framework.AddSuppliers(new _Generator_1637(this));
+ framework.AddSuppliers(new _Generator_1625(this));
+ framework.AddSuppliers(new _Generator_1638(this));
framework.AssertBothValid("testComboBoxDifferentRole");
}
- private sealed class _Generator_1624 : UaValidationTestFramework.Generator {
- public _Generator_1624(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1625 : UaValidationTestFramework.Generator {
+ public _Generator_1625(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2209,8 +2209,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1637 : UaValidationTestFramework.Generator {
- public _Generator_1637(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1638 : UaValidationTestFramework.Generator {
+ public _Generator_1638(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2226,13 +2226,13 @@ public IBlockElement Generate() {
[NUnit.Framework.Test]
public virtual void TestSignatureAppearanceDifferentRole() {
- framework.AddSuppliers(new _Generator_1651(this));
- framework.AddSuppliers(new _Generator_1663(this));
+ framework.AddSuppliers(new _Generator_1652(this));
+ framework.AddSuppliers(new _Generator_1664(this));
framework.AssertBothValid("testSignatureAppearanceDifferentRole");
}
- private sealed class _Generator_1651 : UaValidationTestFramework.Generator {
- public _Generator_1651(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1652 : UaValidationTestFramework.Generator {
+ public _Generator_1652(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2248,8 +2248,8 @@ public IBlockElement Generate() {
private readonly PdfUAFormFieldsTest _enclosing;
}
- private sealed class _Generator_1663 : UaValidationTestFramework.Generator {
- public _Generator_1663(PdfUAFormFieldsTest _enclosing) {
+ private sealed class _Generator_1664 : UaValidationTestFramework.Generator {
+ public _Generator_1664(PdfUAFormFieldsTest _enclosing) {
this._enclosing = _enclosing;
}
@@ -2442,6 +2442,30 @@ public virtual void TestFormFieldWithAltEntry() {
framework.AssertBothValid("FormFieldAltDescription");
}
+ [NUnit.Framework.Test]
+ public virtual void TestFormFieldAsStream() {
+ framework.AddBeforeGenerationHook((pdfDoc) => {
+ PdfObject page = pdfDoc.AddNewPage().GetPdfObject();
+ PdfStream streamObj = new PdfStream();
+ streamObj.Put(PdfName.Subtype, PdfName.Widget);
+ streamObj.Put(PdfName.T, new PdfString("hi"));
+ streamObj.Put(PdfName.TU, new PdfString("some text"));
+ streamObj.Put(PdfName.P, page);
+ PdfDictionary objRef = new PdfDictionary();
+ objRef.Put(PdfName.Obj, streamObj);
+ objRef.Put(PdfName.Type, PdfName.OBJR);
+ PdfDictionary parentDic = new PdfDictionary();
+ parentDic.Put(PdfName.P, pdfDoc.GetStructTreeRoot().GetPdfObject());
+ parentDic.Put(PdfName.S, PdfName.Form);
+ parentDic.Put(PdfName.Type, PdfName.StructElem);
+ parentDic.Put(PdfName.Pg, page);
+ parentDic.Put(PdfName.K, objRef);
+ pdfDoc.GetStructTreeRoot().AddKid(new PdfStructElem(parentDic));
+ }
+ );
+ framework.AssertBothValid("FormFieldAsStream");
+ }
+
private PdfFont GetFont() {
try {
return PdfFontFactory.CreateFont(FONT);
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_ListboxBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_ListboxBuilder.pdf
deleted file mode 100644
index b3fa6de8c9..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_ListboxBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonBuilder.pdf
deleted file mode 100644
index 74a1b61878..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonLayoutI.pdf
deleted file mode 100644
index 62191e6f92..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_buttonLayoutI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxBuilderTest.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxBuilderTest.pdf
deleted file mode 100644
index 488fb544e0..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxBuilderTest.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxLayoutI.pdf
deleted file mode 100644
index f9607ddd01..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_checkBoxLayoutI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_comboboxBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_comboboxBuilder.pdf
deleted file mode 100644
index 90cc37a9fd..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_comboboxBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputAreaBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputAreaBuilder.pdf
deleted file mode 100644
index a13dc42bf1..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputAreaBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputFieldLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputFieldLayoutI.pdf
deleted file mode 100644
index a53835834d..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputFieldLayoutI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputTextBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputTextBuilder.pdf
deleted file mode 100644
index 1d2c08e3ea..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_inputTextBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_listBoxLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_listBoxLayoutI.pdf
deleted file mode 100644
index 84e2c40a2e..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_listBoxLayoutI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioBuilder.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioBuilder.pdf
deleted file mode 100644
index c411060398..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioBuilder.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonGroupInteractiveI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonGroupInteractiveI.pdf
deleted file mode 100644
index fdae7637cd..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonGroupInteractiveI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonLayoutI.pdf
deleted file mode 100644
index 3f2b660e31..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_radioButtonLayoutI.pdf and /dev/null differ
diff --git a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_selectFieldLayoutI.pdf b/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_selectFieldLayoutI.pdf
deleted file mode 100644
index d5afda470d..0000000000
Binary files a/itext.tests/itext.pdfua.tests/resources/itext/pdfua/PdfUAFormFieldTest/cmp_selectFieldLayoutI.pdf and /dev/null differ
diff --git a/itext/itext.kernel/itext/kernel/exceptions/KernelExceptionMessageConstant.cs b/itext/itext.kernel/itext/kernel/exceptions/KernelExceptionMessageConstant.cs
index af3a496ace..53e6cfe257 100644
--- a/itext/itext.kernel/itext/kernel/exceptions/KernelExceptionMessageConstant.cs
+++ b/itext/itext.kernel/itext/kernel/exceptions/KernelExceptionMessageConstant.cs
@@ -330,6 +330,8 @@ public const String CONTENT_STREAM_MUST_NOT_INVOKE_OPERATORS_THAT_SPECIFY_COLORS
public const String INVALID_OFFSET_FOR_THIS_OBJECT = "Invalid offset for object {0}.";
+ public const String INVALID_OBJECT_REFERENCE_TYPE = "Object reference has unsupported type, " + "supported types are dictionaries and streams";
+
public const String INVALID_XREF_STREAM = "Invalid xref stream.";
public const String INVALID_XREF_TABLE = "Invalid xref table.";
diff --git a/itext/itext.kernel/itext/kernel/pdf/tagging/ParentTreeHandler.cs b/itext/itext.kernel/itext/kernel/pdf/tagging/ParentTreeHandler.cs
index 29b5a7011e..2013a112c8 100644
--- a/itext/itext.kernel/itext/kernel/pdf/tagging/ParentTreeHandler.cs
+++ b/itext/itext.kernel/itext/kernel/pdf/tagging/ParentTreeHandler.cs
@@ -180,8 +180,12 @@ private void RegisterMcr(PdfMcr mcr, bool registeringOnInit) {
}
else {
if (mcr is PdfObjRef) {
- PdfDictionary obj = ((PdfDictionary)mcr.GetPdfObject()).GetAsDictionary(PdfName.Obj);
- if (obj == null || obj.IsFlushed()) {
+ PdfObject mcrObj = ((PdfDictionary)mcr.GetPdfObject()).Get(PdfName.Obj);
+ if (!(mcrObj is PdfDictionary)) {
+ throw new PdfException(KernelExceptionMessageConstant.INVALID_OBJECT_REFERENCE_TYPE);
+ }
+ PdfDictionary obj = (PdfDictionary)mcrObj;
+ if (obj.IsFlushed()) {
throw new PdfException(KernelExceptionMessageConstant.WHEN_ADDING_OBJECT_REFERENCE_TO_THE_TAG_TREE_IT_MUST_BE_CONNECTED_TO_NOT_FLUSHED_OBJECT
);
}
@@ -236,15 +240,6 @@ public virtual void UnregisterMcr(PdfMcr mcrToUnregister) {
}
else {
if (mcrToUnregister is PdfObjRef) {
- PdfDictionary obj = ((PdfDictionary)mcrToUnregister.GetPdfObject()).GetAsDictionary(PdfName.Obj);
- if (obj != null && !obj.IsFlushed()) {
- PdfNumber n = obj.GetAsNumber(PdfName.StructParent);
- if (n != null) {
- pageMcrs.GetObjRefs().JRemove(n.IntValue());
- structTreeRoot.SetModified();
- return;
- }
- }
foreach (KeyValuePair entry in pageMcrs.GetObjRefs()) {
if (entry.Value.GetPdfObject() == mcrToUnregister.GetPdfObject()) {
pageMcrs.GetObjRefs().JRemove(entry.Key);
diff --git a/itext/itext.kernel/itext/kernel/pdf/tagging/PdfObjRef.cs b/itext/itext.kernel/itext/kernel/pdf/tagging/PdfObjRef.cs
index 0480287f11..350075feca 100644
--- a/itext/itext.kernel/itext/kernel/pdf/tagging/PdfObjRef.cs
+++ b/itext/itext.kernel/itext/kernel/pdf/tagging/PdfObjRef.cs
@@ -47,7 +47,13 @@ public override PdfDictionary GetPageObject() {
}
public virtual PdfDictionary GetReferencedObject() {
- return ((PdfDictionary)GetPdfObject()).GetAsDictionary(PdfName.Obj);
+ PdfObject obj = ((PdfDictionary)GetPdfObject()).Get(PdfName.Obj);
+ if (obj is PdfDictionary) {
+ return (PdfDictionary)obj;
+ }
+ else {
+ return null;
+ }
}
}
}
diff --git a/itext/itext.kernel/itext/kernel/pdf/tagging/StructureTreeCopier.cs b/itext/itext.kernel/itext/kernel/pdf/tagging/StructureTreeCopier.cs
index 56a1bc7d58..3618f36eef 100644
--- a/itext/itext.kernel/itext/kernel/pdf/tagging/StructureTreeCopier.cs
+++ b/itext/itext.kernel/itext/kernel/pdf/tagging/StructureTreeCopier.cs
@@ -355,13 +355,14 @@ private static PdfDictionary CopyObject(PdfDictionary source, PdfDictionary dest
}
else {
copied = source.CopyTo(copyingParams.GetToDocument(), ignoreKeysForCopy, true);
- PdfDictionary obj = source.GetAsDictionary(PdfName.Obj);
- if (obj != null) {
+ PdfObject obj = source.Get(PdfName.Obj);
+ if (obj is PdfDictionary) {
+ PdfDictionary objDic = (PdfDictionary)obj;
// Link annotations could be not added to the toDocument, so we need to identify this case.
// When obj.copyTo is called, and annotation was already copied, we would get this already created copy.
// If it was already copied and added, /P key would be set. Otherwise /P won't be set.
- obj = obj.CopyTo(copyingParams.GetToDocument(), JavaUtil.ArraysAsList(PdfName.P), false);
- copied.Put(PdfName.Obj, obj);
+ objDic = objDic.CopyTo(copyingParams.GetToDocument(), JavaUtil.ArraysAsList(PdfName.P), false);
+ copied.Put(PdfName.Obj, objDic);
}
PdfDictionary nsDict = source.GetAsDictionary(PdfName.NS);
if (nsDict != null) {
@@ -456,7 +457,7 @@ private static PdfObject CopyObjectKid(PdfObject kid, PdfDictionary copiedParent
PdfMcr mcr;
if (copiedKid.ContainsKey(PdfName.Obj)) {
mcr = new PdfObjRef(copiedKid, new PdfStructElem(copiedParent));
- PdfDictionary contentItemObject = copiedKid.GetAsDictionary(PdfName.Obj);
+ PdfDictionary contentItemObject = (PdfDictionary)copiedKid.Get(PdfName.Obj);
if (PdfName.Link.Equals(contentItemObject.GetAsName(PdfName.Subtype)) && !contentItemObject.ContainsKey(PdfName
.P)) {
// Some link annotations may be not copied, because their destination page is not copied.
diff --git a/itext/itext.layout/itext/layout/renderer/GridContainerRenderer.cs b/itext/itext.layout/itext/layout/renderer/GridContainerRenderer.cs
index 8ae24cf4f3..a06ca2cf9b 100644
--- a/itext/itext.layout/itext/layout/renderer/GridContainerRenderer.cs
+++ b/itext/itext.layout/itext/layout/renderer/GridContainerRenderer.cs
@@ -67,18 +67,12 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
ApplyMargins(actualBBox, false);
Grid grid = ConstructGrid(this, actualBBox);
GridContainerRenderer.GridLayoutResult layoutResult = LayoutGrid(layoutContext, actualBBox, grid);
- //TODO DEVSIX-8329 improve nothing processing, consider checking for cause of nothing here?
- //TODO DEVSIX-8329 improve forced placement logic
- if (layoutResult.GetOverflowRenderers().IsEmpty() && layoutResult.GetSplitRenderers().IsEmpty()) {
+ if (layoutResult.GetOverflowRenderers().IsEmpty()) {
this.occupiedArea = CalculateContainerOccupiedArea(layoutContext, grid, true);
return new LayoutResult(LayoutResult.FULL, this.occupiedArea, null, null);
}
else {
if (layoutResult.GetSplitRenderers().IsEmpty()) {
- if (true.Equals(this.GetProperty(Property.FORCED_PLACEMENT))) {
- this.occupiedArea = CalculateContainerOccupiedArea(layoutContext, grid, true);
- return new LayoutResult(LayoutResult.FULL, this.occupiedArea, this, null);
- }
IRenderer cause = this;
if (!layoutResult.GetCauseOfNothing().IsEmpty()) {
cause = layoutResult.GetCauseOfNothing()[0];
@@ -86,26 +80,20 @@ public override LayoutResult Layout(LayoutContext layoutContext) {
return new LayoutResult(LayoutResult.NOTHING, null, null, this, cause);
}
else {
- if (layoutResult.GetOverflowRenderers().IsEmpty()) {
- ContinuousContainer continuousContainer = this.GetProperty(Property.TREAT_AS_CONTINUOUS_CONTAINER_RESULT
- );
- if (continuousContainer != null) {
- continuousContainer.ReApplyProperties(this);
- }
- this.childRenderers.Clear();
- this.AddAllChildRenderers(layoutResult.GetSplitRenderers());
- this.occupiedArea = CalculateContainerOccupiedArea(layoutContext, grid, true);
- return new LayoutResult(LayoutResult.FULL, this.occupiedArea, this, null);
- }
- else {
- this.occupiedArea = CalculateContainerOccupiedArea(layoutContext, grid, false);
- return new LayoutResult(LayoutResult.PARTIAL, this.occupiedArea, CreateSplitRenderer(layoutResult.GetSplitRenderers
- ()), CreateOverflowRenderer(layoutResult.GetOverflowRenderers()));
- }
+ this.occupiedArea = CalculateContainerOccupiedArea(layoutContext, grid, false);
+ return new LayoutResult(LayoutResult.PARTIAL, this.occupiedArea, CreateSplitRenderer(layoutResult.GetSplitRenderers
+ ()), CreateOverflowRenderer(layoutResult.GetOverflowRenderers()));
}
}
}
+ ///
+ public override void AddChild(IRenderer renderer) {
+ renderer.SetProperty(Property.OVERFLOW_X, OverflowPropertyValue.VISIBLE);
+ renderer.SetProperty(Property.OVERFLOW_Y, OverflowPropertyValue.VISIBLE);
+ base.AddChild(renderer);
+ }
+
private AbstractRenderer CreateSplitRenderer(IList children) {
AbstractRenderer splitRenderer = (AbstractRenderer)GetNextRenderer();
splitRenderer.parent = parent;
@@ -119,6 +107,7 @@ private AbstractRenderer CreateSplitRenderer(IList children) {
}
private AbstractRenderer CreateOverflowRenderer(IList children) {
+ // TODO DEVSIX-8340 - We put the original amount of rows into overflow container.
iText.Layout.Renderer.GridContainerRenderer overflowRenderer = (iText.Layout.Renderer.GridContainerRenderer
)GetNextRenderer();
overflowRenderer.isFirstLayout = false;
@@ -135,29 +124,33 @@ private GridContainerRenderer.GridLayoutResult LayoutGrid(LayoutContext layoutCo
, Grid grid) {
GridContainerRenderer.GridLayoutResult layoutResult = new GridContainerRenderer.GridLayoutResult();
EnsureTemplateValuesFit(grid, actualBBox);
- //TODO DEVSIX-8329 improve forced placement logic, right now if we have a cell which could not be fitted on its
- // area or returns nothing as layout result RootRenderer sets FORCED_PLACEMENT on this class instance.
- // And basically every cell inherits this value and force placed, but we only need to force place cells
- // which were not fitted originally.
foreach (GridCell cell in grid.GetUniqueGridCells(Grid.GridOrder.ROW)) {
- //If cell couldn't fit during cell layout area calculation than we need to put such cell straight to
- //nothing result list
- if (!cell.IsValueFitOnCellArea()) {
- layoutResult.GetOverflowRenderers().Add(cell.GetValue());
- layoutResult.GetCauseOfNothing().Add(cell.GetValue());
- continue;
- }
- //Calculate cell layout context by getting actual x and y on parent layout area for it
+ // Calculate cell layout context by getting actual x and y on parent layout area for it
LayoutContext cellContext = GetCellLayoutContext(layoutContext, actualBBox, cell);
- //We need to check for forced placement here, because otherwise we would infinitely return partial result.
- if (!true.Equals(this.GetProperty(Property.FORCED_PLACEMENT)) && !actualBBox.Contains(cellContext.GetArea
- ().GetBBox())) {
- layoutResult.GetOverflowRenderers().Add(cell.GetValue());
- continue;
- }
IRenderer cellToRender = cell.GetValue();
- cellToRender.SetProperty(Property.FILL_AVAILABLE_AREA, true);
cellToRender.SetProperty(Property.COLLAPSING_MARGINS, false);
+ // Now set the height for the individual items
+ // We know cell height upfront and this way we tell the element what it can occupy
+ Rectangle cellBBox = cellContext.GetArea().GetBBox();
+ if (!cellToRender.HasProperty(Property.HEIGHT)) {
+ Rectangle rectangleWithoutBordersMarginsPaddings = cellBBox.Clone();
+ if (cellToRender is AbstractRenderer) {
+ AbstractRenderer abstractCellRenderer = ((AbstractRenderer)cellToRender);
+ // We subtract margins/borders/paddings because we should take into account that
+ // borders/paddings/margins should also fit into a cell.
+ if (AbstractRenderer.IsBorderBoxSizing(cellToRender)) {
+ abstractCellRenderer.ApplyMargins(rectangleWithoutBordersMarginsPaddings, false);
+ }
+ else {
+ abstractCellRenderer.ApplyMarginsBordersPaddings(rectangleWithoutBordersMarginsPaddings, false);
+ }
+ }
+ cellToRender.SetProperty(Property.HEIGHT, UnitValue.CreatePointValue(rectangleWithoutBordersMarginsPaddings
+ .GetHeight()));
+ }
+ // Adjust cell BBox to the remaining part of the layout bbox
+ // This way we can layout elements partially
+ cellBBox.SetHeight(cellBBox.GetTop() - actualBBox.GetBottom()).SetY(actualBBox.GetY());
LayoutResult cellResult = cellToRender.Layout(cellContext);
if (cellResult.GetStatus() == LayoutResult.NOTHING) {
layoutResult.GetOverflowRenderers().Add(cellToRender);
diff --git a/itext/itext.pdfua/itext/pdfua/checkers/utils/FormCheckUtil.cs b/itext/itext.pdfua/itext/pdfua/checkers/utils/FormCheckUtil.cs
index 6fa395d004..9e53e32269 100644
--- a/itext/itext.pdfua/itext/pdfua/checkers/utils/FormCheckUtil.cs
+++ b/itext/itext.pdfua/itext/pdfua/checkers/utils/FormCheckUtil.cs
@@ -81,9 +81,9 @@ private static PdfDictionary GetInteractiveKidForm(PdfStructElem structElem) {
PdfDictionary @object = structElem.GetPdfObject();
PdfDictionary kids = @object.GetAsDictionary(PdfName.K);
// It's a dictionary in this particular case
- if (kids != null && kids.Get(PdfName.Obj) != null && PdfName.Widget.Equals(kids.GetAsDictionary(PdfName.Obj
- ).GetAsName(PdfName.Subtype))) {
- return kids.GetAsDictionary(PdfName.Obj);
+ if (kids != null && kids.Get(PdfName.Obj) != null && PdfName.Widget.Equals(((PdfDictionary)kids.Get(PdfName
+ .Obj)).GetAsName(PdfName.Subtype))) {
+ return (PdfDictionary)kids.Get(PdfName.Obj);
}
return null;
}
diff --git a/port-hash b/port-hash
index df3fa56b12..b3ef988ed5 100644
--- a/port-hash
+++ b/port-hash
@@ -1 +1 @@
-deb13da0b193ccabcd1964940df4acf69c21df1f
+01634ed53f0c7250cf60680823296606cdafb0e2