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;
//Set password, as document is password protected
string password = "somepassword";
int pageNumber = 4;
int newPageNumber = 2;
MoveOptions pageOptions = new MoveOptions(FileFormat.Vsdx, password, pageNumber, newPageNumber);
Stream openSourceFile = new FileStream(sourceFile, FileMode.Open);
DocumentResult result = new DocumentHandler().MovePage(openSourceFile, pageOptions);
//output file
var fileStream = File.Create(CommonUtilities.outputPath + "OutPut." + FileFormat.Vsdx);
Stream documentStream = result.Stream;
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.