Skip to content

Commit 2156f88

Browse files
committed
985481-1: Resolved given feedback.
1 parent 3bd0281 commit 2156f88

File tree

5 files changed

+35
-64
lines changed

5 files changed

+35
-64
lines changed

Document-Processing/PDF/PDF-Library/NET/PdfGrid.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ The following code sample illustrates how to create a simple table from a data s
2929

3030
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Table/PdfGrid/Create-table-from-data-source-in-a-PDF/.NET/Create-table-from-data-source-in-a-PDF/Program.cs" %}
3131

32-
using Syncfusion.Drawing;
3332
using Syncfusion.Pdf;
3433
using Syncfusion.Pdf.Grid;
35-
using System.Data;
3634

3735
//Create a new PDF document.
3836
PdfDocument doc = new PdfDocument();
@@ -63,10 +61,8 @@ doc.Close(true);
6361

6462
{% highlight c# tabtitle="C# [Windows-specific]" %}
6563

66-
using System.Drawing;
6764
using Syncfusion.Pdf;
6865
using Syncfusion.Pdf.Grid;
69-
using System.Data;
7066

7167
//Create a new PDF document.
7268
PdfDocument doc = new PdfDocument();
@@ -97,10 +93,8 @@ doc.Close(true);
9793

9894
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
9995

100-
Imports Syncfusion.Drawing
10196
Imports Syncfusion.Pdf
10297
Imports Syncfusion.Pdf.Grid
103-
Imports System.Data
10498

10599
'Create a new PDF document.
106100
Dim doc As PdfDocument = New PdfDocument()
@@ -169,7 +163,7 @@ pdfGridRow.Cells[0].Value = "E01";
169163
pdfGridRow.Cells[1].Value = "Clay";
170164
pdfGridRow.Cells[2].Value = "$10,000";
171165
//Draw the PdfGrid.
172-
pdfGrid.Draw(pdfPage, Syncfusion.Drawing.PointF.Empty);
166+
pdfGrid.Draw(pdfPage, PointF.Empty);
173167

174168
//Save the PDF document.
175169
pdfDocument.Save("Output.pdf");
@@ -266,7 +260,6 @@ Refer to the following code sample to create a table using [PdfGrid](https://hel
266260
using Syncfusion.Pdf;
267261
using Syncfusion.Pdf.Graphics;
268262
using Syncfusion.Pdf.Grid;
269-
using Syncfusion.Pdf.Parsing;
270263

271264
//Create a new PDF document.
272265
PdfDocument doc = new PdfDocument();
@@ -302,7 +295,6 @@ doc.Close(true);
302295
using Syncfusion.Pdf;
303296
using Syncfusion.Pdf.Graphics;
304297
using Syncfusion.Pdf.Grid;
305-
using Syncfusion.Pdf.Parsing;
306298

307299
//Create a new PDF document.
308300
PdfDocument doc = new PdfDocument();
@@ -338,7 +330,6 @@ doc.Close(true);
338330
Imports Syncfusion.Pdf
339331
Imports Syncfusion.Pdf.Graphics
340332
Imports Syncfusion.Pdf.Grid
341-
Imports Syncfusion.Pdf.Parsing
342333

343334
'Create a new PDF document.
344335
Dim doc As New PdfDocument()
@@ -841,7 +832,6 @@ using Syncfusion.Drawing;
841832
using Syncfusion.Pdf;
842833
using Syncfusion.Pdf.Graphics;
843834
using Syncfusion.Pdf.Grid;
844-
using System.Data;
845835

846836
//Create a new PDF document.
847837
PdfDocument pdfDocument = new PdfDocument();
@@ -887,7 +877,6 @@ using System.Drawing;
887877
using Syncfusion.Pdf;
888878
using Syncfusion.Pdf.Graphics;
889879
using Syncfusion.Pdf.Grid;
890-
using System.Data;
891880

892881
//Create a new PDF document.
893882
PdfDocument pdfDocument = new PdfDocument();
@@ -932,7 +921,6 @@ Imports System.Drawing
932921
Imports Syncfusion.Pdf
933922
Imports Syncfusion.Pdf.Graphics
934923
Imports Syncfusion.Pdf.Grid
935-
Imports System.Data
936924

937925
'Create a new PDF document.
938926
Dim pdfDocument As New PdfDocument()

Document-Processing/PDF/PDF-Library/NET/PdfLightTable.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ The following code sample illustrates how to create a simple table from a data s
2727
using Syncfusion.Drawing;
2828
using Syncfusion.Pdf;
2929
using Syncfusion.Pdf.Tables;
30-
using System.Data;
3130

3231
//Create a new PDF document.
3332
PdfDocument doc = new PdfDocument();
@@ -45,7 +44,7 @@ IEnumerable<object> table = data;
4544
//Assign data source.
4645
pdfLightTable.DataSource = table;
4746
//Draw PdfLightTable.
48-
pdfLightTable.Draw(page, new Syncfusion.Drawing.PointF(0, 0));
47+
pdfLightTable.Draw(page, new PointF(0, 0));
4948

5049
//Save the PDF document.
5150
doc.Save("Output.pdf");
@@ -59,7 +58,6 @@ doc.Close(true);
5958
using Syncfusion.Drawing;
6059
using Syncfusion.Pdf;
6160
using Syncfusion.Pdf.Tables;
62-
using System.Data;
6361

6462
//Create a new PDF document.
6563
PdfDocument doc = new PdfDocument();
@@ -93,7 +91,6 @@ doc.Close(true);
9391
Imports Syncfusion.Drawing
9492
Imports Syncfusion.Pdf
9593
Imports Syncfusion.Pdf.Tables
96-
Imports System.Data
9794

9895
'Create a new PDF document.
9996
Dim doc As New PdfDocument()
@@ -139,7 +136,6 @@ The following code illustrates how to add the data directly into the [PdfLightTa
139136
using Syncfusion.Pdf.Graphics;
140137
using Syncfusion.Pdf.Tables;
141138
using Syncfusion.Pdf;
142-
using System.Reflection.Metadata;
143139

144140
//Create a new PDF document.
145141
PdfDocument doc = new PdfDocument();
@@ -174,7 +170,6 @@ doc.Close(true);
174170
using Syncfusion.Pdf.Graphics;
175171
using Syncfusion.Pdf.Tables;
176172
using Syncfusion.Pdf;
177-
using System.Reflection.Metadata;
178173

179174
//Create a new PDF document.
180175
PdfDocument doc = new PdfDocument();
@@ -209,7 +204,6 @@ doc.Close(true);
209204
Imports Syncfusion.Pdf.Graphics
210205
Imports Syncfusion.Pdf.Tables
211206
Imports Syncfusion.Pdf
212-
Imports System.Reflection.Metadata
213207

214208
'Create a new PDF document.
215209
Dim doc As New PdfDocument()
@@ -255,7 +249,6 @@ using Syncfusion.Pdf.Graphics;
255249
using Syncfusion.Pdf.Parsing;
256250
using Syncfusion.Pdf.Tables;
257251
using Syncfusion.Pdf;
258-
using System.Reflection.Metadata;
259252

260253
//Load the PDF document.
261254
PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf");
@@ -291,7 +284,6 @@ using Syncfusion.Pdf.Graphics;
291284
using Syncfusion.Pdf.Parsing;
292285
using Syncfusion.Pdf.Tables;
293286
using Syncfusion.Pdf;
294-
using System.Reflection.Metadata;
295287

296288
//Load a PDF document.
297289
PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf");
@@ -328,7 +320,6 @@ Imports Syncfusion.Pdf.Graphics
328320
Imports Syncfusion.Pdf.Parsing
329321
Imports Syncfusion.Pdf.Tables
330322
Imports Syncfusion.Pdf
331-
Imports System.Reflection.Metadata
332323

333324
'Load a PDF document.
334325
Dim doc As New PdfLoadedDocument("input.pdf")
@@ -375,8 +366,6 @@ The following code sample illustrates how to customize the cell properties in ``
375366
using Syncfusion.Pdf;
376367
using Syncfusion.Pdf.Graphics;
377368
using Syncfusion.Pdf.Tables;
378-
using System.Data.Common;
379-
using System.Reflection.Metadata;
380369

381370
//Create a new PDF document.
382371
PdfDocument doc = new PdfDocument();
@@ -423,8 +412,6 @@ doc.Close(true);
423412
using Syncfusion.Pdf;
424413
using Syncfusion.Pdf.Graphics;
425414
using Syncfusion.Pdf.Tables;
426-
using System.Data.Common;
427-
using System.Reflection.Metadata;
428415

429416
//Create a new PDF document.
430417
PdfDocument doc = new PdfDocument();
@@ -472,8 +459,6 @@ doc.Close(true);
472459
Imports Syncfusion.Pdf.Graphics
473460
Imports System.Data.Common
474461
Imports Syncfusion.Pdf.Tables
475-
Imports Syncfusion.Pdf
476-
Imports System.Reflection.Metadata
477462

478463
'Create a new PDF document.
479464
Dim doc As New PdfDocument()
@@ -700,7 +685,6 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
700685

701686
using Syncfusion.Pdf.Tables;
702687
using Syncfusion.Pdf;
703-
using System.Reflection.Metadata;
704688

705689
//Create a new PDF document.
706690
PdfDocument doc = new PdfDocument();
@@ -760,7 +744,6 @@ private void pdfLightTable_BeginRowLayout(object sender, BeginRowLayoutEventArgs
760744

761745
using Syncfusion.Pdf.Tables;
762746
using Syncfusion.Pdf;
763-
using System.Reflection.Metadata;
764747

765748
//Create a new PDF document.
766749
PdfDocument doc = new PdfDocument();
@@ -824,7 +807,6 @@ private void pdfLightTable_BeginRowLayout(object sender, BeginRowLayoutEventArgs
824807

825808
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
826809

827-
Imports System.Reflection.Metadata
828810
Imports Syncfusion.Pdf.Tables
829811
Imports Syncfusion.Pdf
830812

@@ -894,7 +876,6 @@ The following code sample illustrates how to customize the column in [PdfLightTa
894876
using Syncfusion.Pdf;
895877
using Syncfusion.Pdf.Graphics;
896878
using Syncfusion.Pdf.Tables;
897-
using System.Data.Common;
898879

899880
//Create a new PDF document.
900881
PdfDocument doc = new PdfDocument();
@@ -940,7 +921,6 @@ doc.Close(true);
940921
using Syncfusion.Pdf;
941922
using Syncfusion.Pdf.Graphics;
942923
using Syncfusion.Pdf.Tables;
943-
using System.Data.Common;
944924

945925
//Create a new PDF document.
946926
PdfDocument doc = new PdfDocument();
@@ -986,7 +966,6 @@ doc.Close(true);
986966
Imports Syncfusion.Pdf
987967
Imports Syncfusion.Pdf.Graphics
988968
Imports Syncfusion.Pdf.Tables
989-
Imports System.Data.Common
990969

991970
'Create a new PDF document.
992971
Dim doc As New PdfDocument()

0 commit comments

Comments
 (0)