From daf5b2650317af0a4e7024bbefc20f49a1560964 Mon Sep 17 00:00:00 2001 From: Vitali Prudnikovich Date: Fri, 15 Nov 2024 12:01:58 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=EF=BB=BFFix=20table=20inside=20flex=20cont?= =?UTF-8?q?ainer=20inside=20flex=20container=20split=20up?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DEVSIX-8741 Autoported commit. Original commit hash: [5d30e208a] --- .../layout/element/FlexContainerSplitTest.cs | 24 ++++++++++++++++++ .../tableInFlexOnSplitTest2.pdf | Bin 0 -> 4063 bytes .../layout/renderer/FlexContainerRenderer.cs | 4 +-- port-hash | 2 +- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 itext.tests/itext.layout.tests/resources/itext/layout/FlexContainerSplitTest/tableInFlexOnSplitTest2.pdf diff --git a/itext.tests/itext.layout.tests/itext/layout/element/FlexContainerSplitTest.cs b/itext.tests/itext.layout.tests/itext/layout/element/FlexContainerSplitTest.cs index 05a6ca5fb0..13041305e6 100644 --- a/itext.tests/itext.layout.tests/itext/layout/element/FlexContainerSplitTest.cs +++ b/itext.tests/itext.layout.tests/itext/layout/element/FlexContainerSplitTest.cs @@ -332,6 +332,30 @@ public virtual void TableInFlexOnSplitTest() { , "diff")); } + [NUnit.Framework.Test] + public virtual void TableInFlexOnSplit2Test() { + String outFileName = DESTINATION_FOLDER + "tableInFlexOnSplit2Test.pdf"; + String cmpFileName = SOURCE_FOLDER + "tableInFlexOnSplitTest2.pdf"; + using (PdfDocument pdfDocument = new PdfDocument(new PdfWriter(outFileName))) { + Document document = new Document(pdfDocument); + pdfDocument.SetDefaultPageSize(PageSize.A5); + Div flexContainer = new FlexContainer(); + flexContainer.SetBackgroundColor(ColorConstants.LIGHT_GRAY); + Table table = new Table(UnitValue.CreatePercentArray(new float[] { 10, 10, 10 })); + for (int i = 1; i <= 3; i++) { + table.AddHeaderCell("Header" + i); + } + for (int i = 1; i <= 81; i++) { + table.AddCell("Cell" + i); + } + flexContainer.Add(table); + Paragraph p = new Paragraph("Some text").SetBorder(new SolidBorder(1)).SetMargin(0); + document.Add(new FlexContainer().Add(flexContainer).Add(table)); + } + NUnit.Framework.Assert.IsNull(new CompareTool().CompareByContent(outFileName, cmpFileName, DESTINATION_FOLDER + , "diff")); + } + private Div CreateDefaultFlexContainer() { Div flexContainer = new FlexContainer(); flexContainer.SetBorder(new SolidBorder(2)); diff --git a/itext.tests/itext.layout.tests/resources/itext/layout/FlexContainerSplitTest/tableInFlexOnSplitTest2.pdf b/itext.tests/itext.layout.tests/resources/itext/layout/FlexContainerSplitTest/tableInFlexOnSplitTest2.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a6aa13cb2681dca60e3db22be753aba87d0f1b8b GIT binary patch literal 4063 zcmc&%dpMM78!weD%SKUbmca-`Gw&RXDHMYoGp499mYu^pnwS|oGtQ?D&edWZN}<@K z#Hv=527MvyC^R~bQ*0zn5-BA)UJAW3>+#fqCN z9&~7{L!9+Djmk4aKABdfbo_YKInKQbvwU6q`>nnfN?G?`<+4bs6F1I(- zs!Y2o#KZg5OvO5>a6Eg6k}aP8RFBetlg$DWo!rXBBXQB&-6^(CrZpESYT}}G2DU&8 zu@#o|pnaSBGtC4RURQX=I%cjbQgP(<>$Ur;+(Tu>Em5!PYsurKZl_)s(eGE3KV?u7 zSyh8&bW-T3RYvt}`$jQF`+1P>4;j_dlcp?ERj&@yJf~lA>KHLjO-h#)xk_Rq&lR_-$NCIi6ZGcq&t^SslA_~XrLmDEWae>y@BHzx zNur*lqBnmNcxp~czl$2i(ZX-vkrLuvB{7jDnXHf8RIE7egMNXaS7(#l>h2=f?(N+= zBPM8_p`@zU_a3vQk^Cyzqa&eRgU^C zei^g>qcnfpcoln8rLWS@y>IN=ca2f6mHW=$#KoQtv5Kj;UR|I(aswSBo$UF*o__a1 zB|!5bs&wey2lmqwpEYhosmGoHHnNQCTI59B5M^kmQRP)%{B?@e4!$<5e-vZv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xBCetHOM$}B>jV6J$!7K<) zFE!rmH7b7Y( zY|3{OHtBUNTV7)|v3e$^Y0p2C8Ml~6Uy@m#TmRE!1{O)kvz)(BE9TRlKow8}x&Dip zk6!FdfG!jQ7MEiO-8hWxwxW*qv6d_cqRskLow+%6o4|f05Lcu5`-j{fu}N=C?vyzhR335Ogsi;&@dKQ za}bSUS}-lJ7(9~-Fi~iL!NdVn91}@pVi^o`ss)l}L8DWx|NjhrL^yGnT$ns3NC*;_ wD}c#!iG Date: Tue, 19 Nov 2024 14:41:58 +0300 Subject: [PATCH 2/3] Update samples links in README.md after 9.0.0 release DEVSIX-8520 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63cb398705..536c23b4cb 100644 --- a/README.md +++ b/README.md @@ -103,8 +103,9 @@ results. | **PDF/UA, PDF/A** | | | Create PDF/UA document | [C#](https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/pdfua/PdfUA.cs), [PDF](https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/cmpfiles/sandbox/pdfua/cmp_pdf_ua.pdf) | | Create PDF/A-3 document | [C#](https://github.com/itext/i7ns-samples/blob/master/itext/itext.samples/itext/samples/sandbox/pdfa/PdfA3.cs) | -| Create PDF/A-4 document | [C#](https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/pdfa/PdfA4.cs) | -| Create Wtpdf document | [C#](https://github.com/itext/i7ns-samples/blob/develop/itext/itext.samples/itext/samples/sandbox/pdfua/Wtpdf.cs) | +| Create PDF/A-4 document | [C#](https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/pdfa/PdfA4.cs) | +| Create WTPDF document | [C#](https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/pdfua/Wtpdf.cs) | +| Create ZUGFeRD/Factur-X document | [C#](https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/itext/samples/sandbox/zugferd/BasicSample.cs), [PDF](https://github.com/itext/itext-publications-samples-dotnet/blob/master/itext/itext.samples/cmpfiles/sandbox/zugferd/cmp_invoice_with_zugferd.pdf)| |
| | | **FIPS** | | | Enable FIPS | [C#](https://kb.itextpdf.com/home/it7kb/releases/release-itext-core-8-0-0/breaking-changes-for-itext-core-8-0-0/bouncy-castle-changes) | From bf9efb39b592d70dca06dd0b9fc401fd00e7f5e2 Mon Sep 17 00:00:00 2001 From: iText Software Date: Tue, 19 Nov 2024 12:00:14 +0000 Subject: [PATCH 3/3] Update port-hash Enable japicmp after 9.0.0 release DEVSIX-8520 Autoported commit. Original commit hash: [1ad4f3a48] Manual files: README.md pom.xml --- port-hash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port-hash b/port-hash index 7b0af16248..f2c325ab1a 100644 --- a/port-hash +++ b/port-hash @@ -1 +1 @@ -ddd2a5e969055140a28b56c080e2169a66df7766 +1ad4f3a48de8884b72541d6afbfc5af196327728 \ No newline at end of file