Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.
Sun Oct 06, 2024 5:46 am
When converting a PDF document containg tables also, to DOC/DOC, it is observed that text and tables are written independently in the doc/docx. Used option pdf.getConvertOptions().setConvertToWordUsingFlow(true);
Login to view the files attached to this post.
-
dayachaubey
-
- Posts: 6
- Joined: Wed Aug 14, 2024 4:47 pm
Tue Oct 08, 2024 9:16 am
Hello,
Thanks for your inquiry. You can refer to the following code to use the new interface to convert PDF to Docx, and then convert Docx to Doc. If the conversion effect differs from your expectations, please feel free to provide feedback at any time.
- Code: Select all
PdfToWordConverter converter = new PdfToWordConverter(inputPdf);
converter.saveToDocx(outDocx);
Document docx = new Document(outDocx);
docx.saveToFile(outDoc, FileFormat.Doc);
Sincerely,
Amin
E-iceblue support team
-
Amin.Gan
-
- Posts: 283
- Joined: Mon Jul 15, 2024 5:40 am