Skip to content

Commit

Permalink
Merge branch 'develop' into devsecops
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-ivanov committed Nov 20, 2024
2 parents 1f3cae0 + bf9efb3 commit 5b458ed
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)|
| <br> | |
| **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) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ private void FillSplitOverflowRenderersForPartialResult(AbstractRenderer splitRe
overflowRenderer.AddChildRenderer(childResult.GetOverflowRenderer());
}
// Count the height allowed for the items after the one which was partially layouted
maxHeightInLine = Math.Max(maxHeightInLine, itemInfo.GetRectangle().GetY() + itemInfo.GetRenderer().GetOccupiedAreaBBox
().GetHeight());
maxHeightInLine = Math.Max(maxHeightInLine, itemInfo.GetRectangle().GetY() + childResult.GetOccupiedArea()
.GetBBox().GetHeight());
}
else {
if (metChildRendererInLine) {
Expand Down
2 changes: 1 addition & 1 deletion port-hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5309178a5193a7909c6a53f405e526a80b29540b
1ad4f3a48de8884b72541d6afbfc5af196327728

0 comments on commit 5b458ed

Please sign in to comment.