Skip to content

Commit 7d67917

Browse files
committed
Task-935636- Updated code snippet
1 parent 50b385c commit 7d67917

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Document-Processing/PDF/PDF-Library/NET/Working-with-forms.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5160,8 +5160,7 @@ using Syncfusion.Pdf.Parsing;
51605160
using System.IO;
51615161

51625162
//Open the source PDF that contains form fields.
5163-
using FileStream fileStream = new FileStream(@"Form.pdf", FileMode.Open, FileAccess.Read);
5164-
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileStream);
5163+
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Form.pdf");
51655164

51665165
//Flatten all form fields.
51675166
PdfLoadedForm loadedForm = loadedDocument.Form;
@@ -5198,8 +5197,7 @@ Imports System.Drawing
51985197
Imports System.IO
51995198

52005199
'Open the source PDF that contains form fields.
5201-
Using fileStream As New FileStream("Form.pdf", FileMode.Open, FileAccess.Read)
5202-
Dim loadedDocument As New PdfLoadedDocument(fileStream)
5200+
Dim loadedDocument As New PdfLoadedDocument("Form.pdf")
52035201

52045202
'Flatten all form fields.
52055203
Dim loadedForm As PdfLoadedForm = loadedDocument.Form

0 commit comments

Comments
 (0)