@@ -1813,9 +1813,20 @@ public virtual iText.Kernel.Pdf.Canvas.PdfCanvas AddXObject(PdfXObject xObject,
1813
1813
/// Adds
1814
1814
/// <c>PdfXObject</c>
1815
1815
/// to specified rectangle on canvas.
1816
+ /// Do note that using this method of adding an XObject <b>will scale</b> the XObject using the width and the height
1817
+ /// of the provided Rectangle. If you don't wish to scale the XObject, use
1818
+ /// <see cref="AddXObject(iText.Kernel.Pdf.Xobject.PdfXObject, float, float)"/>
1819
+ /// ,
1820
+ /// <see cref="AddXObject(iText.Kernel.Pdf.Xobject.PdfXObject, float, float, float)"/>
1821
+ /// ,
1822
+ /// <see cref="AddXObject(iText.Kernel.Pdf.Xobject.PdfXObject, float, float, float, bool)"/>
1823
+ /// ,
1824
+ /// or
1825
+ /// <see cref="AddXObject(iText.Kernel.Pdf.Xobject.PdfXObject, float, float, float, float, float, float)"/>
1826
+ /// .
1816
1827
/// </summary>
1817
- /// <param name="xObject"/ >
1818
- /// <param name="rect"/ >
1828
+ /// <param name="xObject">the XObject to add</param >
1829
+ /// <param name="rect">rectangle containing x and y coordinates and scaling information</param >
1819
1830
/// <returns>current canvas.</returns>
1820
1831
public virtual iText . Kernel . Pdf . Canvas . PdfCanvas AddXObject ( PdfXObject xObject , iText . Kernel . Geom . Rectangle
1821
1832
rect ) {
@@ -2123,10 +2134,10 @@ private iText.Kernel.Pdf.Canvas.PdfCanvas AddForm(PdfFormXObject form, float x,
2123
2134
/// <summary>
2124
2135
/// Adds
2125
2136
/// <c>PdfFormXObject</c>
2126
- /// to specified rectangle on canvas.
2137
+ /// to specified rectangle on canvas and scale it using the rectangle's width and height .
2127
2138
/// </summary>
2128
- /// <param name="form"/ >
2129
- /// <param name="rect"/ >
2139
+ /// <param name="form">PdfFormXObject to add</param >
2140
+ /// <param name="rect">rectangle containing x and y coordinates and scaling information</param >
2130
2141
/// <returns>current canvas.</returns>
2131
2142
private iText . Kernel . Pdf . Canvas . PdfCanvas AddForm ( PdfFormXObject form , iText . Kernel . Geom . Rectangle rect ) {
2132
2143
return AddForm ( form , rect . GetWidth ( ) , 0 , 0 , rect . GetHeight ( ) , rect . GetX ( ) , rect . GetY ( ) ) ;
@@ -2227,10 +2238,10 @@ private iText.Kernel.Pdf.Canvas.PdfCanvas AddImage(PdfImageXObject image, float
2227
2238
/// <summary>
2228
2239
/// Adds
2229
2240
/// <c>PdfImageXObject</c>
2230
- /// to specified rectangle on canvas.
2241
+ /// to specified rectangle on canvas and scale it using the rectangle's width and height .
2231
2242
/// </summary>
2232
- /// <param name="image"/ >
2233
- /// <param name="rect"/ >
2243
+ /// <param name="image">PdfImageXObject to add</param >
2244
+ /// <param name="rect">rectangle containing x and y coordinates and scaling information</param >
2234
2245
/// <returns>current canvas</returns>
2235
2246
private iText . Kernel . Pdf . Canvas . PdfCanvas AddImage ( PdfImageXObject image , iText . Kernel . Geom . Rectangle rect
2236
2247
) {
0 commit comments