@@ -14,6 +14,10 @@ public sealed class Document
1414 private OcrOptions ? _ocrOptions ;
1515 private readonly List < IContent > _contents = [ ] ;
1616
17+ /// <summary>
18+ /// Initializes a new instance of the <see cref="Document"/> class with the specified background color.
19+ /// </summary>
20+ /// <param name="background">The background color for the PDF document.</param>
1721 public Document ( Dye background )
1822 {
1923 _background = background ;
@@ -112,16 +116,34 @@ public Document AddText(
112116 return this ;
113117 }
114118
119+ /// <summary>
120+ /// Adds text to the document with the specified size.
121+ /// </summary>
122+ /// <param name="text">The text to add.</param>
123+ /// <param name="size">The size of the text.</param>
124+ /// <returns>The document instance for chaining.</returns>
115125 public Document AddText ( string text , TextSize size )
116126 {
117127 return AddText ( text , null , size ) ;
118128 }
119129
130+ /// <summary>
131+ /// Adds text to the document with the specified color.
132+ /// </summary>
133+ /// <param name="text">The text to add.</param>
134+ /// <param name="color">The color of the text.</param>
135+ /// <returns>The document instance for chaining.</returns>
120136 public Document AddText ( string text , Dye color )
121137 {
122138 return AddText ( text , color , null ) ;
123139 }
124140
141+ /// <summary>
142+ /// Adds text to the document with the specified alignment.
143+ /// </summary>
144+ /// <param name="text">The text to add.</param>
145+ /// <param name="alignment">The alignment of the text.</param>
146+ /// <returns>The document instance for chaining.</returns>
125147 public Document AddText ( string text , TextAlignment alignment )
126148 {
127149 return AddText ( text , null , null , alignment ) ;
@@ -159,21 +181,47 @@ public Document AddPixelText(
159181 return this ;
160182 }
161183
184+ /// <summary>
185+ /// Adds pixel text with specified text color and size.
186+ /// </summary>
187+ /// <param name="text">The text to render as pixels.</param>
188+ /// <param name="textColor">The color of the text.</param>
189+ /// <param name="size">The size of the pixel text.</param>
190+ /// <returns>The document instance for chaining.</returns>
162191 public Document AddPixelText ( string text , Dye textColor , PixelTextSize size )
163192 {
164193 return AddPixelText ( text , textColor , null , size ) ;
165194 }
166195
196+ /// <summary>
197+ /// Adds pixel text with specified size.
198+ /// </summary>
199+ /// <param name="text">The text to render as pixels.</param>
200+ /// <param name="size">The size of the pixel text.</param>
201+ /// <returns>The document instance for chaining.</returns>
167202 public Document AddPixelText ( string text , PixelTextSize size )
168203 {
169204 return AddPixelText ( text , null , null , size ) ;
170205 }
171206
207+ /// <summary>
208+ /// Adds pixel text with specified text color.
209+ /// </summary>
210+ /// <param name="text">The text to render as pixels.</param>
211+ /// <param name="textColor">The color of the text.</param>
212+ /// <returns>The document instance for chaining.</returns>
172213 public Document AddPixelText ( string text , Dye textColor )
173214 {
174215 return AddPixelText ( text , textColor , null ) ;
175216 }
176217
218+ /// <summary>
219+ /// Adds pixel text with specified text and background colors.
220+ /// </summary>
221+ /// <param name="text">The text to render as pixels.</param>
222+ /// <param name="textColor">The color of the text.</param>
223+ /// <param name="backgroundColor">The background color.</param>
224+ /// <returns>The document instance for chaining.</returns>
177225 public Document AddPixelText ( string text , Dye textColor , Dye backgroundColor )
178226 {
179227 return AddPixelText ( text , textColor , backgroundColor , null ) ;
0 commit comments