Skip to content

Commit 84a83d0

Browse files
committed
986455-1: Added load and save changes in examples.
1 parent ecd565d commit 84a83d0

File tree

68 files changed

+1123
-1686
lines changed
  • Forms
    • Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document
    • Add-checkbox-field-in-new-PDF-document/.NET/Add-checkbox-field-in-new-PDF-document
    • Add-complex-script-to-all-the-supported-fields-in-PDF/.NET/Add-complex-script-to-all-the-supported-fields-in-PDF
    • Add-listbox-field-in-an-existing-PDF-document/.NET/Add-listbox-field-in-an-existing-PDF-document
    • Add-listbox-field-in-new-PDF-document/.NET/Add-listbox-field-in-new-PDF-document
    • Add-radio-button-in-existing-PDF-document/.NET/Add-radio-button-in-existing-PDF-document
    • Add-signature-field-in-a-new-PDF-document/.NET/Add-signature-field-in-a-new-PDF-document
    • Add-the-button-field-in-a-new-PDF-document/.NET/Add-the-button-field-in-a-new-PDF-document
    • Add-the-textbox-to-an-existing-PDF-document/.NET/Add-the-textbox-to-an-existing-PDF-document
    • Adding-button-field-in-an-existing-PDF-document/.NET/Adding-button-field-in-an-existing-PDF-document
    • Adding-checkbox-field-in-an-existing-PDF-document/.NET/Adding-checkbox-field-in-an-existing-PDF-document
    • Adding-combo-box-in-the-new-PDF-document/.NET/Adding-combo-box-in-the-new-PDF-document
    • Adding-radio-button-in-new-PDF-document/.NET/Adding-radio-button-in-new-PDF-document
    • Adding-the-combo-box-in-existing-PDF-document/.NET/Adding-the-combo-box-in-existing-PDF-document
    • Adding-the-signatre-field-in-existing-PDF-document/.NET/Adding-the-signatre-field-in-existing-PDF-document
    • Auto-naming-of-form-fields-in-a-PDF-document/.NET/Auto-naming-of-form-fields-in-a-PDF-document
    • Auto-resize-the-text-of-textboxfield-in-a-PDF/.NET/Auto-resize-the-text-of-textboxfield-in-a-PDF
    • Creating-a-Multiline-Text-Area-in-PDF/.NET/Creating-a-Multiline-Text-Area-in-PDF
    • Customize-indicator-colors/.NET/Customize-indicator-colors
    • Default-value-for-radio-button-field/.NET/Default_Value_For_Radio_Button
    • Disable-Auto-Formatting-in-FormFields/.NET/Disable-Auto-Formatting-in-FormFields
    • Enable-default-appearance-in-existing-PDF-document/.NET/Enable-default-appearance-in-existing-PDF-document
    • Enable-default-appearance-in-new-PDF-document/.NET/Enable-default-appearance-in-new-PDF-document
    • Enabling-Edit-Option-for-the-PdfComboboxField/Enabling-Edit-Option-for-the-PdfComboboxField
    • Enumarate-form-fields-in-a-PDF-document/.NET/Enumarate-form-fields-in-a-PDF-document
    • Export-FDF-file-from-PDF-document/.NET/Export-FDF-file-from-PDF-document
    • Export_checkbox_values/.NET/Export_checkbox_values
    • Fill-list-box-field-in-an-existing-PDF-document/.NET/Fill-list-box-field-in-an-existing-PDF-document
    • Fill-radio-button-field-in-an-existing-PDF-document/.NET/Fill-radio-button-field-in-an-existing-PDF-document
    • Fill-the-XFA-forms-fields-via-acroform-API/.NET/Fill-the-XFA-forms-fields-via-acroform-API
    • Fill-the-checkbox-field-in-an-existing-PDF-document/.NET/Fill-the-checkbox-field-in-an-existing-PDF-document
    • Fill-the-combobox-field-in-an-existing-PDF-document/.NET/Fill-the-combobox-field-in-an-existing-PDF-document
    • Fill-the-signature-field-in-an-existing-PDF/.NET/Fill-the-signature-field-in-an-existing-PDF
    • Filling-the-textbox-field-in-an-existing-PDF-document/.NET/Filling-the-textbox-field-in-an-existing-PDF-document
    • Flatten-the-existing-form-fields-with-complex-script/.NET/Flatten-the-existing-form-fields-with-complex-script
    • Flatten-the-form-fields-before-saving-PDF-document/.NET/Flatten-the-form-fields-before-saving-PDF-document
    • Flattening-form-fields-in-an-existing-PDF-document/.NET/Flattening-form-fields-in-an-existing-PDF-document
    • Get-option-value-from-acroform-radio-button/.NET/Get-option-value-from-acroform-radio-button
    • Get-the-field-from-collection-using-TryGetField/.NET/Get-the-field-from-collection-using-TryGetField
    • Get-the-field-from-collection-using-TryGetValue/.NET/Get-the-field-from-collection-using-TryGetValue
    • Get-widget-annotation-in-PDF/.NET/Get-widget-annotation-in-PDF
    • Importing-FDF-file-to-PDF-document/.NET/Importing-FDF-file-to-PDF-document
    • Modify-the-existing-form-field-in-PDF-document/.NET/Modify-the-existing-form-field-in-PDF-document
    • Modifying-fore-and-backcolor-of-existing-form-fields/.NET/Modifying-fore-and-backcolor-of-existing-form-fields
    • Remove-the-form-fields-form-the-existing-PDF-document/.NET/Remove-the-form-fields-form-the-existing-PDF-document
    • Removing-editing-capability-of-form-fields/.NET/Removing-editing-capability-of-form-fields
    • Set-appearance-to-the-PDF-form-fields/.NET/Set-appearance-to-the-PDF-form-fields
    • Set-readonly-property-to-a-new-PDF-document/.NET/Set-readonly-property-to-a-new-PDF-document
    • Set-the-ReadOnly-property-to-an-existing-PDF-document/.NET/Set-the-ReadOnly-property-to-an-existing-PDF-document
  • Getting Started/.NET
    • Create_PDF_NET/Create_PDF_NET
    • Create_PDF_with_basic_elements_NET/Create_PDF_with_basic_elements_NET
    • Create_PDF_with_image_NET/Create_PDF_with_image_NET
    • Create_PDF_with_table_NET/Create_PDF_with_table_NET
    • Filling_forms_NET/Filling_forms_NET
    • HTML_string_to_PDF_NET/HTML_string_to_PDF_NET
    • HTML_to_PDF_NET/HTML_to_PDF_NET
    • Merge_PDF_documents_NET/Merge_PDF_documents_NET
  • Image Extraction
    • Extract-images-from-PDF-documents/.NET/Extract-images-from-PDF-documents
    • Extract-images-from-a-PDF-pages/.NET/Extract-images-from-a-PDF-pages
    • Extract-the-image-info-from-a-PDF-page/.NET/Extract-the-image-info-from-a-PDF-page

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1123
-1686
lines changed

Forms/Add-a-textbox-field-to-a-new-PDF-document/.NET/Add-a-textbox-field-to-a-new-PDF-document/Program.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Drawing;
1+
using Syncfusion.Drawing;
42
using Syncfusion.Pdf;
53
using Syncfusion.Pdf.Graphics;
64
using Syncfusion.Pdf.Interactive;
@@ -38,10 +36,6 @@
3836
emailField.ToolTip = "Email address";
3937
pdfDocument.Form.Fields.Add(emailField);
4038

41-
//Create file stream.
42-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
43-
{
44-
//Save the PDF document to file stream.
45-
pdfDocument.Save(outputFileStream);
46-
}
39+
//Save the PDF document
40+
pdfDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
4741
}
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
11-
12-
//Create Check Box field.
13-
PdfCheckBoxField checkBoxField = new PdfCheckBoxField(page, "CheckBox");
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
149

15-
//Set check box properties.
16-
checkBoxField.ToolTip = "Check Box";
17-
checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
10+
//Create Check Box field.
11+
PdfCheckBoxField checkBoxField = new PdfCheckBoxField(page, "CheckBox");
1812

19-
//Add the form field to the document.
20-
document.Form.Fields.Add(checkBoxField);
13+
//Set check box properties.
14+
checkBoxField.ToolTip = "Check Box";
15+
checkBoxField.Bounds = new Syncfusion.Drawing.RectangleF(0, 20, 10, 10);
2116

22-
//Create file stream.
23-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
24-
{
25-
//Save the PDF document to file stream.
26-
document.Save(outputFileStream);
27-
}
17+
//Add the form field to the document.
18+
document.Form.Fields.Add(checkBoxField);
2819

29-
//Close the document.
30-
document.Close(true);
20+
//Save the PDF document
21+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
22+
}
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Drawing;
1+
using Syncfusion.Drawing;
42
using Syncfusion.Pdf;
53
using Syncfusion.Pdf.Graphics;
64
using Syncfusion.Pdf.Interactive;
75

86
//Create a new PDF document.
9-
PdfDocument document = new PdfDocument();
10-
11-
//Add a new PDF page.
12-
PdfPage page = document.Pages.Add();
13-
14-
//Create the new PDF text box field.
15-
PdfTextBoxField textField = new PdfTextBoxField(page, "textBox");
7+
using (PdfDocument document = new PdfDocument())
8+
{
9+
//Add a new PDF page.
10+
PdfPage page = document.Pages.Add();
1611

17-
//Set bounds.
18-
textField.Bounds = new RectangleF(10, 10, 200, 30);
12+
//Create the new PDF text box field.
13+
PdfTextBoxField textField = new PdfTextBoxField(page, "textBox");
1914

20-
//Set text.
21-
textField.Text = "สวัสดีชาวโลก";
15+
//Set bounds.
16+
textField.Bounds = new RectangleF(10, 10, 200, 30);
2217

23-
//Get stream from an font file.
24-
FileStream fontStream = new FileStream(Path.GetFullPath(@"Data/tahoma.ttf"), FileMode.Open, FileAccess.Read);
18+
//Set text.
19+
textField.Text = "สวัสดีชาวโลก";
2520

26-
//Create a new PDF font instance.
27-
PdfFont font = new PdfTrueTypeFont(fontStream, 10);
21+
//Get stream from an font file.
22+
FileStream fontStream = new FileStream(Path.GetFullPath(@"Data/tahoma.ttf"), FileMode.Open, FileAccess.Read);
2823

29-
//Set font.
30-
textField.Font = font;
24+
//Create a new PDF font instance.
25+
PdfFont font = new PdfTrueTypeFont(fontStream, 10);
3126

32-
//Add the text box field to the form collection.
33-
document.Form.Fields.Add(textField);
27+
//Set font.
28+
textField.Font = font;
3429

35-
//Set default appearance as false.
36-
document.Form.SetDefaultAppearance(false);
30+
//Add the text box field to the form collection.
31+
document.Form.Fields.Add(textField);
3732

38-
//Enable complex script layout for form.
39-
document.Form.ComplexScript = true;
33+
//Set default appearance as false.
34+
document.Form.SetDefaultAppearance(false);
4035

41-
//Create file stream.
42-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
43-
{
44-
//Save the PDF document to file stream.
45-
document.Save(outputFileStream);
46-
}
36+
//Enable complex script layout for form.
37+
document.Form.ComplexScript = true;
4738

48-
//Close the document.
49-
document.Close(true);
39+
//Save the PDF document
40+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
41+
}
Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,37 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53
using Syncfusion.Pdf.Parsing;
64

7-
//Get stream from an existing document.
8-
FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
9-
10-
//Load the PDF document.
11-
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
12-
13-
//Create the form if the form does not exist in the loaded document.
14-
if (loadedDocument.Form == null)
15-
loadedDocument.CreateForm();
16-
17-
//Load the page.
18-
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
19-
20-
//Create list box.
21-
PdfListBoxField listBoxField = new PdfListBoxField(loadedPage, "list1");
5+
//Load the PDF document.
6+
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
7+
{
8+
//Create the form if the form does not exist in the loaded document.
9+
if (loadedDocument.Form == null)
10+
loadedDocument.CreateForm();
2211

23-
//Set the properties.
24-
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
12+
//Load the page.
13+
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
2514

26-
//Add the items to the list box.
27-
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
28-
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
29-
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
15+
//Create list box.
16+
PdfListBoxField listBoxField = new PdfListBoxField(loadedPage, "list1");
3017

31-
//Select the item.
32-
listBoxField.SelectedIndex = 2;
18+
//Set the properties.
19+
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
3320

34-
//Set the multi select option.
35-
listBoxField.MultiSelect = true;
21+
//Add the items to the list box.
22+
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
23+
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
24+
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
3625

37-
//Add the list box into PDF document
38-
loadedDocument.Form.Fields.Add(listBoxField);
26+
//Select the item.
27+
listBoxField.SelectedIndex = 2;
3928

40-
//Create file stream.
41-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
42-
{
43-
//Save the PDF document to file stream.
44-
loadedDocument.Save(outputFileStream);
45-
}
29+
//Set the multi select option.
30+
listBoxField.MultiSelect = true;
4631

47-
//Close the document.
48-
loadedDocument.Close(true);
32+
//Add the list box into PDF document
33+
loadedDocument.Form.Fields.Add(listBoxField);
4934

35+
//Save the PDF document
36+
loadedDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
37+
}
Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,32 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
119

12-
//Create list box.
13-
PdfListBoxField listBoxField = new PdfListBoxField(page, "list1");
10+
//Create list box.
11+
PdfListBoxField listBoxField = new PdfListBoxField(page, "list1");
1412

15-
//Set the properties.
16-
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
13+
//Set the properties.
14+
listBoxField.Bounds = new Syncfusion.Drawing.RectangleF(100, 60, 100, 50);
1715

18-
//Add the items to the list box.
19-
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
20-
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
21-
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
16+
//Add the items to the list box.
17+
listBoxField.Items.Add(new PdfListFieldItem("English", "English"));
18+
listBoxField.Items.Add(new PdfListFieldItem("French", "French"));
19+
listBoxField.Items.Add(new PdfListFieldItem("German", "German"));
2220

23-
//Select the item.
24-
listBoxField.SelectedIndex = 0;
21+
//Select the item.
22+
listBoxField.SelectedIndex = 0;
2523

26-
//Set the multi select option.
27-
listBoxField.MultiSelect = true;
24+
//Set the multi select option.
25+
listBoxField.MultiSelect = true;
2826

29-
//Add the list box into PDF document
30-
document.Form.Fields.Add(listBoxField);
27+
//Add the list box into PDF document
28+
document.Form.Fields.Add(listBoxField);
3129

32-
//Create file stream.
33-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
34-
{
35-
//Save the PDF document to file stream.
36-
document.Save(outputFileStream);
30+
//Save the PDF document
31+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
3732
}
38-
39-
//Close the document.
40-
document.Close(true);
Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,33 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53
using Syncfusion.Pdf.Parsing;
64

