Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created March 31, 2022 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/25d73f456b31d72b36c2aa0d8d59b88c to your computer and use it in GitHub Desktop.
Save bjoerntx/25d73f456b31d72b36c2aa0d8d59b88c to your computer and use it in GitHub Desktop.
string jsAction = File.ReadAllText("script.js");
SaveSettings saveSettings = new SaveSettings {
DocumentLevelJavaScriptActions = new string[] { jsAction }
};
textControl1.Save("test.pdf", StreamType.AdobePDF, saveSettings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment