Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// For complete examples and data files, please go to
string sourceFile = CommonUtilities.sourcePath + fileName;
// Preparing.
string password = "SomePasswordString";
int pageNumber1 = 1;
int pageNumber2 = 2;
SwapOptions pagesOptions = new SwapOptions(pageNumber2, pageNumber1, FileFormat.Vsdx, password);
Stream openFile = new FileStream(sourceFile, FileMode.Open);
// Main method.
DocumentResult result = new DocumentHandler().SwapPages(openFile, pagesOptions);
Stream documentStream = result.Stream;
var fileStream = File.Create(CommonUtilities.outputPath + "OutPut." + FileFormat.Vsdx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.