Skip to content

Commit 98361c4

Browse files
Samuel HuylebroeckiText-CI
authored andcommitted
Documentation and binary compatibility loose ends
DEVSIX-2864 Autoported commit. Original commit hash: [70c08bd6a]
1 parent 5721ecc commit 98361c4

File tree

6 files changed

+41
-6
lines changed

6 files changed

+41
-6
lines changed

itext/itext.kernel/itext/kernel/pdf/canvas/PdfCanvas.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,7 @@ public virtual iText.Kernel.Pdf.Canvas.PdfCanvas ClosePathFillStroke() {
11111111
[System.ObsoleteAttribute(@"in favour of endPath(), which does exactly the same thing but is better named"
11121112
)]
11131113
public virtual iText.Kernel.Pdf.Canvas.PdfCanvas NewPath() {
1114-
contentStream.GetOutputStream().WriteBytes(n);
1115-
return this;
1114+
return this.EndPath();
11161115
}
11171116

11181117
/// <summary>Ends the path without filling or stroking it.</summary>

itext/itext.layout/itext/layout/borders/Border.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,11 @@ protected internal virtual void DrawDiscontinuousBorders(PdfCanvas canvas, Recta
672672
canvas.Stroke().RestoreState();
673673
}
674674

675-
/// <summary>Calculate adjusted starting points for non-continuous borders, given two opposing points (A and B) that define the bounding rectangle
675+
/// <summary>Calculate adjusted starting points for discontinuous borders, given two opposing points (A and B) that define the bounding rectangle
676676
/// </summary>
677-
/// <param name="x1">x-ordinate of point A</param>
677+
/// <param name="x1">x-coordinate of point A</param>
678678
/// <param name="y1">y-ordinate of point A</param>
679-
/// <param name="x2">x-ordinate of point B</param>
679+
/// <param name="x2">x-coordinate of point B</param>
680680
/// <param name="y2">y-ordinate of point B</param>
681681
/// <param name="defaultSide">default side of the border used to determine the side given by points A and B</param>
682682
/// <returns>float[] containing the adjusted starting points in the form {x1,y1,x2,y2}</returns>

itext/itext.layout/itext/layout/borders/DashedBorder.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,17 @@ public override void Draw(PdfCanvas canvas, float x1, float y1, float x2, float
143143
DrawDiscontinuousBorders(canvas, boundingRectangle, horizontalRadii, verticalRadii, defaultSide, borderWidthBefore
144144
, borderWidthAfter);
145145
}
146+
147+
/// <summary>Adjusts the size of the gap between dots</summary>
148+
/// <param name="distance">
149+
/// the
150+
/// <see cref="Border">border</see>
151+
/// length
152+
/// </param>
153+
/// <param name="initialGap">the initial size of the gap</param>
154+
/// <returns>the adjusted size of the gap</returns>
155+
protected internal override float GetDotsGap(double distance, float initialGap) {
156+
return base.GetDotsGap(distance, initialGap);
157+
}
146158
}
147159
}

itext/itext.layout/itext/layout/borders/DottedBorder.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,17 @@ public override void DrawCellBorder(PdfCanvas canvas, float x1, float y1, float
146146
canvas.SetLineDash(width, adjustedGap, width + adjustedGap / 2).MoveTo(x1, y1).LineTo(x2, y2).Stroke().RestoreState
147147
();
148148
}
149+
150+
/// <summary>Adjusts the size of the gap between dots</summary>
151+
/// <param name="distance">
152+
/// the
153+
/// <see cref="Border">border</see>
154+
/// length
155+
/// </param>
156+
/// <param name="initialGap">the initial size of the gap</param>
157+
/// <returns>the adjusted size of the gap</returns>
158+
protected internal override float GetDotsGap(double distance, float initialGap) {
159+
return base.GetDotsGap(distance, initialGap);
160+
}
149161
}
150162
}

itext/itext.layout/itext/layout/borders/RoundDotsBorder.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,17 @@ public override void Draw(PdfCanvas canvas, float x1, float y1, float x2, float
145145
DrawDiscontinuousBorders(canvas, boundingRectangle, horizontalRadii, verticalRadii, defaultSide, borderWidthBefore
146146
, borderWidthAfter);
147147
}
148+
149+
/// <summary>Adjusts the size of the gap between dots</summary>
150+
/// <param name="distance">
151+
/// the
152+
/// <see cref="Border">border</see>
153+
/// length
154+
/// </param>
155+
/// <param name="initialGap">the initial size of the gap</param>
156+
/// <returns>the adjusted size of the gap</returns>
157+
protected internal override float GetDotsGap(double distance, float initialGap) {
158+
return base.GetDotsGap(distance, initialGap);
159+
}
148160
}
149161
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2373c33e9f6c5324ba0c1ad3171fc1acf92a7e4d
1+
70c08bd6ad90e2c19c70c35dab017d76e1b4a3dd

0 commit comments

Comments
 (0)