I tried to load a pdf into the Doc variable. It throws an error UnsupportedFileFormatException. All I want to do is load up a PDF and get the output as text. Am I able to do so with Aspose.Word? The code below is what I have used. I have attached the sample resume being used.
Stream stream = new MemoryStream(attachmentData.Data);
Document doc = new Document(stream);