Created
October 13, 2020 08:55
-
-
Save andruhovski/9fdbca5fc9b2fb984c7d61c29d36e112 to your computer and use it in GitHub Desktop.
Removing notes and separate images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void ConvertPDFtoPPTX(string inputFileName, string outputFileName) | |
{ | |
var document = new Aspose.Pdf.Document(inputFileName); | |
foreach (var page in document.Pages) | |
{ | |
RemoveAnnotations(page, Pdf.Annotations.AnnotationType.Ink); | |
RemoveAnnotations(page, Pdf.Annotations.AnnotationType.Square); | |
} | |
var options = new Aspose.Pdf.PptxSaveOptions | |
{ | |
SeparateImages = true, | |
//CustomProgressHandler = ShowProgressOnConsole | |
}; | |
document.Save(outputFileName, options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment