@@ -119,7 +119,7 @@ public static void DrawOnDocument(String content, PdfDocument document, int page
119
119
/// Draws a String containing valid SVG to a document, on a given page
120
120
/// number on the provided x and y coordinate.
121
121
/// </summary>
122
- /// <param name="content">the Stream object containing valid SVG content</param>
122
+ /// <param name="content">the String value containing valid SVG content</param>
123
123
/// <param name="document">
124
124
/// the
125
125
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -136,7 +136,7 @@ public static void DrawOnDocument(String content, PdfDocument document, int page
136
136
/// Draws a String containing valid SVG to a document, on a given page
137
137
/// number on the provided x and y coordinate.
138
138
/// </summary>
139
- /// <param name="content">the Stream object containing valid SVG content</param>
139
+ /// <param name="content">the String value containing valid SVG content</param>
140
140
/// <param name="document">
141
141
/// the
142
142
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -156,7 +156,11 @@ public static void DrawOnDocument(String content, PdfDocument document, int page
156
156
/// Draws a Stream containing valid SVG to a document, on a given page
157
157
/// number ate the origni of the page.
158
158
/// </summary>
159
- /// <param name="stream">the Stream object containing valid SVG content</param>
159
+ /// <param name="stream">
160
+ /// the
161
+ /// <see cref="System.IO.Stream">Stream</see>
162
+ /// containing valid SVG content
163
+ /// </param>
160
164
/// <param name="document">
161
165
/// the
162
166
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -171,7 +175,11 @@ public static void DrawOnDocument(Stream stream, PdfDocument document, int pageN
171
175
/// Draws a Stream containing valid SVG to a document, on a given page
172
176
/// number on the provided x and y coordinate.
173
177
/// </summary>
174
- /// <param name="stream">the Stream object containing valid SVG content</param>
178
+ /// <param name="stream">
179
+ /// the
180
+ /// <see cref="System.IO.Stream">Stream</see>
181
+ /// containing valid SVG content
182
+ /// </param>
175
183
/// <param name="document">
176
184
/// the
177
185
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -189,7 +197,11 @@ public static void DrawOnDocument(Stream stream, PdfDocument document, int pageN
189
197
/// Draws a Stream containing valid SVG to a document, on a given page
190
198
/// number on the provided x and y coordinate.
191
199
/// </summary>
192
- /// <param name="stream">the Stream object containing valid SVG content</param>
200
+ /// <param name="stream">
201
+ /// the
202
+ /// <see cref="System.IO.Stream">Stream</see>
203
+ /// containing valid SVG content
204
+ /// </param>
193
205
/// <param name="document">
194
206
/// the
195
207
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -206,7 +218,11 @@ public static void DrawOnDocument(Stream stream, PdfDocument document, int pageN
206
218
/// Draws a Stream containing valid SVG to a document, on a given page
207
219
/// number on the provided x and y coordinate.
208
220
/// </summary>
209
- /// <param name="stream">the Stream object containing valid SVG content</param>
221
+ /// <param name="stream">
222
+ /// the
223
+ /// <see cref="System.IO.Stream">Stream</see>
224
+ /// containing valid SVG content
225
+ /// </param>
210
226
/// <param name="document">
211
227
/// the
212
228
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -509,7 +525,7 @@ public static void CreatePdf(FileInfo svgFile, FileInfo pdfFile) {
509
525
/// <param name="props">
510
526
/// a
511
527
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
512
- /// instance
528
+ /// an instance for extra properties to customize the behavior
513
529
/// </param>
514
530
public static void CreatePdf ( FileInfo svgFile , FileInfo pdfFile , ISvgConverterProperties props ) {
515
531
CreatePdf ( svgFile , pdfFile , props , null ) ;
@@ -567,7 +583,7 @@ public static void CreatePdf(FileInfo svgFile, FileInfo pdfFile, WriterPropertie
567
583
/// <param name="props">
568
584
/// a
569
585
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
570
- /// instance
586
+ /// an instance for extra properties to customize the behavior
571
587
/// </param>
572
588
/// <param name="writerProps">
573
589
/// a
@@ -597,9 +613,13 @@ public static void CreatePdf(FileInfo svgFile, FileInfo pdfFile, ISvgConverterPr
597
613
/// Copies properties from custom ISvgConverterProperties into new SvgConverterProperties.
598
614
/// Since ISvgConverterProperties itself is immutable we have to do it.
599
615
/// </remarks>
600
- /// <param name="props"/>
601
- /// <param name="baseUri"/>
602
- /// <returns/>
616
+ /// <param name="props">
617
+ ///
618
+ /// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
619
+ /// an instance for extra properties to customize the behavior
620
+ /// </param>
621
+ /// <param name="baseUri">the directory of new SvgConverterProperties</param>
622
+ /// <returns>new SvgConverterProperties.</returns>
603
623
private static SvgConverterProperties ConvertToSvgConverterProps ( ISvgConverterProperties props , String baseUri
604
624
) {
605
625
return new SvgConverterProperties ( ) . SetBaseUri ( baseUri ) . SetMediaDeviceDescription ( props . GetMediaDeviceDescription
@@ -627,9 +647,9 @@ public static void CreatePdf(Stream svgStream, Stream pdfDest) {
627
647
/// containing the SVG
628
648
/// </param>
629
649
/// <param name="pdfDest">PDF destination outputStream</param>
630
- /// <param name="writerprops">writerproperties for the pdf document</param>
631
- public static void CreatePdf ( Stream svgStream , Stream pdfDest , WriterProperties writerprops ) {
632
- CreatePdf ( svgStream , pdfDest , null , writerprops ) ;
650
+ /// <param name="writerProps">writer properties for the pdf document</param>
651
+ public static void CreatePdf ( Stream svgStream , Stream pdfDest , WriterProperties writerProps ) {
652
+ CreatePdf ( svgStream , pdfDest , null , writerProps ) ;
633
653
}
634
654
635
655
/// <summary>Create a single page pdf containing the SVG on its page using the default processing and drawing logic
@@ -641,9 +661,9 @@ public static void CreatePdf(Stream svgStream, Stream pdfDest, WriterProperties
641
661
/// </param>
642
662
/// <param name="pdfDest">PDF destination outputStream</param>
643
663
/// <param name="props">
644
- /// Svg
664
+ ///
645
665
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
646
- /// to change default behaviour
666
+ /// an instance for extra properties to customize the behavior
647
667
/// </param>
648
668
public static void CreatePdf ( Stream svgStream , Stream pdfDest , ISvgConverterProperties props ) {
649
669
CreatePdf ( svgStream , pdfDest , props , null ) ;
@@ -656,12 +676,12 @@ public static void CreatePdf(Stream svgStream, Stream pdfDest, ISvgConverterProp
656
676
/// <see cref="System.IO.Stream">Stream</see>
657
677
/// containing the SVG
658
678
/// </param>
679
+ /// <param name="pdfDest">PDF destination outputStream</param>
659
680
/// <param name="props">
660
681
///
661
682
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
662
- /// to change default behaviour
683
+ /// an instance for extra properties to customize the behavior
663
684
/// </param>
664
- /// <param name="pdfDest">PDF destination outputStream</param>
665
685
/// <param name="writerProps">
666
686
///
667
687
/// <see cref="iText.Kernel.Pdf.WriterProperties"/>
@@ -792,7 +812,7 @@ public static PdfFormXObject ConvertToXObject(String content, PdfDocument docume
792
812
/// <param name="props">
793
813
///
794
814
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
795
- /// to customize the behavior
815
+ /// an instance for extra properties to customize the behavior
796
816
/// </param>
797
817
/// <returns>
798
818
/// a
@@ -841,7 +861,7 @@ public static PdfFormXObject ConvertToXObject(String content, PdfDocument docume
841
861
/// <param name="stream">
842
862
/// the
843
863
/// <see cref="System.IO.Stream">Stream</see>
844
- /// object containing valid SVG content
864
+ /// containing valid SVG content
845
865
/// </param>
846
866
/// <param name="document">
847
867
/// the
@@ -851,7 +871,7 @@ public static PdfFormXObject ConvertToXObject(String content, PdfDocument docume
851
871
/// <param name="props">
852
872
///
853
873
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
854
- /// to customize the behavior
874
+ /// an instance for extra properties to customize the behavior
855
875
/// </param>
856
876
/// <returns>
857
877
/// a
@@ -914,7 +934,7 @@ private static PdfFormXObject ConvertToXObject(ISvgProcessorResult processorResu
914
934
/// <param name="stream">
915
935
/// the
916
936
/// <see cref="System.IO.Stream">Stream</see>
917
- /// object containing valid SVG content
937
+ /// containing valid SVG content
918
938
/// </param>
919
939
/// <param name="document">
920
940
/// the
@@ -962,7 +982,11 @@ public static PdfFormXObject ConvertToXObject(Stream stream, PdfDocument documen
962
982
/// using
963
983
/// <see cref="iText.Kernel.Pdf.PdfObject.CopyTo(iText.Kernel.Pdf.PdfDocument)"/>.
964
984
/// </remarks>
965
- /// <param name="stream">the Stream object containing valid SVG content</param>
985
+ /// <param name="stream">
986
+ /// the
987
+ /// <see cref="System.IO.Stream">Stream</see>
988
+ /// containing valid SVG content
989
+ /// </param>
966
990
/// <param name="document">
967
991
/// the
968
992
/// <see cref="iText.Kernel.Pdf.PdfDocument"/>
@@ -971,8 +995,7 @@ public static PdfFormXObject ConvertToXObject(Stream stream, PdfDocument documen
971
995
/// <returns>
972
996
/// a
973
997
/// <see cref="iText.Layout.Element.Image">Image</see>
974
- /// containing the PDF instructions
975
- /// corresponding to the passed SVG content
998
+ /// containing the PDF instructions corresponding to the passed SVG content
976
999
/// </returns>
977
1000
public static Image ConvertToImage ( Stream stream , PdfDocument document ) {
978
1001
return new Image ( ConvertToXObject ( stream , document ) ) ;
@@ -1012,7 +1035,7 @@ public static Image ConvertToImage(Stream stream, PdfDocument document) {
1012
1035
/// <param name="stream">
1013
1036
/// the
1014
1037
/// <see cref="System.IO.Stream">Stream</see>
1015
- /// object containing valid SVG content
1038
+ /// containing valid SVG content
1016
1039
/// </param>
1017
1040
/// <param name="document">
1018
1041
/// the
@@ -1022,13 +1045,12 @@ public static Image ConvertToImage(Stream stream, PdfDocument document) {
1022
1045
/// <param name="props">
1023
1046
///
1024
1047
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
1025
- /// to customize the behavior
1048
+ /// an instance for extra properties to customize the behavior
1026
1049
/// </param>
1027
1050
/// <returns>
1028
1051
/// a
1029
1052
/// <see cref="iText.Layout.Element.Image">Image</see>
1030
- /// containing the PDF instructions
1031
- /// corresponding to the passed SVG content
1053
+ /// containing the PDF instructions corresponding to the passed SVG content
1032
1054
/// </returns>
1033
1055
public static Image ConvertToImage ( Stream stream , PdfDocument document , ISvgConverterProperties props ) {
1034
1056
return new Image ( ConvertToXObject ( stream , document , props ) ) ;
@@ -1162,7 +1184,11 @@ private static PdfFormXObject ConvertToXObject(ISvgNodeRenderer topSvgRenderer,
1162
1184
/// The properties used by the processor are the
1163
1185
/// <see cref="iText.Svg.Processors.Impl.SvgConverterProperties"/>
1164
1186
/// </remarks>
1165
- /// <param name="svgStream">Input stream containing the SVG to parse and process</param>
1187
+ /// <param name="svgStream">
1188
+ ///
1189
+ /// <see cref="System.IO.Stream">Stream</see>
1190
+ /// containing the SVG to parse and process
1191
+ /// </param>
1166
1192
/// <returns>
1167
1193
///
1168
1194
/// <see cref="iText.Svg.Processors.ISvgProcessorResult"/>
@@ -1185,7 +1211,7 @@ public static ISvgProcessorResult ParseAndProcess(Stream svgStream) {
1185
1211
/// <param name="props">
1186
1212
///
1187
1213
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
1188
- /// used by the processor
1214
+ /// an instance for extra properties to customize the behavior
1189
1215
/// </param>
1190
1216
/// <returns>
1191
1217
///
@@ -1234,7 +1260,7 @@ public static ISvgProcessorResult Process(INode root) {
1234
1260
/// <param name="props">
1235
1261
///
1236
1262
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
1237
- /// to customize the behavior
1263
+ /// an instance for extra properties to customize the behavior
1238
1264
/// </param>
1239
1265
/// <returns>a node renderer tree corresponding to the passed XML DOM tree</returns>
1240
1266
public static ISvgProcessorResult Process ( INode root , ISvgConverterProperties props ) {
@@ -1266,7 +1292,7 @@ public static INode Parse(String content) {
1266
1292
/// <param name="stream">
1267
1293
/// the
1268
1294
/// <see cref="System.IO.Stream">Stream</see>
1269
- /// object containing valid SVG content
1295
+ /// containing valid SVG content
1270
1296
/// </param>
1271
1297
/// <returns>an XML DOM tree corresponding to the passed String input</returns>
1272
1298
public static INode Parse ( Stream stream ) {
@@ -1292,12 +1318,12 @@ public static INode Parse(Stream stream) {
1292
1318
/// <param name="stream">
1293
1319
/// the
1294
1320
/// <see cref="System.IO.Stream">Stream</see>
1295
- /// object containing valid SVG content
1321
+ /// containing valid SVG content
1296
1322
/// </param>
1297
1323
/// <param name="props">
1298
1324
///
1299
1325
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
1300
- /// to customize the behavior
1326
+ /// an instance for extra properties to customize the behavior
1301
1327
/// </param>
1302
1328
/// <returns>an XML DOM tree corresponding to the passed String input</returns>
1303
1329
public static INode Parse ( Stream stream , ISvgConverterProperties props ) {
@@ -1394,7 +1420,11 @@ internal static ResourceResolver GetResourceResolver(ISvgProcessorResult process
1394
1420
/// Tries to extract charset from
1395
1421
/// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>.
1396
1422
/// </summary>
1397
- /// <param name="props">converter properties</param>
1423
+ /// <param name="props">
1424
+ ///
1425
+ /// <see cref="iText.Svg.Processors.ISvgConverterProperties"/>
1426
+ /// an instance for extra properties to customize the behavior
1427
+ /// </param>
1398
1428
/// <returns>charset | null</returns>
1399
1429
private static String TryToExtractCharset ( ISvgConverterProperties props ) {
1400
1430
return props != null ? props . GetCharset ( ) : null ;
0 commit comments