7-
//Get stream from an existing PDF document.
8-
FileStream docStream = new FileStream(Path.GetFullPath(@"Data/Input.pdf"), FileMode.Open, FileAccess.Read);
9-
10-
//Load the PDF document.
11-
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
12-
13-
//Create the form if the form does not exist in the loaded document.
14-
if (loadedDocument.Form == null)
15-
loadedDocument.CreateForm();
5+
//Load the PDF document.
6+
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(Path.GetFullPath(@"Data/Input.pdf")))
7+
{
8+
//Create the form if the form does not exist in the loaded document.
9+
if (loadedDocument.Form == null)
10+
loadedDocument.CreateForm();
1611

17-
//Load the page.
18-
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
12+
//Load the page.
13+
PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
1914

20-
//Create a Radio button.
21-
PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(loadedPage, "employeesRadioList");
15+
//Create a Radio button.
16+
PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(loadedPage, "employeesRadioList");
2217

23-
//Add the radio button into loaded document.
24-
loadedDocument.Form.Fields.Add(employeesRadioList);
18+
//Add the radio button into loaded document.
19+
loadedDocument.Form.Fields.Add(employeesRadioList);
2520

26-
//Create radio button items.
27-
PdfRadioButtonListItem radioButtonItem1 = new PdfRadioButtonListItem("1-9");
28-
radioButtonItem1.Bounds = new Syncfusion.Drawing.RectangleF(100, 140, 20, 20);
29-
PdfRadioButtonListItem radioButtonItem2 = new PdfRadioButtonListItem("10-49");
30-
radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
21+
//Create radio button items.
22+
PdfRadioButtonListItem radioButtonItem1 = new PdfRadioButtonListItem("1-9");
23+
radioButtonItem1.Bounds = new Syncfusion.Drawing.RectangleF(100, 140, 20, 20);
24+
PdfRadioButtonListItem radioButtonItem2 = new PdfRadioButtonListItem("10-49");
25+
radioButtonItem2.Bounds = new Syncfusion.Drawing.RectangleF(100, 170, 20, 20);
3126

32-
//Add the items to radio button group.
33-
employeesRadioList.Items.Add(radioButtonItem1);
34-
employeesRadioList.Items.Add(radioButtonItem2);
27+
//Add the items to radio button group.
28+
employeesRadioList.Items.Add(radioButtonItem1);
29+
employeesRadioList.Items.Add(radioButtonItem2);
3530

36-
//Create file stream.
37-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
38-
{
39-
//Save the PDF document to file stream.
40-
loadedDocument.Save(outputFileStream);
31+
//Save the PDF document
32+
loadedDocument.Save(Path.GetFullPath(@"Output/Output.pdf"));
4133
}
42-
43-
//Close the document.
44-
loadedDocument.Close(true);
Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
1-
// See https://aka.ms/new-console-template for more information
2-
3-
using Syncfusion.Pdf;
1+
using Syncfusion.Pdf;
42
using Syncfusion.Pdf.Interactive;
53

64
//Create a new PDF document.
7-
PdfDocument document = new PdfDocument();
8-
9-
//Add a new page to PDF document.
10-
PdfPage page = document.Pages.Add();
5+
using (PdfDocument document = new PdfDocument())
6+
{
7+
//Add a new page to PDF document.
8+
PdfPage page = document.Pages.Add();
119

12-
//Create PDF Signature field.
13-
PdfSignatureField signatureField = new PdfSignatureField(page, "Signature");
10+
//Create PDF Signature field.
11+
PdfSignatureField signatureField = new PdfSignatureField(page, "Signature");
1412

15-
//Set properties to the signature field.
16-
signatureField.Bounds = new Syncfusion.Drawing.RectangleF(50, 50, 90, 20);
17-
signatureField.ToolTip = "Signature";
13+
//Set properties to the signature field.
14+
signatureField.Bounds = new Syncfusion.Drawing.RectangleF(50, 50, 90, 20);
15+
signatureField.ToolTip = "Signature";
1816

19-
//Add the form field to the document.
20-
document.Form.Fields.Add(signatureField);
17+
//Add the form field to the document.
18+
document.Form.Fields.Add(signatureField);
2119

22-
//Create file stream.
23-
using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.pdf"), FileMode.Create, FileAccess.ReadWrite))
24-
{
25-
//Save the PDF document to file stream.
26-
document.Save(outputFileStream);
20+
//Save the PDF document
21+
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
2722
}
28-
29-
//Close the document.
30-
document.Close(true);

0 commit comments

Comments
 (0)