Skip to content

Commit 4c19f6f

Browse files
committed
1016957: Resolved given feedback.
1 parent 551b3bf commit 4c19f6f

File tree

2 files changed

+5
-1
lines changed
  • Pages
    • Add-Page-Level-Actions-in-PDF/.NET/Add-Page-Level-Actions-in-PDF
    • Removing-page-level-actions-from-PDF/.NET/Removing-page-level-actions-from-PDF

2 files changed

+5
-1
lines changed

Pages/Add-Page-Level-Actions-in-PDF/.NET/Add-Page-Level-Actions-in-PDF/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
jsAction.Next = new PdfJavaScriptAction("app.alert(\"This is the second action.\");");
3030
jsAction.Next.Next = new PdfJavaScriptAction("app.alert(\"This is the third action.\");");
3131
page3.Actions.OnOpen = jsAction;
32-
//Save the document
32+
// Save the document
3333
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
34+
// Close the document
35+
document.Close(true);
3436
}

Pages/Removing-page-level-actions-from-PDF/.NET/Removing-page-level-actions-from-PDF/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737
page3.Actions.Clear(false);
3838
//Save the document
3939
document.Save(Path.GetFullPath(@"Output/Output.pdf"));
40+
// Close the document
41+
document.Close(true);
4042
}

0 commit comments

Comments
 (0)