Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active June 8, 2022 04:53
Show Gist options
  • Save aspose-com-gists/19c1f480f90973eb5f097b3963ca169d to your computer and use it in GitHub Desktop.
Save aspose-com-gists/19c1f480f90973eb5f097b3963ca169d to your computer and use it in GitHub Desktop.
Convert PDF Files to XML in C# .NET
// Load PDF document
var document = new Document("candy.pdf");
// Save document in MobiXML format
document.Save("standard-xml-output.xml", SaveFormat.MobiXml);
// Load PDF document
var document = new Document("candy.pdf");
// Save document in PdfXML format
document.Save("standard-xml-output.xml", SaveFormat.PdfXml);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment