Using Spire Office for WPF license you cannot convert a PDF to a DOC. There are no errors, it just doesn't save anything. This document shows that it should be possible: https://www.e-iceblue.com/Introduce/spire-office-for-wpf/Features.html
- Code: Select all
using (var pdf = new PdfDocument())
{
pdf.LoadFromFile("C:\\Temp\\Source.pdf");
pdf.SaveToFile("C:\\Temp\\Destination.pdf", FileFormat.PDF); // Works
pdf.SaveToFile("C:\\Temp\\Destination.docx", FileFormat.DOCX); // Does not work
}
Thanks,
Mark