@@ -88,6 +88,10 @@ document.Close(true);
8888
8989{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
9090
91+ Imports Syncfusion.Pdf
92+ Imports Syncfusion.Pdf.Graphics
93+ Imports System.Drawing
94+
9195'Create PDF document.
9296Dim document As New PdfDocument()
9397'Add the page.
@@ -196,6 +200,11 @@ loadedDocument.Close(true);
196200
197201{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
198202
203+ Imports Syncfusion.Pdf
204+ Imports Syncfusion.Pdf.Graphics
205+ Imports Syncfusion.Pdf.Parsing
206+ Imports System.Drawing
207+
199208'Load the existing PDF document.
200209Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
201210'Get first page from document
@@ -236,6 +245,11 @@ Essential<sup>®</sup> PDF allows the users to add different types of [Annota
236245
237246{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Adding-annotation-to-layer-in-the-PDF-document/.NET/Adding-annotation-to-layer-in-the-PDF-document/Program.cs " %}
238247
248+ using Syncfusion.Drawing;
249+ using Syncfusion.Pdf;
250+ using Syncfusion.Pdf.Graphics;
251+ using Syncfusion.Pdf.Interactive;
252+
239253//Create new PDF document
240254PdfDocument document = new PdfDocument();
241255//Add page
@@ -265,6 +279,11 @@ document.Close(true);
265279
266280{% highlight c# tabtitle="C# [ Windows-specific] " %}
267281
282+ using System.Drawing;
283+ using Syncfusion.Pdf;
284+ using Syncfusion.Pdf.Graphics;
285+ using Syncfusion.Pdf.Interactive;
286+
268287//Create new PDF document
269288PdfDocument document = new PdfDocument();
270289//Add page
@@ -294,6 +313,11 @@ document.Close(true);
294313
295314{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
296315
316+ Imports Syncfusion.Pdf
317+ Imports Syncfusion.Pdf.Graphics
318+ Imports Syncfusion.Pdf.Interactive
319+ Imports System.Drawing
320+
297321'Create new PDF document
298322Dim document As New PdfDocument()
299323'Add page
@@ -331,6 +355,12 @@ The following code illustrates how to add annotation to the layers in an existin
331355
332356{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-annotation-to-the-layer-in-an-existing-PDF-document/.NET/Add-annotation-to-the-layer-in-an-existing-PDF-document/Program.cs " %}
333357
358+ using Syncfusion.Drawing;
359+ using Syncfusion.Pdf;
360+ using Syncfusion.Pdf.Graphics;
361+ using Syncfusion.Pdf.Interactive;
362+ using Syncfusion.Pdf.Parsing;
363+
334364//Load the PDF document
335365PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
336366//Gets the first page from the document
@@ -360,6 +390,12 @@ loadedDocument.Close(true);
360390
361391{% highlight c# tabtitle="C# [ Windows-specific] " %}
362392
393+ using System.Drawing;
394+ using Syncfusion.Pdf;
395+ using Syncfusion.Pdf.Graphics;
396+ using Syncfusion.Pdf.Interactive;
397+ using Syncfusion.Pdf.Parsing;
398+
363399//Load the existing PDF document
364400PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
365401//Gets the first page from the document
@@ -389,6 +425,12 @@ loadedDocument.Close(true);
389425
390426{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
391427
428+ Imports Syncfusion.Pdf
429+ Imports Syncfusion.Pdf.Graphics
430+ Imports Syncfusion.Pdf.Parsing
431+ Imports Syncfusion.Pdf.Interactive
432+ Imports System.Drawing
433+
392434'Load the existing PDF document
393435Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
394436'Gets the first page from the document
@@ -428,6 +470,10 @@ Essential<sup>®</sup> PDF allows users to add nested layers in the PDF docum
428470
429471{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-nested-layers-in-the-PDF-document/.NET/Add-nested-layers-in-the-PDF-document/Program.cs " %}
430472
473+ using Syncfusion.Drawing;
474+ using Syncfusion.Pdf;
475+ using Syncfusion.Pdf.Graphics;
476+
431477//Create the PDF document
432478PdfDocument document = new PdfDocument();
433479//Add the page
@@ -459,6 +505,10 @@ document.Close(true);
459505
460506{% highlight c# tabtitle="C# [ Windows-specific] " %}
461507
508+ using System.Drawing;
509+ using Syncfusion.Pdf;
510+ using Syncfusion.Pdf.Graphics;
511+
462512//Create the PDF document
463513PdfDocument document = new PdfDocument();
464514//Add the page
@@ -490,6 +540,10 @@ document.Close(true);
490540
491541{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
492542
543+ Imports Syncfusion.Pdf
544+ Imports Syncfusion.Pdf.Graphics
545+ Imports System.Drawing
546+
493547'Create the PDF document
494548Dim document As New PdfDocument()
495549'Add the page
@@ -531,6 +585,9 @@ You can remove the layers using [RemoveAt](https://help.syncfusion.com/cr/docume
531585
532586{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Removing-layers-from-an-existing-PDF-document/.NET/Removing-layers-from-an-existing-PDF-document/Program.cs " %}
533587
588+ using Syncfusion.Pdf;
589+ using Syncfusion.Pdf.Parsing;
590+
534591//Load the PDF document
535592PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
536593//Gets the first page from the document
@@ -550,6 +607,9 @@ document.Close(true);
550607
551608{% highlight c# tabtitle="C# [ Windows-specific] " %}
552609
610+ using Syncfusion.Pdf;
611+ using Syncfusion.Pdf.Parsing;
612+
553613//Load the existing PDF document
554614PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
555615//Gets the first page from the document
@@ -569,6 +629,9 @@ document.Close(true);
569629
570630{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
571631
632+ Imports Syncfusion.Pdf
633+ Imports Syncfusion.Pdf.Parsing
634+
572635'Load the existing PDF document
573636Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
574637'Gets the first page from the document
@@ -598,6 +661,9 @@ You can flatten a layer in a PDF document by removing it from the [PdfDocumentLa
598661
599662{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Flattening-the-layers-in-an-existing-PDF-document/.NET/Flattening-the-layers-in-an-existing-PDF-document/Program.cs " %}
600663
664+ using Syncfusion.Pdf;
665+ using Syncfusion.Pdf.Parsing;
666+
601667//Load the existing PDF document
602668PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
603669
@@ -615,6 +681,9 @@ loadedDocument.Close(true);
615681
616682{% highlight c# tabtitle="C# [ Windows-specific] " %}
617683
684+ using Syncfusion.Pdf;
685+ using Syncfusion.Pdf.Parsing;
686+
618687//Load the existing PDF document
619688PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Layers.pdf");
620689
@@ -632,6 +701,9 @@ loadedDocument.Close(true);
632701
633702{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
634703
704+ Imports Syncfusion.Pdf
705+ Imports Syncfusion.Pdf.Parsing
706+
635707'Load the existing PDF document
636708Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Layers.pdf")
637709
@@ -661,6 +733,10 @@ The below code illustrates how to toggle the visibility of layers in new PDF doc
661733
662734{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Toggle-the-visibility-of-layers-in-new-PDF-document/.NET/Toggle-the-visibility-of-layers-in-new-PDF-document/Program.cs " %}
663735
736+ using Syncfusion.Drawing;
737+ using Syncfusion.Pdf;
738+ using Syncfusion.Pdf.Graphics;
739+
664740//Create the document
665741PdfDocument document = new PdfDocument();
666742//Create a page
@@ -692,6 +768,10 @@ document.Close(true);
692768
693769{% highlight c# tabtitle="C# [ Windows-specific] " %}
694770
771+ using System.Drawing;
772+ using Syncfusion.Pdf;
773+ using Syncfusion.Pdf.Graphics;
774+
695775//Create the document
696776PdfDocument document = new PdfDocument();
697777//Create a page
@@ -724,6 +804,9 @@ document.Close(true);
724804
725805{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
726806
807+ Imports Syncfusion.Pdf
808+ Imports Syncfusion.Pdf.Graphics
809+ Imports System.Drawing
727810'Create the document
728811Dim document As New PdfDocument()
729812'Create a page
@@ -763,6 +846,9 @@ The following code illustrates how to toggle the visibility of layers in an exis
763846
764847{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Toggle-the-visibility-of-layers-in-an-existing-PDF/.NET/Toggle-the-visibility-of-layers-in-an-existing-PDF/Program.cs " %}
765848
849+ using Syncfusion.Pdf;
850+ using Syncfusion.Pdf.Parsing;
851+
766852//Load the PDF document
767853PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
768854
@@ -780,6 +866,9 @@ document.Close(true);
780866
781867{% highlight c# tabtitle="C# [ Windows-specific] " %}
782868
869+ using Syncfusion.Pdf;
870+ using Syncfusion.Pdf.Parsing;
871+
783872//Load the existing PDF document
784873PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
785874
@@ -797,6 +886,9 @@ document.Close(true);
797886
798887{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
799888
889+ Imports Syncfusion.Pdf
890+ Imports Syncfusion.Pdf.Parsing
891+
800892'Load the existing PDF document
801893Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
802894
@@ -826,6 +918,10 @@ The following code sample shows how to add a lock state to the layer in a new PD
826918
827919{% highlight c# tabtitle="C# [ Cross-platform] " playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/PDF-Examples/master/Layer/Add-a-lock-state-to-the-layer-in-a-new-PDF-document/.NET/Add-a-lock-state-to-the-layer-in-a-new-PDF-document/Program.cs " %}
828920
921+ using Syncfusion.Drawing;
922+ using Syncfusion.Pdf;
923+ using Syncfusion.Pdf.Graphics;
924+
829925//Creating a new PDF document.
830926PdfDocument document = new PdfDocument();
831927//Adding a new page to the PDF document.
@@ -850,6 +946,10 @@ document.Close(true);
850946
851947{% highlight c# tabtitle="C# [ Windows-specific] " %}
852948
949+ using System.Drawing;
950+ using Syncfusion.Pdf;
951+ using Syncfusion.Pdf.Graphics;
952+
853953//Creating a new PDF document.
854954PdfDocument document = new PdfDocument();
855955//Adding a new page to the PDF document.
@@ -874,6 +974,10 @@ document.Close(true);
874974
875975{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
876976
977+ Imports Syncfusion.Pdf
978+ Imports Syncfusion.Pdf.Graphics
979+ Imports System.Drawing
980+
877981'Creating a new PDF document.
878982Dim document As PdfDocument = New PdfDocument()
879983'Adding a new page to the PDF document.
@@ -918,6 +1022,10 @@ This is illustrated in the following code sample.
9181022
9191023{% highlight c# tabtitle="C# [ Windows-specific] " %}
9201024
1025+ using Syncfusion.Pdf;
1026+ using Syncfusion.Pdf.Graphics;
1027+ using Syncfusion.Pdf.Parsing;
1028+
9211029//Load the existing PDF document.
9221030PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Layers.pdf");
9231031
@@ -941,6 +1049,10 @@ loadedDocument.Close(true);
9411049
9421050{% highlight vb.net tabtitle="VB.NET [ Windows-specific] " %}
9431051
1052+ Imports Syncfusion.Pdf
1053+ Imports Syncfusion.Pdf.Graphics
1054+ Imports Syncfusion.Pdf.Parsing
1055+
9441056'Load the existing PDF document.
9451057Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Output.pdf")
9461058
0 commit comments